The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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? |
#2
|
||||
|
||||
![]()
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'"> <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> 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> |
#3
|
||||
|
||||
![]()
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.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|