Icy Phoenix
phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - Google Adsense In PhpBB3
dArcLP [ Sun 20 Jun, 2010 22:04 ]
Post subject: 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 ?
dArcLP [ Mon 21 Jun, 2010 00:29 ]
Post subject: 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.
Joshua203 [ Mon 21 Jun, 2010 02:18 ]
Post subject: 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)
dArcLP [ Mon 21 Jun, 2010 09:54 ]
Post subject: 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.
Joshua203 [ Mon 21 Jun, 2010 11:37 ]
Post subject: 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
dArcLP [ Mon 21 Jun, 2010 11:58 ]
Post subject: Re: Google Adsense In PhpBB3
Here for example.
Right after my first post.
I keep editing viewtopic_body and no result.
Joshua203 [ Mon 21 Jun, 2010 12:14 ]
Post subject: 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

dArcLP [ Mon 21 Jun, 2010 12:25 ]
Post subject: 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
Joshua203 [ Mon 21 Jun, 2010 12:27 ]
Post subject: 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
dArcLP [ Mon 21 Jun, 2010 12:35 ]
Post subject: Re: Google Adsense In PhpBB3
This is that viewtopic_body.html.
Now I uploaded the default one.
EDIT :
- http://www.sendspace.com/file/jtav3b
Joshua203 [ Mon 21 Jun, 2010 12:57 ]
Post subject: 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 -->
dArcLP [ Mon 21 Jun, 2010 15:08 ]
Post subject: 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 ?
Joshua203 [ Mon 21 Jun, 2010 19:29 ]
Post subject: 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

dArcLP [ Tue 22 Jun, 2010 10:05 ]
Post subject: Re: Google Adsense In PhpBB3
Joshua sorry but I had some problems with my server. Now is good.
Joshua203 [ Tue 22 Jun, 2010 14:59 ]
Post subject: Re: Google Adsense In PhpBB3
why do i have the feeling you need a new host??
new error
Quote:
Gabim i Përgjithshëm
Could not get style data
dArcLP [ Tue 22 Jun, 2010 15:05 ]
Post subject: Re: Google Adsense In PhpBB3
The problem is to my host even in this error ?
Joshua203 [ Tue 22 Jun, 2010 17:37 ]
Post subject: Re: Google Adsense In PhpBB3
well i must admit i was at work when i posted my last message and i did not read the type of the error.. i just noticed the error and posted it here, you re right to say this probably was not your host causing the error
right now it looks quite different but i guess you removed phpbb for repair?
let me know when you want me to view again
dArcLP [ Tue 22 Jun, 2010 17:47 ]
Post subject: Re: Google Adsense In PhpBB3
Thank you for everything joshua.
I was conviced that phpBB is the right thing to use for my web, but I failed again so I'm deleting it for permanent, i guess.
You're the one who helped me the most and I don't know how to thank you.
I made some ranks in albanian , if anyone want's them you're free to use them.
Download:
- http://www.sendspace.com/file/xwd5y6
Joshua203 [ Tue 22 Jun, 2010 17:56 ]
Post subject: Re: Google Adsense In PhpBB3
i m sorry to hear that, thanks for sharing the ranks here
little suggestion for you maybe? ...look into Icyphoenix based boards, this comes with a lot of mods build in the package (pré-modded) controlable from acp, it's phpbb2 based i think
EDIT: you can read more on the portal page and compare features here:
http://www.icyphoenix.com/features.php
dArcLP [ Tue 22 Jun, 2010 18:10 ]
Post subject: Re: Google Adsense In PhpBB3
Nah I don't think I'll work again. Thanks anyway.
If I can help in anyway around language, buttons or whatever PM me

Joshua203 [ Tue 22 Jun, 2010 18:19 ]
Post subject: Re: Google Adsense In PhpBB3
Maybe MG will contact you about this offer ..i don t know
sorry this is not your "thing" ...maybe we ll meet again who knows, goodluck darcLP,
...Joshua203
Mighty Gorgon [ Tue 22 Jun, 2010 19:47 ]
Post subject: Re: Google Adsense In PhpBB3
I was conviced that phpBB is the right thing to use for my web, but I failed again so I'm deleting it for permanent, i guess.
I'm sorry to read that.
Anyway I can really understand your point, and this is the reason why I created Icy Phoenix.
I love phpBB, because it is very well coded, and also their minimalist approach allowed many talented coders to develop cool mods which seamlessly integrates into phpBB. But... many basic users feel really unconfortable with phpBB, because if you (the user) are lacking of PHP or HTML knowledge, could be really really tough to customize the website by just using phpBB.
This is also the reason why some blogging platforms like WordPress took place in the web...
Anyway, back to the point... if you don't specifically need a discussion forum, I would suggest you to use WordPress to build your website, because it is the best PHP application I know under a "user friendly" point of view.
If you need a forum, you may have a try using Icy Phoenix, which maybe has many things you may not need... but the other side of the coin is that you will just need to choose a template you like and then most of the settings can be set by "user friendly" (friendly when you know where settings are!) forms.
If you need an online demo of Icy Phoenix, you can have a try here, so you don't have to waste time and resources installing it on your space:
Icy Phoenix Demo @ Open Source CMS
dArcLP [ Tue 22 Jun, 2010 20:18 ]
Post subject: Re: Google Adsense In PhpBB3
I was conviced that phpBB is the right thing to use for my web, but I failed again so I'm deleting it for permanent, i guess.
I'm sorry to read that.
Anyway I can really understand your point, and this is the reason why I created Icy Phoenix.
I love phpBB, because it is very well coded, and also their minimalist approach allowed many talented coders to develop cool mods which seamlessly integrates into phpBB. But... many basic users feel really unconfortable with phpBB, because if you (the user) are lacking of PHP or HTML knowledge, could be really really tough to customize the website by just using phpBB.
This is also the reason why some blogging platforms like WordPress took place in the web...
Anyway, back to the point... if you don't specifically need a discussion forum, I would suggest you to use WordPress to build your website, because it is the best PHP application I know under a "user friendly" point of view.
If you need a forum, you may have a try using Icy Phoenix, which maybe has many things you may not need... but the other side of the coin is that you will just need to choose a template you like and then most of the settings can be set by "user friendly" (friendly when you know where settings are!) forms.
If you need an online demo of Icy Phoenix, you can have a try here, so you don't have to waste time and resources installing it on your space:
Icy Phoenix Demo @ Open Source CMS
Some months ago I used vBulletin but of course they suspended me I didn't have license. So I changed to Wordpress and the average of visitors for one day was 3000 but visitors wanted a forum to discuss. So I choose phpBB 3 and with the help of Joshua I was doing very good I had 200 registred users in 3 days and more than 2000 posts.
I fixed the problem with that Error too, I installed phpBB again I backed up the files and was woring very good. The problem was that the backup was not very "new" so I had not to much reg. users and posts so I don't have confidence to start working again.
I can see you didn't reply about this but I'm gonna ask again. If there's anything I can do like design, albanian (sq) language pack, buttons etc. I can do it. Joshua helped me a lot so I want to help you 2.
Mighty Gorgon [ Wed 23 Jun, 2010 20:28 ]
Post subject: Re: Google Adsense In PhpBB3
I can see you didn't reply about this but I'm gonna ask again. If there's anything I can do like design, albanian (sq) language pack, buttons etc. I can do it. Joshua helped me a lot so I want to help you 2.
Thanks for your offer, I would need a translation for Icy Phoenix, but is quite a huge job, I don't know if you are willing to do.
Regarding buttons, The Steffen is the one who is preparing translations, I'll ask him.
In the meantime you can have a look here:
http://www.icyphoenix.com/viewtopic.php?f=5&t=5354
Thank you very much.