The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBa CMPS: Dynamic Navigation menu - all your Custom CMPS Pages Details »» | |||||||||||||||||||||||||||
vBa CMPS: Dynamic Navigation menu - all your Custom CMPS Pages
Developer Last Online: Apr 2022
What this does: creates a Navigation menu (best as a left or right side block) which is populates automagically by the custom pages you have inserted into your CMPS. It should only show the user the pages that they have permissions to view.
Step 1: create and upload a new module modules/navmenu.php with the contents PHP Code:
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <thead> <tr> <td class="tcat"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cmps_pagesmenu')"><img id="collapseimg_cmps_pagesmenu" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_cmps_pagesmenu].gif" alt="" border="0" /></a> <span class="smallfont"><strong>$vba_options[portal_blockbullet] Navigation</strong></span> </td> </tr> </thead> <tbody id="collapseobj_cmps_pagesmenu" style="$vbcollapse[collapseobj_cmps_pagesmenu];text-align:$stylevar[left]"> $pages_menubits </tbody> </table> <br /> Code:
<tr> <td class="$bgclass" style="text-align:right"> <span class="smallfont"> <!-- edit this entry to alter the index.php if your cmps portal has a different filename --> <a href="$vboptions[homeurl]/index.php?$session[sessionurl]<if condition="$pagename!=home">$vba_options[portal_pagevar]=$pagename</if>" title="link to $title page">$title</a> </span> </td> </tr> Module Title: Page Navigation File To Include: navmenu.php Templates used: adv_portal_pagesmenu, adv_portal_pagesmenubits HTH y'all I like it Demo <= this shows only one link available due to Guest permissions Login with test/testicular to see the menu populate with extra pages EDIT:// Altered the module; if you have installed this prior to now, please update the contents of your module with the edited one above. Show Your Support
|
Comments |
#32
|
||||
|
||||
Already redid the CMPS ones...
|
#33
|
|||
|
|||
Actually i found its not the templates, its the module that you have to make up that causes the blank page from my experience...not sure how you overcome that yet.
|
#34
|
||||
|
||||
Well I had to remove it altogether. No use it taking up space when I cant get it to work again.
|
#35
|
|||
|
|||
i dont get the box appearing....
I followed everything 100% |
#36
|
|||
|
|||
ok it did work, but nothings in the box
|
#37
|
||||
|
||||
All this script does is create a list of the pages you have installed for your CMPS system - if you don't use the extra pages feature or you don't use CMPS then this is of no use to you.
Please check that your current style has the new template, and that you have got the module in place. Please also post the site url's or PM them if you are still having problems. |
#38
|
|||
|
|||
<a href="http://www.blaminator.co.uk" target="_blank">www.blaminator.co.uk</a>
I had to make my own silly navigation menu, yours is a few blocks down, its jsut blank yes i do have other pages |
#39
|
||||
|
||||
OK - can you give me temp acces to your AdminCP - cos at the moment I cannot see how you could have my script installed and the tempaltes installed correctly without them showing up: there is nothing complicated in this script.
|
#40
|
|||
|
|||
Natch the menu works fine, but have you got any examples of creating submenus with it...say i want to have
vb Tutorials Section - CMPS hacks - vb hacks - my life story |
#41
|
||||
|
||||
Well, that would defintely go beyond the scope of this, as all pages in the CMPS are on one level.
One could create multi-dimensional menus, but it would require you manually dividing up your CPMPS apges into groups somehow: possibly by giving all tempaltes of items in the same group an identical prefix... eg: adv_portal_tut_tutorial1 adv_portal_tut_tutorial2 adv_portal_tut_tutorial3 adv_portal_faq_faq1 adv_portal_faq_faq2 adv_portal_faq_faq3 Then you can add a filter into the module to parse each group into a separate array, then walking thru each array inside a UL... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|