View Full Version : need to edit one of my urls someplace - navbar links not working right.
May 16th, 2008, 09:34 PM
okay, my forum url is www.myboard.com
the forums themselves are installed at www.myboard.com/forums/index.php
however, I have it set in my server code that all you need to type in is www.myboard.com and you automatically end up at www.myboard.com/forums/index.php
the problem is when you are in the photopost area, and you try to click on a nav bar link, it's not working.
For example, in the main forum index if you mouse over my blogs button, it shows the link as www.myboard.com/blogs.php (which is the correct url)
when in photopost, if you mouse over the navbar, it shows the link as www.myboard.com/photopost/blogs.php
so it's somehow adding a photopost directory in the path for default items in the nav bar - what setting do I need to change?
May 16th, 2008, 10:00 PM
You must edit your blog_navbar_link template in your admin style manager of vb for your style and select edit templates. You will see your blog templates find the link in the template and make it a full url to that file.
May 17th, 2008, 05:12 PM
it's not just the blog though, it's every link in the navbar that's a default vbulletin link. And if you click the name of the site, anywhere else in the board it takes you back to the index page - but when you are in the photopost area, it's a dead link again
May 17th, 2008, 08:21 PM
You would need to post an example here for us then
Essentially your forum url is located in two places and must be correct in photopost admin forum settings and in your vb admin section under their url settings.
May 24th, 2008, 09:38 PM
putting in the full path works for some of the add-ons, but blogs are put in on the fly from hooks, and i can't edit it in the navbar template - it doesn't appear in that template. Same with my add-on chat room - the code for that creates the link based off of hooks as well - so direct edit in navbar
May 25th, 2008, 12:45 PM
The problem you are having is that the blog link (and most others) include the html as a link to only 'blog.php'. Since you are using Vb integration that your problem is that outside the main vb directory those links will not work.
to fix this, either edit the Template Navbar and make all the links absolute, for example if you have any custom ones then change them from:
mypage.php to http://yoursite.com/forum/mypage.php.
For other plugins such as the blogs you will need to go to the Plugins Manager, find the plugin and edit the posbit section.
Want the easy way? :) Then do this.
Take the attached file and rename it to the whatever file in the gallery navbar you are replacing. For example, mine is the blog.php file. Take the attached blog.txt and rename it to blog.php.
Then edit this file in a text editor. Change the two links to the links of your blog link and upload to your /gallery folder. This file will simply redirect the user to the right file. no editing necessary :)
Hope this helps, its what I do.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.