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 |
#22
|
||||
|
||||
Getting closer to understand this, tnx Natch
|
#23
|
|||
|
|||
can someone give me a link to the journal?
|
#24
|
||||
|
||||
Great hack btw this is going to be very useful, but I have a problem with it
Its fine when adding a page that just includes standard html, but I have just tried to add a page with a java page redirect script, the page itself works fine, but it does not get added to this page nav module. Do you know if you could fix this. I really need this as I use the redirect script to take the user to my forums Thanks |
#25
|
||||
|
||||
If you added the page in as a part of the CMPS script (as in AdminCP -> vBa CMPS -> Add Page) then it should work - I don't understand how you have added the page isf you didn't add it this way.
|
#26
|
||||
|
||||
I did actually add it that way, well i just saved the page again and its working now, thanks
|
#27
|
||||
|
||||
NP - glad u got it working
|
#28
|
||||
|
||||
arghhhhh this isnt working for me...
|
#29
|
||||
|
||||
Got it to work... Odd... I had to edit each page and click the "All Yes" in Usergroups and ssave it even though all were set to yes....
|
#30
|
||||
|
||||
Ok I moved my site to a new server. Everything works except the cmps_index.php if I turn this or the Featured Article mods on. I have removed both and reinstalled and the cmps_index.php still shows up as a white page if either is turned on. Ideas?
|
#31
|
||||
|
||||
White page as a general rule means missing templates - some hacks require you to re-install the templates - take a look at the Articles Hack installer and the CMPS installer - they both have "Re-install templates" options for upgrading...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|