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.

 

Disable module code in MetaMod Pro

Disable module code in MetaMod Pro

if ($core_genius->check("url contains akeebasubs")) {
  $changes->mod( 16 )->disable();
  }

M T's

Pinger
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Disable module code in MetaMod Pro

Yes that should work in MetaMod Pro. (Pro only).

If you are checking for a particular component it might be better to do a check for $option instead, so it does not depend on the URL.

e.g.

if ($option == "com_akeebasubs") {
  $changes->mod( 16 )->disable();
}


(I am assuming that akeebasubs has a component name of com_akeebasubs which is pretty likely).

Cheers,
Stephen

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
3328 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:
4401
Newest User:
jason59312
Members Online:
0
Guests Online:
116

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