Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

module does not fully collapse when not displaying modules.

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!

rw1
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

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

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

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.

rw1
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

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

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

Board Info

Board Stats:
 
Total Topics:
1404
Total Polls:
6
Total Posts:
5048
Total Posts Today:
6
User Info:
 
Total Users:
4428
Newest User:
jasperisu
Members Online:
2
Guests Online:
141

Online: 
philimax21, camble

Forum Legend:

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