Back to vBulletin 3.5 Template Modifications

Adsense in last thread of search results
Mod Version: 1.00, by AWI

This modification is in the archives.
vB Version: 3.5.2 Rating: (0 vote - 0 average) Installs: 23
Released: 18 Dec 2005 Last Update: Never Downloads: 8
Not Supported  

I saw some people asking for this so here it is...quick and painless.

In template search_results find:
Code:
<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>

Add below
Code:
<if condition="is_member_of($bbuserinfo, 1,2)"> 
<tr>
    <td height="60" class="alt1">
        <img src="$stylevar[imgdir_statusicon]/image.gif" alt="" border="" />    </td>
        <td height="60" align="center" class="alt2">&nbsp;</td>
    <td height="60" align="center" class="alt1">
        <div>
       **YOUR ADSENSE CODE HERE**
        </div>        
    </td>
    <td height="60" align="center" class="alt2 smallfont">Sponsored Link</td>
        <td height="60" align="center" class="alt1"></td>
        <td height="60" align="center" class="alt2"></td>
         <if condition="$show['inlinemod']"><td height="60" align="center" class="alt1"></td>
         </if>
</tr>
</if>

Change this line to set usergroup permission
Code:
<if condition="is_member_of($bbuserinfo, 1,2)">

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024