Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2007, 07:38 PM
launchpad launchpad is offline
 
Join Date: Jul 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-26-2007, 08:13 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a reason you are not redirecting either through .htaccess or httpd.conf?
Reply With Quote
  #3  
Old 07-26-2007, 08:13 PM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #4  
Old 07-26-2007, 08:16 PM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
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.
Reply With Quote
  #5  
Old 07-27-2007, 05:57 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sinisterpain View Post
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.
Reply With Quote
  #6  
Old 07-27-2007, 09:45 PM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eikinskjaldi View Post
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
Reply With Quote
  #7  
Old 07-27-2007, 11:23 PM
launchpad launchpad is offline
 
Join Date: Jul 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 07-27-2007, 11:27 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 07-27-2007, 11:30 PM
launchpad launchpad is offline
 
Join Date: Jul 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04786 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete