Log in

View Full Version : How do you get the Current URL Page Location, in footer template?


nintendo
03-12-2011, 09:24 PM
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?

BirdOPrey5
03-13-2011, 08:24 PM
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:



<if condition="THIS_SCRIPT=='showthread'">
<iframe src="http://www.domain.com/cgi-bin/logs.cgi?url=$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]" width="1%" height="1"></iframe>
</if>

<if condition="THIS_SCRIPT=='forumdisplay'">
<iframe src="http://www.domain.com/cgi-bin/logs.cgi?url=$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]" width="1%" height="1"></iframe>
</if>

<if condition="THIS_SCRIPT=='index'">
<iframe src="http://www.domain.com/cgi-bin/logs.cgi?url=$vboptions[bburl]/index.php" width="1%" height="1"></iframe>
</if>




and so on for each page option... such a "register", "calendar", "usercp", and so on...

It would be nice if there was a better way.

EDIT- I did some searching and this looks pretty close to what you need:



http://www.yourdomain.com/$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&amp;</if>


edited from this post: https://vborg.vbsupport.ru/showthread.php?t=241277

nintendo
03-16-2011, 05:54 AM
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.