View Full Version : Advanced Navigation module for vBulletin 3.5.x and CMPS 2.0
drl2005
10-18-2005, 05:34 PM
Navigation module for vBulletin 3.5.x and CMPS 2.0
I have found this module always nicely and skilful, and have decided to modify and rewrite it for vB 3.5 and vBa 2.0.
Many thank to Deviant ++ for giving me the permissions to modify and rewrite its module.
Features:
1. Search box ( with advanced search).
2. Drop Down Menus ( add as many drop down links and sublinks you want).
3. Mouse Roll overs ( color changes on both main menu and submenu).
4. Unique Button feel to highlight dull areas such as archive as vB Lite mode.
5. Button to profile image (You can refer him to your gallery or download hack) .
6. Complete IE and FF support.
7. Easy to edit code parsing.
8. Rename the module from edit module page instead of html coding.
9. Conditional AdminCP link for admins.
Install notes:
Go to your Admincp -> open vBa CMPS -> Download / Upload Module
- Please select a module from your computer to upload (select the navigationmenu.module).
- Column (left is the best location).
- Display Order (0 or what you want).
- Active (yes).
- Update All Pages (what you want).
- Style to install templates to (what you want).
- Usergroups (what you want).
- Submit
Upload upnew.gif & navbits_dash.gif to your skins ( 'misc' ) folder.
all done !
Note: Dont forget that you can save server resources by disabling the search module from the edit cmps module page.
You can also look for support here, but I am not a real coder, thus help each other please.
Module updated on 20 October 2005:
Avalon111 found a bug in the search of the module, the [/form] tag was missing (http://www.vbadvanced.com/forum/showpost.php?p=67529&postcount=13), thnx Avalon111
Thnx all, and have fun with the new navigation module.
Optional:
You can adds 9 more search engines to your module.
Thanks to Judge Ruckus & 58sniper (http://www.vbadvanced.com/forum/attachment.php?attachmentid=1970&d=1130100360) ;)
Replace in your adv_portal_navmenu template this:
<!-- Search -->
<hr size="1"/>
<form action="{$vbulletin->options[bburl]}/search.php" method="post" name="search"> <input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="process" /> <input name="sortby" type="hidden" value="lastpost" /> <input name="forumchoice" type="hidden" value="0" />
<input class="bginput" name="query" size="16" type="text" /> $gobutton
<div class="smallfont">» <a href="$vboptions[bburl]/search.php?">$vbphrase[advanced_search]</a></div>
</form>
<!-- / Search -->
With this:
<!-- Search -->
<hr size="1"/>
<script type="text/javascript" language="JavaScript">
function startSearch(){
searchString = document.searchForm.searchText.value;
switch (document.searchForm.whichEngine.value) {
case "altavista":
finalSearchString = "http://www.altavista.com/web/results?q=" + searchString;
break
case "yahoo":
finalSearchString = "http://search.yahoo.com/search?p=" + searchString;
break
case "excite":
finalSearchString = "http://msxml.excite.com/info.xcite/search/web/" + searchString;
break
case "hotbot":
finalSearchString = "http://www.hotbot.com/?MT=" + searchString;
break
case "infoseek":
finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString;
break
case "lycos":
finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?query=" + searchString;
break
case "aolnetfind":
finalSearchString = "http://netfind.aol.com/aolcom/search?query=" + searchString;
break
case "google":
finalSearchString = "http://www.google.com/search?q=" + searchString;
break
case "mysearch":
finalSearchString = "http://mysearch.myway.com/jsp/GGmain.jsp?searchfor=" + searchString;
break
case "netscape":
finalSearchString = "http://search.netscape.com/ns/search?query=" + searchString;
break
case "vb":
finalSearchString = "";
document.searchForm.action = "$vboptions[bburl]/search.php";
document.searchForm.method = "post";
document.searchForm.query.value = document.searchForm.searchText.value;
document.searchForm.submit();
return true;
break
default:
finalSearchString = "";
}
document.location = finalSearchString;
return true;
}
</script>
<form name="searchForm" method="post" action="">
Search for: <input name="searchText" type="text" size="17"/> <b>@</b>
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="query" />
<select name="whichEngine">
<option value="vb">$vboptions[bbtitle]</option>
<option value="altavista">Altavista</option>
<option value="yahoo">Yahoo!</option>
<option value="excite">Excite</option>
<option value="hotbot">Hotbot</option>
<option value="infoseek">Infoseek</option>
<option value="lycos">Lycos</option>
<option value="aolnetfind">AOL Netfind</option>
<option value="google">Google</option>
<option value="mysearch">MySearch</option>
</select>
<center><input type="button" value="Search" onclick="startSearch();" /></center>
</form>
<!-- / Search -->
drl2005
10-18-2005, 05:35 PM
Deviant ++ thank once again ;)
Judge Ruckus
10-18-2005, 05:38 PM
I have said it so many times, just one more.
Thank you both very much, this is a great addition!
Avalon111
10-18-2005, 05:40 PM
great i love it!!!!
Avalon111
10-18-2005, 05:50 PM
i followed your instructions but it doesnt show up at the portal page?
Judge Ruckus
10-18-2005, 05:58 PM
i followed your instructions but it doesnt show up at the portal page?
1. Make sure it is active or turned on.
( Admin CP > Edit Modules > Navigation Menu )
(Admin CP > Edit pages > Homepage)
2. Double check the style you added it to.
First things I would look at.
Paulo
10-18-2005, 06:02 PM
Great !
Thank you
KW802
10-18-2005, 06:12 PM
Looks great! :cool: I'm sure a lot of vBa community members will find it useful.
Avalon111
10-19-2005, 02:21 AM
(Admin CP > Edit pages > Homepage)
my fault!
next time i wont install anything after 11:30pm :o
drl2005
10-19-2005, 10:07 AM
my fault!
next time i wont install anything after 11:30pm :o
No problem :p
one9er
10-19-2005, 07:56 PM
Thank you all! It works great! Love it!!!!!:)
Snowy
10-20-2005, 06:23 AM
works perfect :)
Avalon111
10-20-2005, 02:32 PM
Brian has found a problem in your module.
i have asked him to have a look at my site because the vote button of the current poll module opened the search website.
the [/form] tag was missing. i have added it to the following part of the template. now everything is working again.
<!-- Search -->
<hr size="1"/>
<form action="{$vbulletin->options[bburl]}/search.php" method="post" name="search"> <input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="process" /> <input name="sortby" type="hidden" value="lastpost" /> <input name="forumchoice" type="hidden" value="0" />
<input class="bginput" name="query" size="16" type="text" /> $gobutton
<div class="smallfont">» <a href="$vboptions[bburl]/search.php?">$vbphrase[advanced_search]</a></div>
</form>
<!-- / Search -->
drl2005
10-20-2005, 02:47 PM
Brian has found a problem in your module.
i have asked him to have a look at my site because the vote button of the current poll module opened the search website.
the [/form] tag was missing. i have added it to the following part of the template. now everything is working again.
<!-- Search -->
<hr size="1"/>
<form action="{$vbulletin->options[bburl]}/search.php" method="post" name="search"> <input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="process" /> <input name="sortby" type="hidden" value="lastpost" /> <input name="forumchoice" type="hidden" value="0" />
<input class="bginput" name="query" size="16" type="text" /> $gobutton
<div class="smallfont">» <a href="$vboptions[bburl]/search.php?">$vbphrase[advanced_search]</a></div>
</form>
<!-- / Search -->
Thnx mate, I have updated the module ;)
Perkyd
10-20-2005, 05:47 PM
It's asking me to :
Your modules directory is not writable. Please chmod your modules directory to 777 and try again.
What do I have to do to make this work?
Go it working with : cpanel: go to the folder: click on permissions: put check mark in all cats; made it 777. Went back to Admin cp: Follow the instructions: Work like a charm.
after the hack: went back to change settings back.
Avalon111
10-20-2005, 06:08 PM
It's asking me to :
Your modules directory is not writable. Please chmod your modules directory to 777 and try again.
What do I have to do to make this work?
-use a ftp client and open your webspace folder
-select the modul folder
-chmod 777
finished!
now its working
drl2005
10-20-2005, 06:09 PM
It's asking me to :
Your modules directory is not writable. Please chmod your modules directory to 777 and try again.
What do I have to do to make this work?
Go to your module folder with a ftp client, en chmod the folder to 777
(Right click on your module folder, and you will see something of chmod.)
Judge Ruckus
10-21-2005, 12:02 AM
I added the Super Search 2 to mine, asked the orginal coder if I could put it out as an add on for this but no reply.
mholtum
10-21-2005, 01:34 AM
looking good as usual... Thanks bro. Might us it
Deviant++
10-21-2005, 02:48 PM
Oooh lol, this module has definitely gotta be the most..umm shall we say.. 'combined' effort module for vba ? :P seriously. Never thought it'd take on so much when I combined the initial codes into one full thing.
Perkyd
10-21-2005, 06:40 PM
Got it working; Man this is a Good Hack: This is useful: Made a change to it: Check it out: www.wealthbrokers.org
rammbs
10-22-2005, 01:53 AM
installed. thanks!
Jason McConnell
10-23-2005, 12:43 PM
installed here as well!! Thanks :D
Judge Ruckus
10-23-2005, 05:24 PM
Got in contact with 58sniper (Thank you sir!)in regards to adding his 1.X module Super Search 2 (read more) (http://www.vbadvanced.com/forum/showthread.php?t=1971) and said it would be fine to share it with other useres here.
This adds like 9 more search engines to your module.
Replace in your nav template..
<!-- Search -->
<hr size="1"/>
<form action="{$vbulletin->options[bburl]}/search.php" method="post" name="search"> <input name="s" type="hidden" value="" /> <input name="do" type="hidden" value="process" /> <input name="sortby" type="hidden" value="lastpost" /> <input name="forumchoice" type="hidden" value="0" />
<input class="bginput" name="query" size="16" type="text" /> $gobutton
<div class="smallfont">» <a href="$vboptions[bburl]/search.php?">$vbphrase[advanced_search]</a></div>
</form>
<!-- / Search -->
With this here..
<!-- Search -->
<hr size="1"/>
<script type="text/javascript" language="JavaScript">
function startSearch(){
searchString = document.searchForm.searchText.value;
switch (document.searchForm.whichEngine.value) {
case "altavista":
finalSearchString = "http://www.altavista.com/web/results?q=" + searchString;
break
case "yahoo":
finalSearchString = "http://search.yahoo.com/search?p=" + searchString;
break
case "excite":
finalSearchString = "http://msxml.excite.com/info.xcite/search/web/" + searchString;
break
case "hotbot":
finalSearchString = "http://www.hotbot.com/?MT=" + searchString;
break
case "infoseek":
finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString;
break
case "lycos":
finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?query=" + searchString;
break
case "aolnetfind":
finalSearchString = "http://netfind.aol.com/aolcom/search?query=" + searchString;
break
case "google":
finalSearchString = "http://www.google.com/search?q=" + searchString;
break
case "mysearch":
finalSearchString = "http://mysearch.myway.com/jsp/GGmain.jsp?searchfor=" + searchString;
break
case "netscape":
finalSearchString = "http://search.netscape.com/ns/search?query=" + searchString;
break
case "vb":
finalSearchString = "";
document.searchForm.action = "$vboptions[bburl]/search.php";
document.searchForm.method = "post";
document.searchForm.query.value = document.searchForm.searchText.value;
document.searchForm.submit();
return true;
break
default:
finalSearchString = "";
}
document.location = finalSearchString;
return true;
}
</script>
<form name="searchForm" method="post" action="">
Search for: <input name="searchText" type="text" size="17"/> <b>@</b>
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="query" />
<select name="whichEngine">
<option value="vb">$vboptions[bbtitle]</option>
<option value="altavista">Altavista</option>
<option value="yahoo">Yahoo!</option>
<option value="excite">Excite</option>
<option value="hotbot">Hotbot</option>
<option value="infoseek">Infoseek</option>
<option value="lycos">Lycos</option>
<option value="aolnetfind">AOL Netfind</option>
<option value="google">Google</option>
<option value="mysearch">MySearch</option>
</select>
<center><input type="button" value="Search" onclick="startSearch();" /></center>
</form>
<!-- / Search -->
DEMO HERE (http://www.cecilcountyx.com)
divided_by_fear
10-29-2005, 03:34 AM
amazing great work on the mod....
ashokforums
11-01-2005, 06:58 PM
I need a help guys.. When i click on Go (for search) i want the search to open in a new window.. If the user is gonna search in google i do not want him to go outside my site.. But i want that search engine option.. Can someone tell me how to open the search results in a new window?
nengrong
11-07-2005, 05:18 AM
So, how to modify the structure of the menu?
I can not find place for modification in the control panel. Have to midfy the "adv_portal_navmenu" file manually?
drl2005
11-07-2005, 05:44 AM
So, how to modify the structure of the menu?
I can not find place for modification in the control panel. Have to midfy the "adv_portal_navmenu" file manually?
Correctly, you must adapt the template ;)
nengrong
11-07-2005, 10:23 AM
I do not have any experiance in PHP. I understand the structure of the code for popup menu. However, is there anybody who can tell me how to modify the code to include sub-link menu ? Where and how to add? An demonstration is great. Thank you very much.
<!-- Items Menu -->
<div class="vbmenu_popup" id="items_menu" style="display:none;margin-left:100px;">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Items Menu</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/index.php">linked item for your site</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/index.php">linked item for your site</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/index.php">linked item for your site</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/index.php">linked item for your site</a></td></tr>
</table>
</div>
<!-- / Links menu -->
fluentdesigns
11-10-2005, 02:50 AM
Im going crazy here cuz I am not able to edit the menu module without it saying this is not a valid module every time I try to update it.
How are you guys editing the menu? This is driving me nuts!
BlackRanger3d
11-11-2005, 02:14 PM
Same problem I was having.
Not sure as to the technical reason for this, but you can not edit the module directly and then upload it.
Instead go to
ADMINCP > Styles and Templates > Style Manager > Default Style (well for me anyway) >adv_portal_navmenu
Then edit code in this file.
HellRazor
11-12-2005, 08:38 PM
I'm having trouble getting the background/rollover effects to display properly. Can anyone tell me what I need to change to make this work right? (See screenshot).
When I roll over the links that are black, they then appear, the background around the links still remains black.
HellRazor
11-13-2005, 02:40 PM
The problem seems to be that the background always stops at that same spot no matter what other menu pieces I add or take away.
The background is a .gif file. The default background COLOR (black) shows but the pic stops displaying at that spot. The only way I've found to fix it is to enclose each block in a <td><tr>.
Any suggestions?
divided_by_fear
11-16-2005, 04:39 PM
anyone ever think about making this html complaint?
Drago912
11-21-2005, 12:58 PM
Thanks very much for this.....works great!!
soft_link
11-23-2005, 11:21 PM
This is a great module. Thanks for you work!
Synth
11-24-2005, 01:39 AM
Thanks for the share! Works great!
joelc73
11-24-2005, 10:27 AM
This is really nice. Dumb question... How do I change the menu items? I don't see anything when I click on cmps/edit modules.
drl2005
11-24-2005, 10:47 AM
This is really nice. Dumb question... How do I change the menu items? I don't see anything when I click on cmps/edit modules.
Styles & Templates --> Style Manager --> in all style options choose edit templates and search for the adv_portal_navmenu template.
joelc73
11-24-2005, 10:59 AM
Styles & Templates --> Style Manager --> in all style options choose edit templates and search for the adv_portal_navmenu template.
So I actually have to edit the code itself?:eek:
drl2005
11-24-2005, 11:07 AM
So I actually have to edit the code itself?:eek:
I'ts not difficult, take the time en play with it.
You can make a backup of your template (copy/past) it in a text file.
joelc73
11-24-2005, 07:12 PM
I'ts not difficult, take the time en play with it.
You can make a backup of your template (copy/past) it in a text file.
I'm certainly game for a giving it a whirl. Can someone point me in the right direction for getting started. I want to change some of the links to point to specific categories on my site. Which pieces of the code do I change?
For Example:
<a href="$vboptions[bburl]/chat.php$session[sessionurl_q]">Chat</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/>
I can figure out how to change the item in the menu from chat to something else but where (and in what format) do I put the new url?
Thanks,
drl2005
11-24-2005, 07:37 PM
You must edit the part that is red.
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td></tr>
For Example
http://www.google.nl/">Google
OR
http://your.domein.com/forum/forumdisplay.php?f=19">Forums
OR
$vboptions[bburl]/forumdisplay.php?f=19">Forums
joelc73
11-24-2005, 08:34 PM
You must edit the part that is red.
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td></tr>
For Example
http://www.google.nl/">Google
OR
http://your.domein.com/forum/forumdisplay.php?f=19">Forums
OR
$vboptions[bburl]/forumdisplay.php?f=19">Forums
Thank you very much. This is exactly what I needed.
All the best!
TeamGoFast
11-25-2005, 01:54 PM
ok how do i get this<if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/<if condition="$session[sessionurl]">?$session[sessionurl]</if>"> Forum <else /> <a href="$vboptions[forumurl]"> Home </a></if></td></tr>
to point to my forums and not the index page?
TIA
blitzburgh
11-26-2005, 01:30 PM
Is there a way to open only the search engines in a new browser so the users do not leave your site?
cookie
11-28-2005, 09:06 AM
I don't mean to dog on this module but there isn't a damn thing advanced about it. All it is is basic HTML. The original navigation module for vBadvanced is more advanced then this.
jfreundn
12-03-2005, 02:11 PM
What am I doing wrong. I have tried to install 2 modules and I keep getting this error message.
The file you have uploaded is not a valid module file.
What am I doing wrong?
Thanks in Advance.
John
club racer
12-11-2005, 12:16 AM
1. Make sure it is active or turned on.
( Admin CP > Edit Modules > Navigation Menu )
(Admin CP > Edit pages > Homepage)
2. Double check the style you added it to.
First things I would look at.
Thanks for this........now it shows up! Next thing, to figure out why the images arent working.
I've uploaded them to the misc folder
Upload upnew.gif & navbits_dash.gif to your skins ( 'misc' ) folder.
more troubleshooting
club racer
12-11-2005, 12:22 AM
fixed! Images appear. I uploaded them to the images/misc folder INSTEAD of my skin/misc folder
duh:rolleyes:
*edit
All done! For a newbie it only took about 30 minutes from start to finish, and that includes the template editing.
Check it out at www.clubracer.net
Thanks for the NICE add on!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.