Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


rw1
Beginner Modder
ranks
useravatar
User Info

module does not fully collapse when not displaying modules.

hello,

thank you for the great module!

joomla 1.7.0
MetaMod v3.7, 2011-10-03

2 metamod modules published in the same position. 

the first:

Code:

if ( MM_NOT_LOGGED_IN ) return 76;

the second:

Code:

if ( MM_NOT_LOGGED_IN ) return 77;

the modules are following the correct rules and displaying the modules when not logged in. 

when the user logs in however, the modules do disappear, however the div where they would have been is still showing on the website (even though they are collapsible - and i know they are actually collapsible because when i unpublish the meta mods the div goes away).

any advice on how to make the metamods (or rather the div containing them) not display at all when they are not calling any data? perhaps there is some code to force nothing to display from metamod when user is logged in?

thank you!


Administrator has disabled public posting
rw1
Beginner Modder
ranks
useravatar
User Info

Re: module does not fully collapse when not displaying modules.


Administrator has disabled public posting
metamodguy
useravatar
User Info

Re: module does not fully collapse when not displaying modules.

Yes, that's it.

Also just a hint: you can combine the 2 MetaMods into one, that displays BOTH target modules when no-one is logged in:

if ( MM_NOT_LOGGED_IN ) return "76,77";


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

Administrator has disabled public posting
rw1
Beginner Modder
ranks
useravatar
User Info

Re: module does not fully collapse when not displaying modules.

hello,

when i do that, the modules are combined into the one div, rather than the appearance of two distinct modules, hence the 2 instances of metamod. 

thanks.


Administrator has disabled public posting
metamodguy
useravatar
User Info

Re: module does not fully collapse when not displaying modules.

Oh, ok, if you're happy with that then it's up to you. If you are using the non-Pro version then you can also change the HTML that's used to wrap the 2 modules that MetaMod is including, in your case, by changing the "style for included modules" drop-down.

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

Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3095  Total Topics: 1195  Total Polls: 7  Total Posts: 4450  Total Posts Today: 2
User Info:   Newest User :  Kids   Members Online: 2   Guests Online: 83
Online 
Jeff78Kids
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked