- Posts: 6745
- Thank you received: 716
help with new mod--- needs to collapse & isnt
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago - 14 years 3 months ago #2449
by trey-braid
help with new mod--- needs to collapse & isnt was created by trey-braid
www.beyondsportsllc.com/IFL2/
milos you helped me add this mod-- to the right of the gallery... as you can see if you go to another page---
The IFL > Team Directory: for some reason the mod doesn't collapse instead staying visible...
This is what you had me add to the index.php:
<?php if ($showuser1 or $showuser2) { ?>
<div class="gallery">
<div class="gallery_pad">
<div style="float:left"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
<div style="padding-left:15px; padding-right:10px; width:265px; height:270px; background:#f60026; color:#FFF; float:left"><jdoc:include type="modules" name="news" style="xhtml" /></div>
<div class="clr"></div>
<?php if ($showuser2) { ?>
<div class="user2">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
what do i need to add so if a module is unpublished in the "news" position on a particular page it collapses...
thanks
trey
milos you helped me add this mod-- to the right of the gallery... as you can see if you go to another page---
The IFL > Team Directory: for some reason the mod doesn't collapse instead staying visible...
This is what you had me add to the index.php:
<?php if ($showuser1 or $showuser2) { ?>
<div class="gallery">
<div class="gallery_pad">
<div style="float:left"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
<div style="padding-left:15px; padding-right:10px; width:265px; height:270px; background:#f60026; color:#FFF; float:left"><jdoc:include type="modules" name="news" style="xhtml" /></div>
<div class="clr"></div>
<?php if ($showuser2) { ?>
<div class="user2">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
what do i need to add so if a module is unpublished in the "news" position on a particular page it collapses...
thanks
trey
Last edit: 14 years 3 months ago by trey-braid.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
14 years 3 months ago - 14 years 3 months ago #2451
by milos
Replied by milos on topic Re: help with new mod--- needs to collapse & isnt
Add this in the <head> area:
Then add this code before/after the code that should collapse:
Code:
$shownews = $this->countModules('news');
Then add this code before/after the code that should collapse:
Code:
<?php if($shownews) { ?>
.
.
.
<?php } ?>
Last edit: 14 years 3 months ago by milos.
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago - 14 years 3 months ago #2455
by trey-braid
Replied by trey-braid on topic Re: help with new mod--- needs to collapse & isnt
i added at the end of the head and then i added the 2nd part before and after the mod...
now it dsnt appear at all; but, if i go to another page> team directory - yes it does collapse...
any idea's...
thanks again
trey
now it dsnt appear at all; but, if i go to another page> team directory - yes it does collapse...
any idea's...
thanks again
trey
Last edit: 14 years 3 months ago by trey-braid.
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago #2456
by trey-braid
Replied by trey-braid on topic Re: help with new mod--- needs to collapse & isnt
thanks milos.... i added it in the wrong spot within the head.... i figured out the correct place within the module states code...
fixed and it is working great!!!
thanks again
trey
fixed and it is working great!!!
thanks again
trey
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago #2769
by trey-braid
Replied by trey-braid on topic Re: help with new mod--- needs to collapse & isnt
milos this cropped up again earlier when i tried to add a module to the news position we had created--- this was the empty div you were talking about yesterday--- i somehow had deleted the script you had me add 3wks ago:
Code:
$shownews = $this->countModules('news');
Then add this code before/after the code that should collapse:
Code:
<?php if($shownews) { ?>
<?php } ?>
and this was in the index.php
<?php if ($showuser1 or $showuser2) { ?>
<div class="gallery">
<div class="gallery_pad">
<jdoc:include type="modules" name="user1" style="xhtml" />
<?php if($shownews) { ?>
<div style="padding-left:0px; padding-right:0px; width:290px; height:265px; background:#000000; float:right"><jdoc:include type="modules" name="news" style="xhtml" />
</div>
<?php } ?>
<div class="clr">
</div>
<?php if ($showuser2) { ?>
<div class="user2">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
when i publish the module instead of being side by side it is of course the opposite and stacked below it... i even played with the dimension of the hot carousel knocking down the width to 670... any idea what i am missing...
thanks again
trey
Code:
$shownews = $this->countModules('news');
Then add this code before/after the code that should collapse:
Code:
<?php if($shownews) { ?>
<?php } ?>
and this was in the index.php
<?php if ($showuser1 or $showuser2) { ?>
<div class="gallery">
<div class="gallery_pad">
<jdoc:include type="modules" name="user1" style="xhtml" />
<?php if($shownews) { ?>
<div style="padding-left:0px; padding-right:0px; width:290px; height:265px; background:#000000; float:right"><jdoc:include type="modules" name="news" style="xhtml" />
</div>
<?php } ?>
<div class="clr">
</div>
<?php if ($showuser2) { ?>
<div class="user2">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
when i publish the module instead of being side by side it is of course the opposite and stacked below it... i even played with the dimension of the hot carousel knocking down the width to 670... any idea what i am missing...
thanks again
trey
Please Log in to join the conversation.
-
trey-braid
- Topic Author
- Visitor
14 years 3 months ago - 14 years 3 months ago #2776
by trey-braid
Replied by trey-braid on topic Re: help with new mod--- needs to collapse & isnt
this was the website:
www.govenom.com
milos any idea why it isnt working or what i might have done wrong...
thanks again
trey
milos any idea why it isnt working or what i might have done wrong...
thanks again
trey
Last edit: 14 years 3 months ago by trey-braid.
Please Log in to join the conversation.
Time to create page: 0.173 seconds