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.

 

SOBI2 wild-card character

SOBI2 wild-card character

Is there a way to create a range of ids so that I don't have to include every category number?

-  if ( $catid == 100006) return 43;
-  if ( $catid == 100014) return 43;
-  if ( $catid == 100026) return 43;

Is something like "if ( $catid == 100004...100026) return 43;" valid?

So that all $catids between 10004 to 100026 return 43?

Thanks!

miamiman
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: SOBI2 wild-card character

Sure:

if ( $catid >= 10004 and $catid <= 100026) return 43;

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: SOBI2 wild-card character

Yep.... thanks!

miamiman
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10119
Newest User:
watytb5
Members Online:
2
Guests Online:
263

Online: 
watytb5, jack67484

Forum Legend:

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