The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
{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. |
#2
|
|||
|
|||
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
|
#3
|
||||
|
||||
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> Code:
<li><a href="http://www.cruisin.me/{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li> |
Благодарность от: | ||
tbworld |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|