Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Menu Block 
 
Can anyone tell me if there is an easy way to add a category and kinks to the menu block on the portal?

Thank you
 



 
notyetSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Menu Block 
 
You mean easiest than modifying nav_quick_links.tpl?
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Menu Block 
 
Thank but i know nothing about php and thought there may have been a control in the admin that i had missed, i wouldnt like to start altering/adding code to templates.

Notyet anyway  
 



 
notyetSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Menu Block 
 
The language into the template files is HTML and not PHP ;). What do you not understand?
 




____________
Official translator of Icy Phoenix to Dutch
 
brandsrusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Menu Block 
 
notyet wrote: [View Post]
Thank but i know nothing about php and thought there may have been a control in the admin that i had missed, i wouldnt like to start altering/adding code to templates.

Notyet anyway  




Well I don't know if in Icy there is the possibility to modify it through ACP, sincerely I don't think.


Anyway even knowing nothing about php (me neither know nothing at all about php ) you can start to modify something... all templates are written in HTML and some javascript... if you have a little knowledge about HTML you can quite easily start make some tests...

I suggest you to do that


Menu block is all tables and scripts. First of all remember to do a backup every time you want to try some change and then... try till you succeed


Let me give you (the little I am able to... ) some suggestion to start with.


For example, let's assume you want to add a "CREDITS" (just an example) page link in your menu block just below the "Forum" link, it's very simple:


You just need to open nav_quick_links.tpl and find the table wich contains the main section links.


The main section links is this:
Code: [Download] [Hide]
  1. <div id="main_links2" style="display: none; position: relative; padding-top: 0px; padding-bottom: 0px;">  
  2.             <table class="forumline-no2" width="100%" cellspacing="0" cellpadding="2" border="0">  
  3.                 <!-- BEGIN mg_switch_user_is_admin -->  
  4.                 <tr>  
  5.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  6.                     <td class="genmed" align="left">{ADMIN_LINK}</td>  
  7.                 </tr>  
  8.                 <tr>  
  9.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  10.                     <td class="genmed" align="left"><a href="{U_CMS}">{L_CMS}</a></td>  
  11.                 </tr>  
  12.                 <!-- END mg_switch_user_is_admin -->  
  13.                 <tr>  
  14.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  15.                     <td class="genmed" align="left"><a href="{U_PORTAL}">{L_HOME}</a></td>  
  16.                 </tr>  
  17.                 <tr>  
  18.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  19.                     <td class="genmed" align="left"><a href="{U_INDEX}">{L_FORUM}</a></td>  
  20.                 </tr>  
  21.                 <tr>  
  22.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  23.                     <td class="genmed" align="left"><a href="{U_BOARDRULES}">{L_BOARDRULES}</a></td>  
  24.                 </tr> 




As you can easily notice (if you have a little knowledge of HTML) it's only a div with a table... just create the <tr> section with the link you want to add (you can just copy the ones you find in it and modify them... )


Code: [Download] [Hide]
  1. <tr>  
  2. <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  3. <td class="genmed" align="left"><a href="CREDITS_PAGE_LINK">Credits</a></td>  
  4. </tr>  
  5.  




And than insert it just under the "Forum" <tr> section (like we wanted in the example) and you obtain


Code: [Download] [Hide]
  1. <div id="main_links2" style="display: none; position: relative; padding-top: 0px; padding-bottom: 0px;">  
  2.             <table class="forumline-no2" width="100%" cellspacing="0" cellpadding="2" border="0">  
  3.                 <!-- BEGIN mg_switch_user_is_admin -->  
  4.                 <tr>  
  5.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  6.                     <td class="genmed" align="left">{ADMIN_LINK}</td>  
  7.                 </tr>  
  8.                 <tr>  
  9.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  10.                     <td class="genmed" align="left"><a href="{U_CMS}">{L_CMS}</a></td>  
  11.                 </tr>  
  12.                 <!-- END mg_switch_user_is_admin -->  
  13.                 <tr>  
  14.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  15.                     <td class="genmed" align="left"><a href="{U_PORTAL}">{L_HOME}</a></td>  
  16.                 </tr>  
  17.                 <tr>  
  18.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  19.                     <td class="genmed" align="left"><a href="{U_INDEX}">{L_FORUM}</a></td>  
  20.                 </tr>  
  21. <tr>  
  22. <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  23. <td class="genmed" align="left"><a href="CREDITS_PAGE_LINK">Credits</a></td>  
  24. </tr>  
  25.                 <tr>  
  26.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  27.                     <td class="genmed" align="left"><a href="{U_BOARDRULES}">{L_BOARDRULES}</a></td>  
  28.                 </tr> 




All's done



If you have the good habit to do backups every change you make, you will be able to learn a lot of things... just trying and losing time finding where you are mistaking




I hope this could help...
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Menu Block 
 
Many thanks Vortex,

I will attempt this when i have time and report back.

Notyet though  
 



 
notyetSend private message  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron