Show / Hide Menu (and Related) »  Show posts from    to     

Icy Phoenix


Old Support Topics - Show / Hide Menu (and Related)



omarska [ Sat 07 Apr, 2007 13:43 ]
Post subject: Show / Hide Menu (and Related)
Hi all.

Is there possibility to add show/hide function to new dynamic menu in 1.0.11.11. Old nav links had that ability, but only in forum index. Can you tell me how to add show/hide button to dynamic menu block? Also, how did you manage to add show/hide button only on forum page menu, while on portal page menu that button was disabled (old 1.0.9.9)?
Reason 4 asking this is now when i add new dyn menu to the forum, it can't be hidden and forum index loses it's form.

Another question, think it's connected to previous one: how to remove this header nav part (but only from main page, other pages should still keep this):

header

Or at least make it shrink to right, while menu moves up (like on forum page):

header_forum

Thanx for all your work, guys, Icy is really powerfull system. :thanks:


pepi [ Sat 07 Apr, 2007 16:21 ]
Post subject: Re: Show / Hide Menu (and Related)
omarska wrote: [View Post]

Another question, think it's connected to previous one: how to remove this header nav part (but only from main page, other pages should still keep this):
header

in template/mg_themes/layout/2_column.tpl delete this
Code: [Hide]
  1. <div class="forumline nav-div">  
  2. <p class="nav-header">  
  3. <?php  
  4. $query = $_SERVER['QUERY_STRING'];  
  5. if (preg_match("/news=categories/", $query))  
  6. {  
  7. ?>  
  8. <a href="{U_PORTAL}">{L_HOME}</a>{NAV_SEP}<a href="#" class="nav-current">{L_NEWS_LINKS}-{L_CATEGORIES}</a></p>  
  9. <?php  
  10. }  
  11. elseif (preg_match("/news=archives/", $query)){  
  12. ?>  
  13. <a href="{U_PORTAL}">{L_HOME}</a>{NAV_SEP}<a href="#" class="nav-current">{L_NEWS_LINKS}-{L_ARCHIVES}</a></p>  
  14. <?php  
  15. }  
  16. else{  
  17. ?>  
  18. <a href="{U_PORTAL}" class="nav-current">{L_HOME}</a>  
  19. <?php  
  20. }  
  21. ?>  
  22. <div class="nav-links">  
  23. <div class="nav-links-left">  
  24. <!-- BEGIN switch_user_logged_in -->  
  25. <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a><br />  
  26. <!-- END switch_user_logged_in -->  
  27. {CURRENT_TIME}&nbsp;|  
  28. {S_TIMEZONE}  
  29. </div>  
  30. <!-- BEGIN switch_user_logged_in -->  
  31. <a href="{U_RECENT}">{L_RECENT}</a>&nbsp;|&nbsp;<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />  
  32. <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>&nbsp;|&nbsp;<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>  
  33. <!-- END switch_user_logged_in -->  
  34. <!-- BEGIN switch_user_logged_out -->  
  35. <a href="{U_RECENT}">{L_RECENT}</a>&nbsp;|&nbsp;<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>  
  36. <!-- END switch_user_logged_out -->  
  37. </div>  
  38. </div> 


omarska wrote: [View Post]
Hi all.

Is there possibility to add show/hide function to new dynamic menu in 1.0.11.11. Old nav links had that ability, but only in forum index. Can you tell me how to add show/hide button to dynamic menu block?

OPEN mg_themes/blocks/dyn_menu_block.tpl
FIND
Code: [Hide] [Select]
{IMG_THL}{IMG_THC}<span class="forumlink">{L_QUICK_LINKS}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">

REPLACE WITH
Code: [Hide] [Select]
{IMG_THL}{IMG_THC}<span class="forumlink">{L_QUICK_LINKS}
<!-- BEGIN switch_importal -->
&nbsp;[<a href="javascript:ShowHide('quick_links','quick_links2','quick_links');setWidth(16);" title="{L_HIDE} {L_QUICK_LINKS}">{L_HIDE}</a>]
<!-- END switch_importal -->
</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">


Pepi




Powered by Icy Phoenix