Google adsense in PHPBB

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

phpbb3

Postby drankur » Mon Feb 04, 2008 4:32 pm

will this work with phpbb3 :roll: if not plz provide it for phpbb3
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Advertisement

Postby dcz » Wed Feb 06, 2008 9:20 pm

tobi made a pretty decent mod over at phpbb.com, should not be hard to find with the author name ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby the.helper » Wed May 14, 2008 8:39 am

thanks very much 4 this nice mod :)
the.helper
 
Posts: 2
Joined: Fri Aug 24, 2007 10:37 pm

Postby Professional » Wed May 14, 2008 4:10 pm

is there this google adcence for phpbb 3.0.1?
User avatar
Professional
PR5
PR5
 
Posts: 543
Joined: Mon Apr 07, 2008 5:41 am
Location: 1/2 of the World

ads before 1st post

Postby drankur » Tue May 20, 2008 4:35 pm

can anybody please tell how to ad google adsense ads BEFORE 1st post ,
plz help
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Re: ads before 1st post

Postby HB » Tue May 20, 2008 9:36 pm

Professional wrote:is there this google adcence for phpbb 3.0.1?

I googled for phpbb ads mod and found a couple promising ones:

http://www.phpbb.com/community/viewtopi ... 0&t=552813
http://startrekguide.com/community/view ... =84&t=5501

And of course the trivial one:

http://www.phpbb.com/kb/article/adverti ... in-phpbb3/

drankur wrote:can anybody please tell how to ad google adsense ads BEFORE 1st post ,
plz help

See http://www.phpbb.com/kb/article/adverti ... in-phpbb3/ and search for "Ads before or after the first post in a topic"
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

already

Postby drankur » Wed May 21, 2008 3:53 am

i have already looked there but it shows ads after any post(altough written there before first post) , that i don't want i only want to display BEFORE first post
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby HB » Wed May 21, 2008 4:06 am

drankur wrote:i have already looked there but it shows ads after any post...

In that case, it sounds like you omitted this line in your code:

Code: Select all
   <!-- IF postrow.S_FIRST_ROW -->


from the sample code shown here:

Code: Select all
       <!-- IF postrow.S_FIRST_ROW -->
       <div class="post bg2">
          <div class="inner"><span class="corners-top"><span></span></span>

          <div class="postbody">
             <h3>{postrow.POST_SUBJECT}</h3>
             <p class="author"><strong>Sponsor</strong></p>

             <div class="content" style="text-align: center;">
                Insert your ad code here
             </div>
          </div>
         
          <dl class="postprofile" id="profile0000">
             <dt>
                <strong>Sponsor</strong>
             </dt>

             <dd>&nbsp;</dd>
          </dl>
         
          <div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>
          <span class="corners-bottom"><span></span></span></div>
       </div>
       <hr class="divider" />
       <!-- ENDIF -->
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

haven't

Postby drankur » Wed May 21, 2008 7:32 am

thanks buddy , it worked , thanks a lot again :D
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

inside

Postby drankur » Wed May 21, 2008 12:00 pm

can u plz tell how to put google ads INSIDE FIRST POST i have googled very hard but could't find it, i would be very thankful , plz help
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby MathieuM. » Wed May 21, 2008 12:35 pm

HB already gave the answer... Look at : http://www.phpbb.com/kb/article/adverti ... in-phpbb3/


phpBB.com wrote:Ads before or after the first post in a topic

If you want ads either before or after the first post in a topic, open styles/prosilver/template/viewtopic_body.html

For ads before the first post, find the line below and add the sample code after this line.

Code: Select all
<!-- BEGIN postrow -->


For ads after the first post, find the line below and add the sample code before this line.

Code: Select all
<!-- END postrow -->


Here is the sample ad code:

Code: Select all
   <!-- IF postrow.S_FIRST_ROW -->
   <div class="post bg2">
      <div class="inner"><span class="corners-top"><span></span></span>

      <div class="postbody">
         <h3>{postrow.POST_SUBJECT}</h3>
         <p class="author"><strong>Sponsor</strong></p>

         <div class="content" style="text-align: center;">
            Insert your ad code here
         </div>
      </div>
     
      <dl class="postprofile" id="profile0000">
         <dt>
            <strong>Sponsor</strong>
         </dt>

         <dd>&nbsp;</dd>
      </dl>
     
      <div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>
      <span class="corners-bottom"><span></span></span></div>
   </div>
   <hr class="divider" />
   <!-- ENDIF -->


Of course, replace Insert your ad code here with the ad code your provider gives you.



Mathieu.
User avatar
MathieuM.
phpBB SEO Team
phpBB SEO Team
 
Posts: 1464
Joined: Sun Feb 10, 2008 9:33 pm
Location: Rhône-Alpes

no

Postby drankur » Wed May 21, 2008 12:38 pm

no dear , its not the same , i am asking google adsense INSIDE the first post not before , i hope this will solve the confusion.
plz help
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby HB » Wed May 21, 2008 9:52 pm

Not sure why you would do that, but you could use the instructions above and add this after the post heading in the viewtopic.html template:

Code: Select all
<!-- IF postrow.S_FIRST_ROW -->
<div>
...insert adsense code from google here...
</div>
<!-- ENDIF -->

It may not look as "natural" as the modification from phpBB's knowledge base.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

no

Postby drankur » Tue May 27, 2008 5:06 pm

its not working bro
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby HB » Tue May 27, 2008 11:25 pm

I assume you made a coding error. Please check your work again.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

PreviousNext

Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests