Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: Hoochie Coochie Man in September 11, 2008, 03:51:26 VORMITTAG

Titel: Ads on Search Page
Beitrag von: Hoochie Coochie Man in September 11, 2008, 03:51:26 VORMITTAG
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>';
Titel: Re: Google Ads on Search Page [Tip]
Beitrag von: Adish - (F.L.A.M.E.R) in September 11, 2008, 03:53:23 NACHMITTAGS
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 ?
Titel: Re: Ads on Search Page
Beitrag von: Minare in September 13, 2008, 07:29:41 NACHMITTAGS
Zitat von: F.L.A.M.E.R in September 11, 2008, 03:53:23 NACHMITTAGS
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

      
Titel: Re: Ads on Search Page
Beitrag von: Hoochie Coochie Man in September 14, 2008, 03:57:04 VORMITTAG
Whatever you say is correct bro. ;)
Titel: Re: Ads on Search Page
Beitrag von: Minare in September 14, 2008, 05:31:59 VORMITTAG
Zitat von: Hoochie Coochie Man in September 14, 2008, 03:57:04 VORMITTAG
Whatever you say is correct bro. ;)

Thanks bro  :D
Titel: Re: Ads on Search Page
Beitrag von: Adish - (F.L.A.M.E.R) in September 14, 2008, 05:49:51 VORMITTAG
Brov.. thats kooool. \m/