Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Hoochie Coochie Man on September 11, 2008, 03:51:26 AM

Title: Ads on Search Page
Post by: Hoochie Coochie Man on September 11, 2008, 03:51:26 AM
http://img159.imageshack.us/img159/3811/11rm0.jpg
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg159.imageshack.us%2Fimg159%2F3811%2F11rm0.jpg&hash=a375b8bd35bff77d5debb90eb211b8f8cf69ab2a)

Default : 1.1.6

Search.template.php
Find:
// Quick moderation set to checkboxes? Oh, how fun :/.

Add before:
echo '<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>';


Find:
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
</form>';


Add before:
echo '</td><td>&nbsp;&nbsp;</td>
<td valign="top" align="center">GOOGLE ADVERTS</td>
</tr></table>';
Title: Re: Google Ads on Search Page [Tip]
Post by: Adish - (F.L.A.M.E.R) on September 11, 2008, 03:53:23 PM
woh. kwl.. any way to keep it on the top instead of the left.. as it might mess up the page... just on the search but on the top ?
Title: Re: Ads on Search Page
Post by: Minare on September 13, 2008, 07:29:41 PM
Quote from: F.L.A.M.E.R on September 11, 2008, 03:53:23 PM
woh. kwl.. any way to keep it on the top instead of the left.. as it might mess up the page... just on the search but on the top ?

What u demand is easier I guess

Find  :

// Quick moderation set to checkboxes? Oh, how fun :/.

add before :


echo '

<center>GOOGLE ADVERTS CODE</center>';


HCM, please correct me if I am wrong, I didn't check


and thank you hcm for this tip

      
Title: Re: Ads on Search Page
Post by: Hoochie Coochie Man on September 14, 2008, 03:57:04 AM
Whatever you say is correct bro. ;)
Title: Re: Ads on Search Page
Post by: Minare on September 14, 2008, 05:31:59 AM
Quote from: Hoochie Coochie Man on September 14, 2008, 03:57:04 AM
Whatever you say is correct bro. ;)

Thanks bro  :D
Title: Re: Ads on Search Page
Post by: Adish - (F.L.A.M.E.R) on September 14, 2008, 05:49:51 AM
Brov.. thats kooool. \m/