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 13: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:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4386
Newest User:
verlywl7
Members Online:
1
Guests Online:
691

Online: 
verlywl7

Forum Legend:

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