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.

 

Display if option = component

Display if option = component

Code:

if (! ($option == "com_community" || "com_hwdvideoshare" ) ) return array (122,125,57,124,123);

Thats it. Worked for 24 hours and the broke. Basically I want the modules to disapear if either of those two components are running.
Also im not running any SEF at the moment, but I will be I was wondering if this will still work as intended.

Thanks for your support.

lordbarron
Guest
useravatar
Offline
Administrator has disabled public posting

Re: Display if option = component

Tried this and now it always appears

Code:

if ($option != "com_community" || "com_hwdvideoshare") return array (122,125,124,123);

lordbarron
Guest
useravatar
Offline
Administrator has disabled public posting

Re: Display if option = component

Hi Lordbarron,

just a slight syntax problem. Try it this way:

Code:

if (! ($option == "com_community" || $option == "com_hwdvideoshare" ) ) return array (122,125,57,124,123);

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
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Display if option = component

Thank you very much! A quick lesson learn't there.

lordbarron
Guest
useravatar
Offline
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10727
Newest User:
solza2
Members Online:
0
Guests Online:
136

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