View Full Version : A little navbar linking issue!
civicowners.com
11-13-2005, 05:19 PM
Hi,
I have a little problem with linking in navbar.
When i'm on CMPS page and click on search,
it goes to .com/search.php (should be .com/forum/search.php)
When I'm on gallery page and click on search,
it goes to .com/gallery/search.php (should be .com/forum/search.php)
Other links like Quick links have the same problem.
Other links like User CP, Home, Forums, Calendar, Gallery and logout have always the prefix /forum/
You can check on my site what I mean...www.civicowners.com
Thanks
civicowners.com
11-13-2005, 10:14 PM
bump
pbrown
11-13-2005, 10:22 PM
I'm having the same problem. I'll let you know if I figure it out.
--Patrick
pbrown
11-13-2005, 10:48 PM
Look at this thread.
http://www.vbadvanced.com/forum/showthread.php?t=12274
Seems that VB 3.5.1 uses virtual links for the nav bar. You need to edit the nav template and make them all explicit links.
In your case, add /forum/ to the begining of all the links.
--Patrick
civicowners.com
11-13-2005, 11:38 PM
Takes some time to do it. Hopefully I could find some spare time tomorrow.
Brian
11-15-2005, 02:17 PM
Admin CP => vBa Gallery => Modify Settings
Make sure that you have those filenames listed in your 'Navbar Replacements' option and that you have not changed anything in that setting and it should work just fine.
pbrown
11-15-2005, 03:49 PM
Brian,
I have all those file names listed in 'navbar replacements' and it wasn't working. My forum is installed at the root so the forum was working fine. The navbar from gallery was creating links like www.sitename.com/gallery/search.php which was not working.
--Patrick
wlanni
11-15-2005, 05:19 PM
Admin CP => vBa Gallery => Modify Settings
Make sure that you have those filenames listed in your 'Navbar Replacements' option and that you have not changed anything in that setting and it should work just fine.
I have a feeling that this is key to me solving a similar issue: from the gallery and from the vbadvanced homepage, when I click 'forums' in the navbar, it doesn't go to the forum, but goes back to the home page (basically adds an index.php? to the end of the url)
I'm afraid I don't quite understand what it means to have the 'filenames' in the navbar replacements options. Is that the filename of the cmps home page and gallery homepage, including a path to them?
EDIT: I just checked the navbar replacements file list and my index.php is in there... so I'm not sure what to do next.
w
wlanni
11-15-2005, 05:28 PM
OK I figured it out: I needed to replace the variable [forumhome] with the variable [bburl].
civicowners.com
11-16-2005, 12:26 AM
Admin CP => vBa Gallery => Modify Settings
Make sure that you have those filenames listed in your 'Navbar Replacements' option and that you have not changed anything in that setting and it should work just fine.
Brian,
I check Setting in vBa Gallery and I have those link in Navbar Replacements. I tried to add free more but they still won't work. Any other ideas?
Thanks
Oblivion Knight
12-03-2005, 02:58 PM
Seems that something has recently changed, because as reported the navbar replacements don't appear to be working on a fresh installation of 3.5.1; with only vBadvanced CMPS and GARS RC2b installed..
Brian
12-03-2005, 03:52 PM
None of them are working at all? I haven't had any problems with vB 3.5.1. Can you post a link to the site that you're having problems with and post what you have listed in your Navbar Replacements option?
Oblivion Knight
12-03-2005, 04:12 PM
PM sent.
Yosemite
12-04-2005, 05:16 PM
None of them are working at all? I haven't had any problems with vB 3.5.1. Can you post a link to the site that you're having problems with and post what you have listed in your Navbar Replacements option?
I am having the same issue here.
Just run a freshly 3.5.1 installation Friday.
Links are going crazy whatever I put relative path as well as absolute urls.
My vbulletin runs on the /forum folder of the domain while vbadvanced is in the home page. I am trying to add links to the homepage, the forumpage as well as a support area I have for them...
So I edited navbar and added:
<td class="vbmenu_control">
<a href="www.mydomain.com/index.php?">Home</a></td>
<td class="vbmenu_control"><a href="support?">Support</a></td>
<td class="vbmenu_control"><a href="forum?">forum</a></td>
to better understand i put 2 relatives and one absolute URL's
results are that naturally from the Vbadv home page the link are correctly sending to the forum folder and the forums, in the forum page this is not working at all. I tried for all relative and absolute paths.
even the absolute path if clicked from the forum page display a result as:
http://www.mydomain.com/forum/www.mydomain.com/index.php?
The relativepaths instead behave as follow: ( example support):
http://www.mydomain.com/forum/support
:confused:
Oblivion Knight
12-04-2005, 06:14 PM
I fixed my issue.. :)
Make sure that this option is set correctly in your vBa Settings:
CMPS URL
The full URL to the CMPS file.
If left at /cmps_index.php, the navbar replacements won't function.
Yosemite
12-05-2005, 04:12 AM
I fixed my issue.. :)
Make sure that this option is set correctly in your vBa Settings:
CMPS URL
The full URL to the CMPS file.
If left at /cmps_index.php, the navbar replacements won't function.
I did it....as soon as renamed the file name after the upload... but still nothing....
Brian
12-05-2005, 03:32 PM
<td class="vbmenu_control">
<a href="www.mydomain.com/index.php?">Home</a></td>
<td class="vbmenu_control"><a href="support?">Support</a></td>
<td class="vbmenu_control"><a href="forum?">forum</a></td>
That is not the correct way to add links. This would be the correct way:
<td class="vbmenu_control">
<a href="http://www.mydomain.com/index.php?">Home</a></td>
<td class="vbmenu_control"><a href="/support/">Support</a></td>
<td class="vbmenu_control"><a href="/forum/">forum</a></td>
Yosemite
12-05-2005, 06:48 PM
That is not the correct way to add links. This would be the correct way:
<td class="vbmenu_control">
<a href="http://www.mydomain.com/index.php?">Home</a></td>
<td class="vbmenu_control"><a href="/support/">Support</a></td>
<td class="vbmenu_control"><a href="/forum/">forum</a></td>
Thanks Brian,
as usually you are right.
Just find out this morning reviewing everything.
Now it si working and I got nto another problem... :mad: as I installed a vbskin I am not able to find again the same cose on the navbar and add again the links...
Any idea?
Thanks
Yosemite
Brian
12-07-2005, 04:11 PM
The code may not be exactly the same, but should still be pretty close. Just search for some of the phrases (register, user_cp, etc) and you should be able to find where the code is.
cybrsufr
12-07-2005, 07:59 PM
Ok, I have read and read and none of this is fixing my Nav Bar. I just upgraded from VB3.x abd VbA 1.0 to VB3.5 and VbA 2.0 and now none of the Nav Bar links on the VBA page work at all. They all give 404 errors. I have added /forums/ to all of the nave bar replacement names with no luck. I have check and check the posts here for the last three days to no avail. The links work fine from VB itself. Once you enter the forums all of the links are correct but on the VBA homepage they all poing to /member.php or /search.php instead on /forums/members.php and so on. Any help at all. The link to my site is below. Ignore the big fat rss error, still working on that one, I hate upgrades :-)
http://www.cybrsufr.net/forums/images/global/cybrsufr.png
http://www.cybrsufr.net
Brian
12-08-2005, 05:45 PM
I have added /forums/ to all of the nave bar replacement names with no luck.
That would be exactly why it's not working then. There's no need to alter the filenames at all, unless you're simply adding a new filename to the list. If the site you're having a problem with is the one you posted a link to then another reason you're having that problem is because those links are in your header template. If you copy the list of filenames from your Navbar Replacements option though (after you remove the /forums/ part that you added) over to your Header Replacements option then that should take care of the problem.
coldfusi0n
12-20-2005, 04:04 AM
i have the same prob with my site as well and i have my portal in my root and my forums in /forums/
my site is at http://vistaosworld.com
Brian
12-20-2005, 02:09 PM
Admin CP => vBulletin Options => Site Name / URL / Contact Details => Forum URL
Make sure you have that option set to the URL to your forums.
Synwave
12-21-2005, 07:41 PM
Greetings,
I fixed this problem by putting "$vboptions[bburl]" before all the urls.
Eg.
<td class="navbar"><a href="$vboptions[bburl]/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
It works for all the links except for the dynamic drop down menus.
Anybody else having this problem?
Akkarin
12-22-2005, 10:01 AM
I figured out how to fix it. Go to your admincp and then Styles & Templates > Style Manager. Select the skin your using and go "Edit Templates". Then scroll down and double click "adv_portal_search". Now replace:
<a href="$vboptions[bburl]search.php?">$vbphrase[advanced_search]</a>
With:
<a href="$vboptions[bburl]/forum/search.php?">$vbphrase[advanced_search]</a>
Now save that. Next double click "Header". Now find all of the "<a href" and if they are one of the links such as "usercp" "faq" etc... replace them to look similar to this:
<a href="/forum/usercp.php$session[sessionurl_q]"> that's just an example.
That should take care of the links aswell and the drop down menus. I hope this works for you, it worked for me.
Brian
12-22-2005, 12:23 PM
There's no reason to even do all of that. As long as your Forum URL option is set correctly and you have the filenames listed in your Navbar Replacements or Header Replacements option then it will change the links for you.
Ozzie
12-30-2005, 09:02 AM
Brian, thanks. That fixed the problem for me. Very simple.:)
rcull
12-30-2005, 04:40 PM
I like the sound of Brian's solution, but it doesn't seem to be working for me! Probably something I am overlooking...
Navbar Replacements
http://www.teambuick.com/forums/memberlist.php
http://www.teambuick.com/forums/usercp.php
http://www.teambuick.com/forums/regishttp://www.teambuick.com/ter.php
http://www.teambuick.com/forums/faq.php
http://www.teambuick.com/forums/calendar.php
http://www.teambuick.com/forums/search.php
http://www.teambuick.com/forums/login.php
http://www.teambuick.com/forums/forumdisplay.php
http://www.teambuick.com/forums/profile.php
http://www.teambuick.com/forums/private.php
http://www.teambuick.com/forums/subscription.php
http://www.teambuick.com/forums/member.php
http://www.teambuick.com/forums/online.php
CMPS Url
http://www.teambuick.com/forums/cmps_index.php
Mmmmmm.....
As I post this, I notice that when I load the cmps_index.php out of the above link, everything is good.
When I load it out of the homepage link, it is not good! http://www.teambuick.com/index.php
Still looking for the best fix.
Bob
Brian
12-30-2005, 05:45 PM
Remove your forum's URL from the beginning of each filename, so that you're left with just a list of the filenames.
rcull
12-30-2005, 06:13 PM
Great, thanks, as you knew, that was it!
duria
01-08-2006, 11:47 PM
Remove your forum's URL from the beginning of each filename, so that you're left with just a list of the filenames.
Hi there... I'm having some trouble with this, and I've done everything EXACTLY as stated... main trouble is with the register. When a user clicks it, they're directed to http://www.alldogsforum.com/register.php?do=signup which gives them a 404 error. The correct url should be http://www.alldogsforum.com/forum/register.php?do=signup
My navbar replacements show this:
memberlist.php
usercp.php
faq.php
calendar.php
search.php
login.php
forumdisplay.php
profile.php
register.php
private.php
subscription.php
member.php
online.php
logout.php
signup.php
and my forum url is http://www.alldogsforum.com/forum which is correct.
Any other thoughts?
rcull
01-09-2006, 12:35 AM
How about changing the navbar replacement to:
forum/memberlist.php
forum/usercp.php
forum/faq.php
forum/calendar.php
forum/search.php
forum/etc......
duria
01-09-2006, 12:45 AM
How about changing the navbar replacement to:
forum/memberlist.php
forum/usercp.php
forum/faq.php
forum/calendar.php
forum/search.php
forum/etc......
Tried that, no good. Still getting same 404 errors. :(
Thanks for trying though!
Amial
01-09-2006, 01:34 AM
Thank you!
Duria and I figured it out and got it to working.
Appreciate the help!
Sincerely,
Amial
duria
01-09-2006, 09:00 AM
Thank you!
Duria and I figured it out and got it to working.
Appreciate the help!
Sincerely,
Amial
Actually, it still seems to be not working... still missing that forum/ before the .php files.
rcull
01-09-2006, 12:07 PM
Your right, forums in front of the link is not the problem. I had the same problem if I can remember....
Go to your VBulletin Options. Click on Site Name/URL/Contact Details.
Look at "Forum URL"
That is where I went wrong. Mmmm... looks like you may have already checked that? Are you loading a new page each time you check?
duria
01-09-2006, 03:55 PM
The forum url is correct. :(
Yes, each time I check, I log out and clear my cookies, and then attempt to go to alldogsforum.com and click register. It then gives me the 404 by taking me to alldogsforum.com/register.php instead of alldogsforum.com/forum/register.php
It's very frustrating. :confused:
Brian
01-09-2006, 10:06 PM
How about changing the navbar replacement to:
forum/memberlist.php
forum/usercp.php
forum/faq.php
forum/calendar.php
forum/search.php
forum/etc......
As I have said too many times now, that will NOT fix the problem, and will DEFINITELY NOT work if you change the links like that.
duria - You seem to have uninstalled the CMPS, so I can't really see the problem on your site right now. Please let me know once you have it reinstalled so I can get a better idea of the problem.
aZooZa
01-11-2006, 05:46 AM
I've been pulling my hair out with all this. Here's how I fixed it, in the
In admin > vba default settings:
Copy all the .php files that are listed in 'Navbar replacements' into the 'Header Replacements' box above.
memberlist.php
usercp.php
register.php
faq.php
calendar.php
search.php
login.php
forumdisplay.php
profile.php
private.php
subscription.php
member.php
online.php
duria
01-11-2006, 05:35 PM
I've been pulling my hair out with all this. Here's how I fixed it, in the
In admin > vba default settings:
Copy all the .php files that are listed in 'Navbar replacements' into the 'Header Replacements' box above.
memberlist.php
usercp.php
register.php
faq.php
calendar.php
search.php
login.php
forumdisplay.php
profile.php
private.php
subscription.php
member.php
online.php
Doesn't work on this for us. Thanks anyway.
duria
01-11-2006, 05:38 PM
duria - You seem to have uninstalled the CMPS, so I can't really see the problem on your site right now. Please let me know once you have it reinstalled so I can get a better idea of the problem.
It's been reinstalled, and I've sent you a PM. Many thanks if you can help. :D
Brian
01-11-2006, 06:27 PM
duria - If I'm thinking correctly here, the vBa error plugin should take care of those links for you...
Admin CP => Plugin System => Plugin Manager
Go there, edit the code for your 'vBadvanced Error Replacements' plugin, and make sure you have the following code:
$vbulletin->templatecache['STANDARD_ERROR'] = str_replace(
array(
'"login.php',
'"register.php',
'"clientscript'
),
array(
'"' . $vbulletin->options['bburl'] . '/login.php',
'"' . $vbulletin->options['bburl'] . '/register.php',
'"' . $vbulletin->options['bburl'] . '/clientscript'
),
$vbulletin->templatecache['STANDARD_ERROR']
);
$headinclude = str_replace('"clientscript', '"' . $vbulletin->options['bburl'] . '/clientscript', $headinclude);
$errormessage = str_replace(
array(
'"login.php',
'"profile.php',
'"clientscript'
),
array(
'"' . $vbulletin->options['bburl'] . '/login.php',
'"' . $vbulletin->options['bburl'] . '/profile.php',
'"' . $vbulletin->options['bburl'] . '/clientscript'
),
$errormessage
);
$forumjump = str_replace('"forumdisplay.php', '"' . $vbulletin->options['bburl'] . '/forumdisplay.php', $forumjump);
Also make sure that plugin is marked as active.
If that still does not help, you could edit your STANDARD_ERROR template through your style manager and add $vboptions[bburl]/ in front of all references to register.php and login.php.
duria
01-11-2006, 07:07 PM
well we fixed it with that. And it was working fine. And then it just stopped working all of a sudden, without us touching it. :(
*edit* And now it's back. Tempermental little thing, isn't it?
Brian
01-11-2006, 07:40 PM
Were you pulling the page from cache perhaps? And when you say you fixed it with "that", was it by changing the plugin code, or by modifying the template?
duria
01-11-2006, 07:43 PM
Were you pulling the page from cache perhaps? And when you say you fixed it with "that", was it by changing the plugin code, or by modifying the template?
Nope, cleared the cache each time, just in case... We ended up doing both, the plugin code at first, and it still didn't fix it, so we added the other code into the template, and now it's working.
Thanks for your help. We were about to bash something to death, and it wasn't going to be pretty.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.