![]() |
friendlyurl in headerinclude
I'm trying to get the friendly url (current url) of a page, it looks like it should be in:
{vb:raw vboptions.friendlyurl} But whenever I use this in headerinclude template it resolves to '1' and not a full URL like I'd expect... anyone know how I'd get the URL of the current page? --------------- Added [DATE]1282486854[/DATE] at [TIME]1282486854[/TIME] --------------- I got this: Code:
<http://www.example.com/forums/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}} |
{vb:link thread... is going to give you a thread link... a showthread page.
vboptions.friendlyurl will return the option you picked in vboptions > friendly urls > url type (There is an article on the friendly urls in the vb4 articles forum) |
Thanks Lynne, I'll take a look at the article but...
I have Friendly URL's set to "basic friendly" in vBulletin options but wherever I use {vb:raw vboptions.friendlyurl} in the headerinclude template it always resolves to "1" - any ideas why that is? Edit- when I change from "basic friendly" to "advanced friendly" it changes from '1' to '2'... |
The value for Basic Friendly is 1. For Standard URLs, it's 0. For Advanced Friendly URLs, it's 2, and for Mod Rewrite Friendly URLs, it's (Just look in the source code to see the values.)
|
I see... I thought vboptions.friendlyurl would give me the actual URL as opposed to what type of url was being used... BTW I looked for the article but didn't see any with "url" or "friendly" in the titles at all- do you know if it was called something else by chance? I guess I could search posts if need be.
|
vboptions are Options. They are your settings that you set in vboptions.
vBulletin 4 Template Syntax: Links |
many thanks. :)
|
All times are GMT. The time now is 01:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|