View Full Version : change the home/forum link url?
moviemaker
06-04-2005, 05:47 AM
How do I get the Home/Forum in the nav bar to point to domainname.com/forum/index.php
When I click on home it redirects to my base domainname.com which ends up calling my domainname.com/index.html file instead...
I'm pretty new to PHP stuff and I have a general idea of where to go to change the info, but at the same time I don't know what to put in the string to get it to point to:
/forum/index.php
Any help would be greatly appreciated...
Dean
You'll see the behaviour if you go to My Forum Pages... (http://www.christianfilmcrew.com/forum/board/index.php) and click on home, you'll see where it takes you...
I want it to go to MY CMPS index page... (http://www.christianfilmcrew.com/forum/index.php)
moviemaker
06-04-2005, 06:15 AM
Okay I figured this out...
I searched for:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>
And replaced with:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]/forum?$session[sessionurl]"> Home </if></a></td>
It worked a treat...
Basically I added [homeurl]? to [homeurl]/forum?
That did the trick.
Sascha Henken
06-04-2005, 01:53 PM
Can you tell me in which template you´ve changed this? I´m searching but can´t find it. Is it the "navbar" template or where do I need to search for? Thank you :)
moviemaker
06-04-2005, 04:02 PM
Hey Sascha, yes it was the navbar template :) I just searched for the top string and all I did was add the /forum to the [homeurl]? line to make it look like [homeurl]/forum? for the Home section of the code.
Basically I told it to go to the /forum folder which is where my cmps_index.php file resides...
if your cmps index file has a different structure just add the /folderhere to the code if that makes sense, or find and replace with my code and change "/forum" to whatever the name is of the directory that holds your cmps index file.
CrossBones
07-12-2005, 09:02 PM
Man, I need help.
I had a guy help me do this Forums/Home thing adding a new button (Forums) on the front page of the portal. And then I went and screwed up the whole thing trying to add something else. By mistake (stupidity) I hit the "revert" button that wiped out everything he did. Now I think he's tired of helping me and I'm just screwed.
I don't understand all this stuff much.
Can somebody walk me through how to add the 'Forums' button (I know the graphic is still in the right place on the server) to the front page of the CMPS? And then how do I have ALL other pages use the 'Home' button which directs you back to the Portal? The' Forums' button would only appear on the front page of the Portal.
Take a look at my site - CMPS here (http://www.blackreign.net/setup_index.php). The forums are here (http://www.blackreign.net/vb_forums/)
Right now the actual URL has a redirect on it while I finish setting everything up. I was about to go live with it and just had to screw things up yesterday! :rolleyes:
Man, I am getting frustrated with this stuff. I should have left well enough alone :o
mholtum
07-12-2005, 09:26 PM
You mean the code I gave you?
CrossBones
07-12-2005, 09:28 PM
You mean the code I gave you?No. Somebody else did it for me and it was working great. The site was setup perfectly but I was trying to do something else and screwed up the whole thing. Now I'm trying to understand EXACTLY how to put it back the right way. I have no clue.
CrossBones
07-12-2005, 11:07 PM
ooops.
CrossBones
07-13-2005, 12:44 AM
I got it fixed. Whew. :cool:
NCstate14
07-24-2005, 03:53 PM
i am having trouble with editing the cmps_index.php to point visitors to www.nuke-central.net ? any1 help will be appreciated.
Brian
07-24-2005, 06:09 PM
What exactly do you mean by "point visitors to www.nuke-central.net"? Are you trying to set the CMPS up so it's the first thing your visitors see when they visit your site, or what exactly?
NCstate14
07-24-2005, 08:26 PM
yes
Brian
07-24-2005, 08:45 PM
http://www.vbadvanced.com/forum/showthread.php?t=25
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.