![]() |
How do you get the Current URL Page Location, in footer template?
I want to put this in the footer template for logs.
<iframe src="http://www.domain.com/cgi-bin/logs.cgi?url=**Page URL**" width="1%" height="1"></iframe> What do you put in the ***Page URL*** part so the iframe src has the current page URL in the iframe? |
I don't know of any way to get the exact URL of the page you are on in the footer...
I know when I need to get a URL I have to use a few conditionals depending on what page I'm on, and by a few, I mean a lot if every page really needs it... For example: Code:
<if condition="THIS_SCRIPT=='showthread'"> It would be nice if there was a better way. EDIT- I did some searching and this looks pretty close to what you need: Code:
http://www.yourdomain.com/$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&</if> |
Thanks. The if conditions worked just fine. I'm not that worried about the other smaller stuff getting tracked. Manly the index, threads, and forums.
|
All times are GMT. The time now is 02:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|