The Arcive of vBulletin Modifications Site. |
|
Adsense looks like post on search result page Details »»
|
||||||||||||||||||||||||||||
|
Adsense looks like post on search result page
Developer Last Online: Sep 2015
This hack adds adsense advert which looks almost exactly like any other search results. It display random post date, random number of the replies and thread displays.
U may need to change fake forum name (from "Oprogramowanie") and it's id number in this line: Quote:
Code:
<a href="member.php?u=5957">User</a> in search_results template find: Code:
$searchbits
<if condition="$show['ajax_js']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadslist.js"></script>
<script type="text/javascript">
<!--
vB_AJAX_Threadlist_Init('threadslist');
//-->
</script>
</if>
</if>
Code:
<tr>
<td height="60" class="alt1">
<img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="" border="" /> </td>
<td height="60" align="center" class="alt2"> </td>
<td height="60" align="left" class="alt1">
<div>
*** PUT YOUR ADSENSE CODE HERE ****
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
<td height="60" align="center" class="alt2 smallfont">
<div class="smallfont" style="text-align:right; white-space:nowrap">
<SCRIPT Language="JavaScript">
zmiana = Math.floor((Math.random() * 29) + 1);
document.write(zmiana);
</SCRIPT>-0<SCRIPT Language="JavaScript">
zmiana = Math.floor((Math.random() * 8) + 1);
document.write(zmiana);
</SCRIPT>-2006 <span class="time">
0<SCRIPT Language="JavaScript">
zmiana = Math.floor((Math.random() * 8) + 1);
document.write(zmiana);
</SCRIPT>:<SCRIPT Language="JavaScript">
zmiana = Math.floor((Math.random() * 49) + 10);
document.write(zmiana);
</SCRIPT>
</span><BR>
by
<a href="member.php?u=5957">User</a>
<img class="inlineimg" src="images/buttons/lastpost.gif" alt="Go to last post" border="0" />
</td>
<td class="alt1" align="center"><a href="#" onclick="who(8176); return false;">
<SCRIPT Language="JavaScript">
zmiana2 = Math.floor((Math.random() * 75)+2);
document.write(zmiana2);
</SCRIPT>
</a></td>
<td height="60" align="center" class="alt2">
<SCRIPT Language="JavaScript">
zmiana = Math.floor((Math.random() * 175)+zmiana2);
document.write(zmiana);
</SCRIPT>
</td>
<td class="alt1"><a href="forumdisplay.php?f=12">Oprogramowanie</a></td>
</tr>
As a ADSENSE CODE try to use this: Code:
<script type="text/javascript"><!-- google_ad_client = "pub-YOUR-NUMBER"; google_ad_width = 300; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text"; google_ad_channel = "YOUR CHANNEL"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "22229C"; google_color_text = "000000"; google_color_url = "008000"; //--></script> Show Your Support
|
||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Very nice!
Going to try it out now |
|
#3
|
||||
|
||||
|
i love it installed .
|
|
#4
|
|||
|
|||
|
i dont mean to be critical, but isnt this against AdSense TOS?
especially that there does not seem to be a place saying "ads by google" or "advertisements"? perhaps statement like those could be added somewhere to avoid problems. ( unless it is there on the image and somehow i am not seeing it or not visible) thanks emdee |
|
#5
|
||||
|
||||
|
if u afraid of that just change
google_ad_height = 46; to google_ad_height = 60; |
|
#6
|
||||
|
||||
|
Quote:
I think likely so --- be careful before you use this - I would check with Google on this one. |
![]() |
|
|