View Full Version : index.php confusion
Trickle
11-28-2005, 10:42 AM
Ok here's the skinny. I installed VBulletin 3.5 right onto my site making it the main page. I did not install it into a forums folder. I've been reading and researching and this question has been asked and answered but not to something that I understand. When I type my in my url the VBadvanced page shows up. I figured out how to put the forums link on the nav bar. (Believe me I am greener then a frogs ass to all of this and even that took me a couple hours to do that) BUT when I click on the forums link it does not take me to the forums but to the main page. My question is where the heck did my forums go? I don't know how to link it to the forums button on the nav bar. Its still there but when I changed the file name from cmvs_index.php to index.php I lost it. I guess what I'm saying is that the only way I knew how to get to my forums was with the index.php but I over wrote it with the new file that directs to the vbadvance page. Any help would be appreciated.
Thanks
Trickle
Drago912
11-28-2005, 02:29 PM
You need to open your navbar template and put the full url path for the forum link.
Trickle
11-28-2005, 07:02 PM
That's what I thought but don't flame me for this..... what would it be?? I assumed the index.php was it but then I overwrote it. I look at other forums that have this link and they all point to the the folder the forums were installed in, not really a specific file. For me that would be my main root, where my index.php file is and where vbadvanced shows up. Am I confusing this more then it should be? What is the actual name of the file that gets me to vbulletins?
Trickle
Drago912
11-28-2005, 08:07 PM
What's the url to your forum....not your cmps?
most likely something like http://www.YOURSITE.COM/forums/index.php
This is what you would put in your navbar template.
example:
<td class="vbmenu_control"><a href="http://www.YOURSITE.COM/forum/index.php?$session[sessionurl]">Forum</a></td>
Trickle
11-28-2005, 09:10 PM
That's what I was trying to say, I don't have a folder called forums. I installed both vbulletin and vbadvanced right on the main page/of my directory. ie(....com/index.php gets me vbadvance) Is this a mistake that I made and you have to have the vbulletin installed in a forums folder and VBAdvanced on the main page/root? I know the forums is there and it still exists I just don't know where to point the forums link on the nav bar or what file actually gets me to vbulletin. I'm looking for the answer but at the same time trying to understand everything still. Sorry but I am very new to all of this still
Trickle
shadowdancer36
11-28-2005, 11:08 PM
That's what I was trying to say, I don't have a folder called forums. I installed both vbulletin and vbadvanced right on the main page/of my directory. ie(....com/index.php gets me vbadvance) Is this a mistake that I made and you have to have the vbulletin installed in a forums folder and VBAdvanced on the main page/root? I know the forums is there and it still exists I just don't know where to point the forums link on the nav bar or what file actually gets me to vbulletin. I'm looking for the answer but at the same time trying to understand everything still. Sorry but I am very new to all of this still
Trickle
Do you know where your index file is for Vbullet? Just pay attention to the URL at the top when u go into it. Just copy and paste that to the appropiate area in your navbar template.
To be more specific (cuz I hate when folks half tell me stuff) Go into your admincp. Click on Style Manager =>Search in Templates=> Search for: Breadcrumb=> Double click: navbar => look for <!-- / breadcrumb, login, pm info -->
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
Below that enter: <td class="vbmenu_control"><a href="http://www.yourwebsiteurl_leading_to_forum_index.php$session[sessionurl]">Forums</a></td>
That should place it in your nav bar. If you still have trouble, PM me. I only know a lil, but I try to help where I can.
I'm busy with the same problem.
The old index.php brings me to the forums and cmps_index.php opens the cmps. I made the changes as described above and the navbar shows me a "forum" link now (index.php), so far so good....
I now would like to see in the navbar while u r in the forum the link "forum" changed in to home and brings you to my cmps_index.php file. It's same what is used here in the navbar.
Any idea how to do that ?
Drago912
11-29-2005, 10:08 PM
To add a "home" button to your navbar do the same.........put the complete path to your cmps index.php
should look like this:
<td class="vbmenu_control"><a href="http://www.yourwebsiteurl_leading_to_CMPS_index.php$session[sessionurl]">Home</a></td>
Trickle
11-30-2005, 11:32 PM
See that's the thing, I renamed the cmps_index.php and over wrote/replaced my index.php file which was in www.mysite.com/index.php
I resolved it by starting all over again and reinstalling vbulletins in a newly created forums folder. www.mysite.com/forums/index.php will get you to my actual forums and www.mysite.com/index.php will get you to vbadvance. My problem was that I only had 1 index.php file and I should have had 2. Correct me if I am wrong?
Trickle
To add a "home" button to your navbar do the same.........put the complete path to your cmps index.php
should look like this:
<td class="vbmenu_control"><a href="http://www.yourwebsiteurl_leading_to_CMPS_index.php$session[sessionurl]">Home</a></td>
Then it always says home ?.. I want it like here.. "Home" when in the forums. And the "forums" button in advanced :o
I'm doing something wrong? or is it always as slow here with responses ?
Drago912
12-01-2005, 01:08 PM
Im not sure how to do that.........I have both.....one that says home, and one that says forums.
Brian
12-01-2005, 05:05 PM
Then it always says home ?.. I want it like here.. "Home" when in the forums. And the "forums" button in advanced :o
Something like this? ;)
http://www.vbadvanced.com/forum/showthread.php?t=41
Trickle
12-01-2005, 05:35 PM
I tried that Brian and the link would always get me to the vbadvance home page.
No one is really explaining this to me I guess. I want to know how it is done or how it works instead of just saying here's the fix.
Thanks
Trickle
Brian
12-01-2005, 06:15 PM
Can you post a link to your site so I may be able to get a better idea of what the problem is?
Trickle
12-01-2005, 08:51 PM
I fixed it by uninstalling everything then created a forums folder then reinstalled vbulletin inside the forums folder then vbadvanced cmps inside the forums folder and renamed the cmps_index.php to index.php on the root directory and leaving the vbulletin index.php alone in the forums folder.
Sound confusing??
My only qestion this whole time is when I didn't have a forums folder vbulletin was on the root directory and the only way I knew how to get to it was via index.php. But once I installed vbadvanced I renamed the cmps_index.php to index.php and over wrote the one vbulletin had in there. By doing this I did not know where to link the forums button to the forums cause I kept going back to the main vbadvanced page.
Boy I can't wait for my next project like adding a module!!!!!! Isn't there like a tutoril on all this stuff with BIG pictures and lots of video's?? (j/k)
Trickle
shadowdancer36
12-02-2005, 12:40 AM
Well you know u don't HAVE to really change it to index.php From now on, when u change files, back them up. I had to learn the hard way. Just rename the file to _backup then replace it.
I think I understand what happened now. You had everything on you root public folder.
Something like this? ;)
http://www.vbadvanced.com/forum/showthread.php?t=41
Yeah exactly what I was looking for, Thank you..
Might be usefull when the original message there is edited and gives the link for 3,5 users: http://www.vbadvanced.com/forum/showthread.php?t=9689
That would have saved me a lot of time :D
Trickle
12-02-2005, 06:55 PM
Well you know u don't HAVE to really change it to index.php From now on, when u change files, back them up. I had to learn the hard way. Just rename the file to _backup then replace it.
I think I understand what happened now. You had everything on you root public folder.
Yuppers!!! You got it. I had everything on my root public folder. Created a forums folder and reinstalled everything in there. Just so I know (cause its killing me that I don't know and I am sure there is a solution) how would you be able to fix it when everthing is on the root folder?
Trickle
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.