|
Page 1 of 2
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
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 ?
|
#1 Sun 20 Jun, 2010 22:04 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
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?¿?)
|
#2 Mon 21 Jun, 2010 00:08 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
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:
<!-- 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.
Here is the sample ad code:
<!-- 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> </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 |
#3 Mon 21 Jun, 2010 00:29 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Google Adsense In PhpBB3
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
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) |
#4 Mon 21 Jun, 2010 02:18 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
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.
|
#5 Mon 21 Jun, 2010 09:54 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
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?¿?)
|
#6 Mon 21 Jun, 2010 11:37 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
Re: Google Adsense In PhpBB3
Here for example.
Right after my first post.
I keep editing viewtopic_body and no result.
|
#7 Mon 21 Jun, 2010 11:58 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
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?
and after the edit ..flush, purge and clean the forum and browser
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#8 Mon 21 Jun, 2010 12:14 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
Re: Google Adsense In PhpBB3
Now it shows me this error :
- 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
|
#9 Mon 21 Jun, 2010 12:25 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
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?¿?)
|
#10 Mon 21 Jun, 2010 12:27 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
Re: Google Adsense In PhpBB3
This is that viewtopic_body.html.
Now I uploaded the default one.
EDIT : - http://www.sendspace.com/file/jtav3b
|
#11 Mon 21 Jun, 2010 12:35 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
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
<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?¿?)
|
#12 Mon 21 Jun, 2010 12:57 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
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 ?
How to make them apear in the center ?
|
#13 Mon 21 Jun, 2010 15:08 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
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?¿?)
|
#14 Mon 21 Jun, 2010 19:29 |
|
dArcLP
Joined: June 2010
Posts: 21
Location:
|
Re: Google Adsense In PhpBB3
Joshua sorry but I had some problems with my server. Now is good.
|
#15 Tue 22 Jun, 2010 10:05 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
Similar Topics
Similar Topics
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
|
|
|
|