vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Home Directory Help (https://vborg.vbsupport.ru/showthread.php?t=153490)

launchpad 07-26-2007 07:38 PM

Home Directory Help
 
I have been able to re-direct my homepage to a URL, but have one skin that seems to send me to the current page only appending the URL. So the forum page is www.test.com/forum. When I add the URL in the home location it changes the URL to www.test.com/forum/www.yahoo.com. How do I get it to stop appending the URL and just go to that site. Below is the code. I know it is a lot, but need help PLEASE!!!

<table style="background: url($stylevar[imgdir_misc]/header_bg.gif);" border="0" width="$stylevar[outertablewidth]" align="center" cellpadding="0" cellspacing="0">
<!-- header level 2 area vBSkinworks.com -->
<tr>
<td width="144"><img src="$stylevar[imgdir_misc]/logo.gif" alt="" width="357" height="102" /></td>
<td><img src="$stylevar[imgdir_misc]/header_bg.gif" alt="" width="97" height="102" /></td>
<td align="right"><img src="$stylevar[imgdir_misc]/header_right.gif" alt="" width="325" height="102" /></td>
</tr>
<!-- / header level 2 area end -->
</table>

<!-- header navigation area vBSkinworks.com -->
<table style="background: url($stylevar[imgdir_misc]/header_level2_bg.gif);" border="0" width="$stylevar[outertablewidth]" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="103"><a href="index.php"><img src="$stylevar[imgdir_misc]/home.gif" alt="" width="103" height="37" border="0" /></a></td>
<td width="95" id="usercptools"><a href="www.h3llzarmyclan.com"><img src="$stylevar[imgdir_misc]/quicklinks.gif" alt="" width="95" height="37" border="0" /></a><script type="text/javascript">vbmenu_register("usercptools",true);</script></td>
<td width="97"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/usercp.gif" alt="" width="97" height="37" border="0" /></a></td>
<td width="94"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/members.gif" alt="" width="94" height="37" border="0" /></a></td>
<td width="97"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/register.gif" alt="" width="97" height="37" border="0" /></a></td>
<td width="96"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calen.gif" alt="" width="96" height="37" border="0" /></a></td>
<td width="94" id="navbar_search"><a href="#"><img src="$stylevar[imgdir_misc]/search.gif" alt="" width="94" height="37" border="0" /></a><script type="text/javascript">vbmenu_register("navbar_search",true); </script></td>
<td><a href="faq.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/faq.gif" alt="" width="103" height="37" border="0" /></a></td>
</tr>
<!-- / header navigation area end -->
</table>


<table align="center" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/btl.jpg" alt="" width="27" height="33" /></td>
<td style="background: url($stylevar[imgdir_misc]/topbg.gif);">&nbsp;</td>
<td><img src="$stylevar[imgdir_misc]/btr.jpg" alt="" width="27" height="33" /></td>
</tr>
<tr>
<td width="27" style="background: url($stylevar[imgdir_misc]/sideleft.gif);"></td>
<td>


<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=n o,menubar=no,toolbar=no,scrollbars=yes,resizable=y es,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>


<tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
</if>

<!-- content table -->
$spacer_open
$_phpinclude_output

sinisterpain 07-26-2007 08:13 PM

If you want the home button to go to another site page you need to change the link in this line.
Code:

<td width="103"><a href="index.php"><img src="$stylevar[imgdir_misc]/home.gif" alt="" width="103" height="37" border="0" /></a></td>

Eikinskjaldi 07-26-2007 08:13 PM

Is there a reason you are not redirecting either through .htaccess or httpd.conf?

sinisterpain 07-26-2007 08:16 PM

Quote:

Originally Posted by Eikinskjaldi (Post 1302506)
Is there a reason you are not redirecting either through .htaccess or httpd.conf?

He asked about this in another thread and wanted his HOME button to go to another site. I think that adds a variable he may not be comfortable dealing with.

Eikinskjaldi 07-27-2007 05:57 AM

Quote:

Originally Posted by sinisterpain (Post 1302511)
He asked about this in another thread and wanted his HOME button to go to another site. I think that adds a variable he may not be comfortable dealing with.

Thats confusing. If you mean the home button on the browser then just set the home page on the browser. If you mean the home link on the web page then .htaccess is the correct place to do the redirect.

sinisterpain 07-27-2007 09:45 PM

Quote:

Originally Posted by Eikinskjaldi (Post 1302851)
Thats confusing. If you mean the home button on the browser then just set the home page on the browser. If you mean the home link on the web page then .htaccess is the correct place to do the redirect.

Im not disagreeing with you simply stating that he may not understand how its done

launchpad 07-27-2007 11:23 PM

Yea he is right I do not know what to do with the .htaccess but thanks for the suggestion.

sinisterpain I did change that part of the code mentioned above. When I put the URL in there (say www.yahoo.com) it appends it to the end of the current URL (which is www.h3llzarmyclan.com/forum) it ends up as www.h3llzarmyclan.com/forum/www.yahoo.com . I would think somewhere in the code it is always using something to point to the current URL no matter what. I thought it was <a href="#"> or <a href="index.php">, but no matter what I do it always uses the current URL. Any thoughts?? I do appreciate all your help with me. It really is helping me out allot...

tipoboy 07-27-2007 11:27 PM

use the complete web address for instance if you want your link to yahoo then

<a href="http://www.yahoo.co.uk">

or is that what you have been doing and i'm being dumb lol

launchpad 07-27-2007 11:30 PM

Okay?!?! I some how got the page to return to the home of my choice. I did however get rid of the button that was on top of my skin and added the "Home" hyperlink on the bottom of the page. Not sure how, but seriously when I tried to change the code the first time it appended it to the current URL.

UHM...I guess it’s fixed now!!

I REALLY want to thank all of you for putting up with me and helping me out. I really appreciate it and could never have fixed it without you guy.....THANKS!!!!!


All times are GMT. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01127 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete