September 08, 2008, 15:23:59 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Revenue sharing launched. This is offered as a "thank you" for being a member of webmasterstalks.com community! If you have an Adsense/Yahoo publisher account then you can start right away !
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Revenue sharing launched. This is offered as a "thank you" for being a member of webmasterstalks.com community! If you have an Adsense/Yahoo publisher account then you can start right away !
Pages: [1]
  Print  
Author Topic:

Adsense at the bottom of the first post ..

 (Read 1625 times)
0 Members and 1 Guest are viewing this topic.
Nite
Jr. Member
**

Points: 0
Offline Offline

Posts: 55



WWW
« on: February 07, 2007, 21:59:20 »

Godfather,

I noticed that you display adsense at the bottom of the first post. Which file (and where) do I need to edit to do the same?

Thanks.
Logged



TheGodFather
Administrator
Hero Member
*****

Points: 202
Offline Offline

Posts: 2570



WWW
« Reply #1 on: February 07, 2007, 22:41:32 »

Hi,

 The file is Display.template.php. Find the next code :
Code:
                // Show the member's signature?
                if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
                        echo '
                                                        <hr width="100%" size="1" class="hrcolor" />
                                                        <div class="signature">', $message['member']['signature'], '</div>';

                echo '
                                                </td>
                                        </tr>
                                </table>
                        </td></tr>
                </table>
        </td></tr>';

and add after
Code:
if ($message['id'] == $context['first_message']){
    echo '
        <tr><td style="padding: 0px 1px 0 1px;" >

        <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;" class="windowbg">
                    <tr>
                        <td valign="top" width="85%" height="100%">
        <br />
                            <div style="overflow: auto; width: 100%;" align="center">
                            ADSENSE AD
                            </div>
        <br />
        </td></tr>
    </table>

    </td></tr>';
}


I hope it helps  Smiley

Regards
Logged

Nite
Jr. Member
**

Points: 0
Offline Offline

Posts: 55



WWW
« Reply #2 on: February 08, 2007, 04:40:12 »

That's beautiful. Thank you.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks

TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!