The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
random chance of apopup for guests
Say a guest comes to forum
theres say a 1/5 chance of a popup this be a good hack Ppl could use this to gain allot of money |
#2
|
||||
|
||||
Quote:
when pop up blockers are so prevelant now days |
#3
|
||||
|
||||
still, there is like a 50% chance of them not having.. still , a code modification to earn u money
|
#4
|
|||
|
|||
Quote:
you probably know me as well mental :] |
#5
|
|||
|
|||
Quote:
1.open the template FORUMHOME in the template manager. 2.After $headinclude (just above the </head>) add this code: HTML Code:
<script type="text/javascript"> function getNum() { return Math.floor((Math.random()*5)+1); } function popup() { var num=getNum(); if (num%5=0) { window.open(http://whatever.com,'Title','height=200,width=150'); } } </script> change it to this instead of the all body tag. HTML Code:
<if condition="$bbuserinfo['userid'] == 0"> <body onLoad="popup();"> <else /> <body> </if> |
#6
|
|||
|
|||
it didnt work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|