Adsense looks like post on search result page
This modification is in the archives.
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:
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> Download No files for download. Screenshots
|
Similar Mods
Integration with vBulletin Google/Adsense Site Search Integrated into Advanced Search Page | vBulletin 3.6 Template Modifications |