Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Google Adsense In PhpBB3 
 
I've searched 'bout this but didn't understand very good what to do, so I'm asking here again.
I'm using phpBB3 , Milky way red template.
How do I add google adsenses on my forum, right after first post, like my sponsor ?
 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
hi again darcLP,

you searched and found this one?

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

"Ads before or after the first post in a topic"
???

if yes, what part don t you understand?
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
No I didn't see that.
I have one quesiton.
This guy told how to activate adsenses on prosilver template.
So I do thoose steps on my template , in prosilver template or in both of them :$ ?

EDIT :

This is my viewtopic_body.html code, i've just selected the important part:

Code: [Download] [Hide] [Select]
<!-- IF postrow.S_FIRST_ROW -->
    <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h4></div></div></div></div>
    <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <th>{L_AUTHOR}</th>
            <th>{L_MESSAGE}</th>
        </tr>
    <!-- ENDIF -->


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


Code: [Download] [Hide] [Select]
    <!-- END postrow -->



Here is the sample ad code:


Code: [Download] [Hide] [Select]
       <!-- 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 -->


So where exactly I replace this code in my viewtopic_body.html ? I mean on that first code I quoted.

Maybe I'm not very clear.
 



 
Last edited by Joshua203 on Mon 21 Jun, 2010 03:25; edited 1 time in total 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
dArcLP wrote: [View Post]

So I do thoose steps on my template , in prosilver template or in both of them :$ ?


you have to do the steps on every template you allow your users to choose, so if you only allow milkyway red as a choice you only do the milkyway red template file



i must admit i don t use milkyway i m a "black pearl guy" nor do i do ads or have experience adding them

but looking at the milky files i guess it's mostly subsilver2 based (just a small part looks prosilver to me), so i think you should be looking for subsilver2 modifications and use those in milkyway red

you can try to just use this edit and see if and/or where  it looks bad



about where you put the code... you did not post the important part but just a part hehehe
try searching for
Code: [Download] [Hide] [Select]
<!-- END postrow -->

in the file viewtopic_body.html and paste the edit (ad-mod) on a new line right above it (before) ... (don't replace anything!!)

backup the original file before you start for if things go bad and after the edit ..flush, purge and clean the forum  and browser



PS ..off-topic.. i added a response to your button problem to one of your other posts (the first one i think)..did you find that?

Edit: ..ooh and please try to use quote buttons for quotes and code buttons for adding codes to your posts ...thanks (i ve edited these for you now in your last post)
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Edited by Joshua203, Mon 21 Jun, 2010 02:51: editted a couple of times for complete clearness (i hope)
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
The code I posted from my viewtopic_body is just before <!-- END postrow -->
EDIT: When I do what instructions says, I get nothing. Nothing is shown.

P.S. As soon as I finish the adsense thing, I'll make buttons and post here.
 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
can you provide a link so i can try and see where it goes wrong?

Edit: i mean a link to where an ad should be visible but is not .. somewhere where i don t have to register to be able to view
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
Here for example.
Right after my first post.
I keep editing viewtopic_body and no result.
 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
thanks for the link, nice board  

i don t see the added code anywhere are you sure you did purge the cache and maybe refreshed the template?

Joshua203 wrote: [View Post]
and after the edit ..flush, purge and clean the forum  and browser

 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
Now it shows me this error :

Code: [Download] [Hide]
  1. Parse error: syntax error, unexpected $end in /home/gollat/public_html/acmilan-shqip.org/forum/cache/tpl_milky-way-red_viewtopic_body.html.php on line 391 

 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
yes i saw that, can you attach the viewtopic body file you ve edited here? the one WITH the error
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
This is that viewtopic_body.html.

Now I uploaded the default one.

EDIT :
Code: [Download] [Hide]
  1. http://www.sendspace.com/file/jtav3b 

 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
see if you still get the error when you forget about adding the ad-code, i mean try modding the file without tempering with the mod, just leave it as it is with "Insert your ad code here " in it

do you then still get the error?

Tip: you can attach the files here BTW ..maybe you need to wrap them first before they can be attached to the post

***EDIT*** forget the above ... i think you forgot to add the last part of the code... use the full text of the modification.. including this part
Code: [Download] [Hide] [Select]
          <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 -->

 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
OK Fixed it.
The only problem is , that ads are shown before the first post , even I did the thing for Ads after the first post in a topic ?

49588960

How to make them apear in the center ?
 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
if you keep editing the file before and while i m trying to view it what can i say?  

i was trying to figure what was wrong .. page looked like you said but centered ads in explorer ...then i opened firefox to see if it was centered there too and i saw a mysql error.. so i refreshed the page in explorer .. guess what? ...mysql error  
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Google Adsense In PhpBB3 
 
Joshua sorry but I had some problems with my server. Now is good.
 



 
dArcLPSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron