The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adsense shown every 5 page views?
Hi,
Sorry if this is in the wrong forum. Does anyone know if there's a script that will allow adsense (or any chunk of code) to be added to the header, but only shown once every 5 or so page views? Thanks |
#2
|
|||
|
|||
Hmmm, I don't know if you can specify which page view to show a certain code/advertising. Though you can make it random. Shown/Not Shown. I could be wrong though. Quering the database to record the page view could be an alternative, though I wouldn't recommend it.
|
#3
|
||||
|
||||
Thanks. I had read where a guy said his CTR shot up when he only had it display once every 10 page views, but didn't show how to set something like that up.
|
#4
|
||||
|
||||
Random would be the best option, you could just code a simple javascript that generates a random number from 1 to 5, and if the number is 5 then the script would show the ad. You'd have a 1/5 chance of seeing the ad that way.
|
#5
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=107666" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=107666</a>
|
#6
|
||||
|
||||
Thanks, I'll give it a try.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|