Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

SOLVED - Rule Help !!!!

SOLVED - Rule Help !!!!

Hello, I new to this and with very little php experience. I would like to make a rule that will show templ_1 for the registered users that their username starts with the letters "dc" and templ_2 if their username starts with "dl".

Is this applicable ?? and how ??

Thank you for your time.

Edited By: atg1967
02-Feb-12 14:37:13

atg1967
Beginner Modder
ranks
useravatar
Offline
5 Posts
User info in posts
Administrator has disabled public posting

Re: SOLVED - Rule Help !!!!

I found the way it can work by adding this in the php code:

if ( strstr($user->username, 'dc') ) return true;

atg1967
Beginner Modder
ranks
useravatar
Offline
5 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1698
Total Polls:
6
Total Posts:
5944
Dormant:
User Info:
 
Total Users:
5601
Newest User:
deadlin2
Members Online:
1
Guests Online:
134

Online: 
amelcher

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked