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
3329 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:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
179

Online: 
There are no members online

Forum Legend:

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