PDA

View Full Version : index.PHP - Home Page Area??


launchpad
07-24-2007, 11:25 PM
I would like to know how to re-direct the home button on my forum to another URL. I understand it is "index.php", but can't seem to find an area in the code where it tells the system to direct it to a location. I obviously don't understand PHP, so I may be looking in the wrong area as well. I don't think this is a hard thing to do, so any help with this would be VERY appreciative. Have been working on this for 2 weeks now...

sinisterpain
07-24-2007, 11:37 PM
You need to provide a little more info like a site url so your skin can be viewed to see if you have a custom navbar. Also are you using vbadvanced?

launchpad
07-25-2007, 01:08 AM
The URL is www.h3llzarmyclan.com/forum . No I am not using vbadvanced for my homepage.
Although it is a custom skin I noticed the home button is always index.php. I hope this will help.....

markbolyard
07-25-2007, 01:28 AM
Just change $vboptions[homeurl] in your templates to the url of your choice. That should do it.

sinisterpain
07-25-2007, 02:16 AM
Go to Admincp->styles/templates->header template and edit as mark suggested. I see you already edited the footer template.

launchpad
07-25-2007, 12:44 PM
I appreciate all the help, but when I look in the “admincp” there is no folder “styles” or a file named “header template”. There is a template.php, but that is the closest I could find. I searched the code for [homeurl], but nothing in the code. I assume I am looking in the wrong place or missing something. Sorry to be such a headache….

sinisterpain
07-25-2007, 08:32 PM
There are no folders, you log into your vbulletin admincp on the right side is a list of controls for your forum. ie.. users, usergroups, vbulletin options, styles/templates etc..

launchpad
07-26-2007, 12:05 AM
I was able to direct to the header area (Thanks to you guys). The script is below, I assume that the [forumhome] is where I put a URL in to direct it to the webpage of my choise? Also do I change the .php after the [forumhome] or do I leave that? I just want to make sure I am doing this right..

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Thanks guys I got it to work on two of my skins, but not one. I added a new post since I added the code. and it is long. If you could help with this too it would definatly keep me from going nuts. Again thanks for all your help...............