The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have added this popup code to my thanks button template.
Code:
<if condition="$show['post_thanks_postbtn']"> <a href="showthread.php?$session[sessionurl]thanks_mode=add&postid={$postid}" onclick="window.open('http://www.somesite.com/')";return false;> <img src="$stylevar[imgdir_button]/thanks.gif" alt="$vbphrase[say_thank_you]" title="$vbphrase[say_thank_you]" border="0" /></a> </if> Now i wan't to change that like this: If a member clicks the thanks button and its shows the popup window then the next popup window must opens after 10 clicks or after 15 minutes. (10 clicks or after 15 minutes is example, i want to set manual higher or lower) Any idea how do i that? |
#2
|
||||
|
||||
![]()
That will require a lot more complex Javascript. What you want to do is probably set a cookie that lasts for so long, if this cookie expires/does not exist, then open the window.
|
#3
|
|||
|
|||
![]()
Thanks.But how do i this cookie?I have no idea.
![]() |
#4
|
|||
|
|||
![]()
This may be a bigger project then you initially figured dxflw.
You may want to submit this to the "unpaid mod" section or possibly pay a freelancer to do this. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|