View Full Version : Board Optimization - Advertisement in automatic popup once per session
UltimateOreo!
04-14-2007, 10:00 PM
This script generates an automatic popup of your selected advertisement whenever a user goes to your forumhome once every browser session. I reccomend telling your users about it so they don't think its just some third party ad, and they actually click it.
Support will be in this thread ONLY for users who clicked install! No screenshots as I don't want to create an adsense account for this, but you get the idea.
bhanuprasad1981
04-15-2007, 05:55 AM
sorry but nothing happens here all the code you asked to paste in forum home template just shows up in forum main page,please guide me correctly :(
UltimateOreo!
04-15-2007, 06:02 AM
paste your forumhome template here, with the included edit please.
DementedMindz
04-15-2007, 06:26 AM
dont this violate there TOS? yeah it really would if you add
This is not a third party ad, it is our adsense which generates our revenue! Please click the ads! That is a reason to get banned let alone a popup of google ads.
bhanuprasad1981
04-15-2007, 07:37 AM
forumhome template:-
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<if condition="$show['guest']">
<!-- guest welcome message -->
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
<!-- / guest welcome message -->
</if>
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->
<br />
<br />
<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&day=$today&sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->
<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- / icons and login code -->
$footer
//Win Type: Pop Up | Session Only
var popurls=new Array()
popurls[0]="/adsense.html"
function openpopup(popurl){
var winpops=window.open(popurl,"","width=,height=,scrollbars")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('jkpopup')==''){
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
document.cookie="jkpopup=yes"
}
}
loadornot()
</script>
</body>
</html>
UltimateOreo!
04-15-2007, 07:46 PM
There might be another hack or something interfering with it, try putting it at the top RIGHT after <body>
DefenceTalk
04-16-2007, 09:26 PM
Adsense in pop ups is a big no no according to Google TOS. I wouldn't recommend it... don't get banned for few extra cents.
briansol
04-16-2007, 11:23 PM
Adsense in pop ups is a big no no according to Google TOS. I wouldn't recommend it... don't get banned for few extra cents.
yup, this cannot be done legally with adsense.
UltimateOreo!
04-17-2007, 02:06 AM
Ok, great, if you dont want to use it, don't spam this thread over it. We heard it once, we get it. I'm sure that google has bigger problems that seeing that every single adsense user doesn't put their code in a popup script.
ninjashoes
04-17-2007, 03:45 AM
you cant put adsense in popups and you can't ask for clicks
you get banned instantly
kfiasche81
04-17-2007, 05:39 AM
add <script> after //Win Type: Pop Up | Session Only
TheRed
04-22-2007, 02:41 AM
you cant put adsense in popups and you can't ask for clicks
you get banned instantly
As he said, beware.
LBmtb
04-22-2007, 04:51 AM
You should probably change this hack/mod to read something along the lines of advertisement rather than adsense. Maybe stick an affiliate ad or something else in it. Like others have said, it's clearly against Google TOS:
http://www.google.com/adsense/policies
No Google ad or Google search box may be displayed in a pop-up, pop-under, or in an email.
UltimateOreo!
04-23-2007, 07:08 PM
I swear to god you people need to read posts.....
Ok, great, if you dont want to use it, don't spam this thread over it. We heard it once, we get it. I'm sure that google has bigger problems that seeing that every single adsense user doesn't put their code in a popup script.
Michael2
04-25-2007, 02:50 AM
I wouldn't use this, it violates Google's TOS and will get your site banned.
Marco van Herwaarden
04-25-2007, 08:23 AM
As mentioned by many members now, this would be a viiolation of Google TOS.
If you still want to use it after this warning, then it is up to you.
Please do not repeat the same over and over again.
UltimateOreo!
04-26-2007, 07:07 PM
Thank you, its a use at your own risk mod. As said above, google has more and bigger problems to make sure that their ads don't pop up.
shortbus1662
05-02-2007, 11:54 PM
man, you're just dense aren't you.
If you are so determined to get banned, then you will surely succeed.
Personally, I don't care for people who intentionally violate Google's TOS because in the long run, it costs quality publishers money in the long run...
icemanic
05-03-2007, 01:43 AM
this would be great and i would use it if i can insert whatever code in there, can i put my own banners and phpads(openads) code?
djbaxter
05-03-2007, 02:19 AM
This script generates an automatic popup of your adsense whenever a user goes to your forumhome once every browser session. I reccomend telling your users about it so they don't think its just some third party ad, and they actually click it.
Double violation of the AdSense ToS: popups and encouraging visitors to click.
Anyone want the Google spam report link? :rolleyes:
As mentioned by many members now, this would be a viiolation of Google TOS.
If you still want to use it after this warning, then it is up to you.
Please do not repeat the same over and over again.
It is clear that this is a violation of Adsense TOS, and will likely get you banned.
As Marco so nicely requested - please stop repeating this warning.
djbaxter
05-03-2007, 11:41 AM
It is clear that this is a violation of Adsense TOS, and will likely get you banned.
As Marco so nicely requested - please stop repeating this warning.
Then why hasn't vbulletin.org removed this mod?
If it were a security violation, would it be gone?
If it promoted the distribution of pirated software, would it be gone?
What's the difference?
UltimateOreo!
05-03-2007, 07:50 PM
Ok, look. Like I said before, STOP SPAMMING THE THREAD, If you don't like it, don't use it.
The difference that it is not against vbulletin's TOS. It has no security issues, and you don't have to use it. Get over it and stop spamming.
djbaxter
05-04-2007, 01:10 AM
Just as well for you that you're not listing your website(s) here. AdSense does have a TOS violation report service, you know. :rolleyes:
brandnewx
05-04-2007, 08:03 AM
Your adsense account will be banned on sight if it's placed in popup. This mod was created with intent to send all stupid publishers to a new place called "Banned Usergroup."
Ok, don't repeat this warning again. ;)
bplinson
05-04-2007, 09:13 AM
This mod will get you banned from Google Adsense.
The vBulletin.org TOS does not say that I can not post this warning in this thread even though UltimateOreo! considers it spamming his thread. So I guess it is okay for me to post this. ;) :D
Personally I refuse to visit websites with any type of pop-up. Not only will this mod get you banned from Adsense IMHO it will drive visitors away form your forum.
perfphysio
05-04-2007, 01:38 PM
1. Can you tell us how to change the back ground color?
2. Can you tell us how to centre the rateing title question above the voting options as well
3. And also in firefox there seems a bit to much padding between the top of the yellow box and the heading. See attached screenshot
thanks for this as I was someone who requested it
LBmtb
05-04-2007, 03:25 PM
In his defense this mod could be used for other affiliate banners or something or other programs in which this doesn't violate TOS? :)
djbaxter
05-04-2007, 03:32 PM
Okay. And in defense of the many AdWords customers, he is actively promoting the add-on as a way to blatantly violate the AdSense ToS, designed to artifically inflate AdSense click rates and thereby defraud AdWords customers out of their money.
shortbus1662
05-04-2007, 07:03 PM
Please understand that you may report what you think is a Google Adsense violation, but ultimately, Google are final arbiters in all matters pertaining to Google Adsense. Just because something appears to be a violation, does not mean that it is a violation automatically. Google still has to verify to see if indeed what someone does or reports is a violation.
It is CRYSTAL CLEAR that his modification, as he posted it, IS A VIOLATION OF GOOGLE'S TOS.
There is really no debating on whether implementing his modification for use with adsense is or isn't a violation. It is.
Now, if he changes the title and lists it as a mod that serves an advertisement once per session, then this would all be moot.
It's my opinion that vb.org should have removed this thread. I don't think this site would be seen in good standing with google if it is allowing the promotion of products violating their terms of service. THAT is left up to google to determine though...and I'm quite sure one thread like this wouldn't constitute any type of action from the monster search engine but it's not the best theme to have :).
UltimateOreo!
05-04-2007, 08:11 PM
OK FINE WE GET IT. IT VIOLATED GOOGLES TOS, I DON'T CARE. I HEARD IT ALMOST 5 TIMES NOW, WE GET IT. DONT POST IF YOU DON'T HAVE ANYTHING ELSE TO SAY OTHER THAN: "Oh lolz dis hak iz agains googls tos!!111!!" YOU DO NOT HAVE TO USE THIS HACK. I AM NOT POINTING A GUN TO YOUR HEAD TELLING YOU TO USE THIS. PEOPLE CAN USE IT IF THEY WANT. IT IS THEIR PROBLEM, NOT YOURS. SO UNLESS YOU WORK WITH GOOGLE, STOP POSTING.
shortbus1662
05-04-2007, 08:48 PM
OK FINE WE GET IT. IT VIOLATED GOOGLES TOS, I DON'T CARE. I HEARD IT ALMOST 5 TIMES NOW, WE GET IT. DONT POST IF YOU DON'T HAVE ANYTHING ELSE TO SAY OTHER THAN: "Oh lolz dis hak iz agains googls tos!!111!!" YOU DO NOT HAVE TO USE THIS HACK. I AM NOT POINTING A GUN TO YOUR HEAD TELLING YOU TO USE THIS. PEOPLE CAN USE IT IF THEY WANT. IT IS THEIR PROBLEM, NOT YOURS. SO UNLESS YOU WORK WITH GOOGLE, STOP POSTING.
So what are you saying?
I'm not sure how you feel. If you could just tell us again, more specifically...
BTW, your mod violates Google's TOS. Just so you know.:rolleyes:
shortbus1662
05-04-2007, 10:23 PM
I was just giving him a hard time because he seems to be getting so fired up about it.
UltimateOreo!
05-04-2007, 10:40 PM
Ok, your the person on the forums who deserves to get banned. Hope to see that little tag under your name in under an hour.
shortbus1662
05-04-2007, 11:31 PM
why?
Because I find it funny when someone who BLATANTLY creates something that violates Google's TOS with no regard to Google or it's PAYING ADVERTISERS who are PAYING their hard earned money for illegitimate clicks gets called out for his inappropriate behavior and then HAS THE AUDACITY to get UPSET at others?
Are you kidding me?
I'm absolutely enjoying watching you get pissed off reading the responses. I guess it's similar to those people who enjoy leading on phishers making them waste their time and resources on them rather than someone who's bank account they might actually empty.
As someone who participates in Google Adwords AND Adsense, it irritates me to no end watching people try and ABUSE the program.
You're only 16 I see. One of these days you'll either grow up, or gain a conscience, one of the two or both hopefully...
You seem to be a pretty good programmer, but rather than getting mad when people let you know you're doing something wrong, take it in stride and handle it with some composure and understand where they are coming from, rather than lashing out and yelling at them.
All you had to do was change your mod to focus on ANY general advertisement and the whole damn thread would have gone away.
I'm sorry if I come off rude, but the thought of me paying for invalid clicks and receiving a lower ppc on adsense because of the sheer number of people trying to make a quick buck gets me fired up.
djbaxter
05-04-2007, 11:48 PM
You seem to be a pretty good programmer, but rather than getting mad when people let you know you're doing something wrong, take it in stride and handle it with some composure and understand where they are coming from, rather than lashing out and yelling at them.
All you had to do was change your mod to focus on ANY general advertisement and the whole damn thread would have gone away.
I'm sorry if I come off rude, but the thought of me paying for invalid clicks and receiving a lower ppc on adsense because of the sheer number of people trying to make a quick buck gets me fired up.
Exactly. Very well said. That's exactly the point.
UltimateOreo!
05-05-2007, 12:03 AM
Ok, I shouldnt have had that little rant up there, but the point is I made this for people to use. They could easily change it for any kind of advertisement that they wanted. I just don't like people saying the same thing over and over again while I try to make decent mods for the community, and then when I do try and help people out, I just get basically flamed because of it.
shortbus1662
05-05-2007, 12:54 AM
I understand where you're coming from.
Adsense is a pretty touchy subject with a lot of people. It has allowed people to make a good living off websites that before were earning nothing, and has allowed others to make something out of nothing.
I make enough off adsense alone that it allows me to work from home and provides my family and me a great deal of freedom.
I probably overreacted and tend to get on my soapbox, but the initial posts were just making you aware and then what followed was due to your reaction. Being as young as you are, and good with programming, I'm sure you're going to want to take full advantage of Adsense at some point or another. It's just not an option you want to cross our or a bridge you want to burn.
Good luck with your continued modification development!
UltimateOreo!
05-05-2007, 01:09 AM
Thanks, and I will take your suggestion to making it a general advertisement popup to stop all the posts, I can thank you for that advice!
v12kid
05-05-2007, 07:04 AM
I am catching this storm at the end but the idea of making a once a session popup with banners, ads etc is a great idea! I would love to stick some cpa banners in there!
Guest210212002
05-05-2007, 01:05 PM
I'm sure that google has bigger problems that seeing that every single adsense user doesn't put their code in a popup script.
I disagree completely. Google is very adamate about stuff like this.
Releasing a mod that can lure unsuspecting/new webmasters into getting kicked from the hands down most popular revenue service sets a very bad precedent. This mod should be deleted.
I'm sorry if I come off rude, but the thought of me paying for invalid clicks and receiving a lower ppc on adsense because of the sheer number of people trying to make a quick buck gets me fired up.
Likewise.
kartik786
05-05-2007, 07:41 PM
Me thinks its an intelligent hack and you can use it for programs other than google's stupidsense :p
UltimateOreo!
05-05-2007, 08:21 PM
Ok, is everyone happy now?
donal
06-10-2007, 11:55 PM
You people are crying because it has the word "Adsense" in it. Now spare that word and read the post again. Do you think that the adsense is the only agency for ads ? This script can also be used for displaying your own Advertisement and announcements. You can nicely display your events etc by using this script.
Thank you UltimateOreo for the nice script.
Can we display the pop-up with specific size ?I want my pop-up window to be 500x300 pixels.Thanks in advance.
UltimateOreo!
06-11-2007, 01:24 AM
Not positive on how to do it with a popup, but i'm sure google does! I'll be sure to come out with an alternate version shortly.
Edit, nevermind, it's just like regular pages. Here we go.
Actually, just search for this in the template change you made:
var winpops=window.open(popurl,"","width=,height=,scrollbars")
Change to:
var winpops=window.open(popurl,"","width=500,height=300,scrollbars")
And it should be fine.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.