vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   {vb:raw relpath} in footer creates error for custom pages placed outside of root (https://vborg.vbsupport.ru/showthread.php?t=297996)

bzcomputers 05-10-2013 03:41 AM

{vb:raw relpath} in footer creates error for custom pages placed outside of root
 
I'm getting a url error for "Top" link in the footer on custom pages which reside outside of the root (forum) directory.

What would I need to change:

Code:

href="{vb:raw relpath}#top"

to in order to get it to produce a full url path instead of the current relative path.


Edit:
I just added http://www.XXX.com/ in front of {vb:raw relpath} and that seems to make it work everywhere now.

ForceHSS 05-10-2013 05:16 AM

a link to your forums to check to make sure all is ok. I know you have fixed it but best to make sure. Also what did you have there before

bzcomputers 05-10-2013 12:01 PM

The issue was with the "Top" link in the standard vB footer to take you back to the top of the page. It uses a relative url, thus breaking the link for pages that reside outside of the forum. In my case this was all of my custom pages.

I didn't notice the issue until going through Google Webmaster tools and saw a crawl errors associated with everyone of my custom pages (hundreds).

Had to replace this line in footer:

Code:

<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
with this:

Code:

<li><a href="http://www.cruisin.me/{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
Site: www.cruisin.me


All times are GMT. The time now is 11:01 PM.

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.01038 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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