Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense looks like post on search result page Details »»
Adsense looks like post on search result page
Version: 1.00, by Sir_Yaro Sir_Yaro is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Version: 3.5.7 Rating:
Released: 12-24-2006 Last Update: Never Installs: 4
 
No support by the author.

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:
<td class="alt1"><a href="forumdisplay.php?f=12">Oprogramowanie</a></td>
to something different and id number of user "User" in this line:
Code:
<a href="member.php?u=5957">User</a>
IF ANYONE KNOWS HOW TO DISPLAY RANDOM USER IN A TEMPLATE PLEASE LET ME KNOW


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>
and add ABOVE or/and BELOW:

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">&nbsp;</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>
it fit perfectly an it has proper colors...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-25-2006, 07:54 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice!
Going to try it out now
Reply With Quote
  #3  
Old 12-26-2006, 01:39 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love it installed .
Reply With Quote
  #4  
Old 12-27-2006, 02:59 PM
emdee emdee is offline
 
Join Date: Jul 2006
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 12-27-2006, 03:49 PM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if u afraid of that just change
google_ad_height = 46;
to
google_ad_height = 60;
Reply With Quote
  #6  
Old 12-28-2006, 02:03 AM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emdee View Post
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


I think likely so --- be careful before you use this - I would check with Google on this one.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03925 seconds
  • Memory Usage 2,253KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete