Ads after first and last post (proSilver based)

Viewtopic, viewforum, posting related hacks and MODs.
Viewing topics, forums, or posting add-ons.

Ads after first and last post (proSilver based)

Postby topdown » 10 Mar 2008, 23:46

phpBB Part: Other

MOD Name: Ads after first and last post (proSilver based)
MOD Version: 1.0.0
Author: topdown inspired by >> Shadow_One
MOD Description: This mod puts ads after the first post, first and last post, or
first and last post with different ads in each.

Works with:
  • phpBB3.0.0

Language: English

Licence: GNU General Public License v2

Demo: DEMO

Screenshot:
Not yet.

Installation Level: Easy
Installation Time: 3-5 Minutes
Format:
Download File:

Open >>> template/viewtopic_body.html

Find

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




Before Add

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

<dd style="text-align:center;">   

<!-- INCLUDE ads.txt -->
</dd></dl>
      </div>
<span class="corners-bottom">
<span></span></span>
</div>
</div>
   <!-- ENDIF -->


If you want ads after the first and last post.

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


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


Make a ads.txt for your template folder and place your ads in it.
Refresh the templates after making the changes. :cool:


Here is ads after first and last post with the first and last ads being different.

Same sequence

Open >>> template/viewtopic_body.html

Find

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



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

<dd style="text-align:center;">   

<!-- INCLUDE ads.txt -->

</dd></dl>
      </div>
<span class="corners-bottom">
<span></span></span>
</div>
</div>
   <!-- ELSEIF postrow.S_LAST_ROW -->
   <div class="post bg2">
<div class="inner">
<span class="corners-top">
<span></span></span>
<div class="content">
<dl class="faq">

<dd style="text-align:center;">   

<!-- INCLUDE ads2.txt -->

</dd></dl>
      </div>
<span class="corners-bottom">
<span></span></span>
</div>
</div>
   <!-- ENDIF -->


Make a ads.txt and a ads2.txt for your template folder and place your ads in it.


Refresh the templates after making the changes. :cool:



Expanded for subsilver2 based here
viewtopic.php?p=59938#p59938
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3022
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Ads after first and last post (proSilver based)

Postby hecos » 13 Mar 2008, 19:19

Thank you for posting this great mod :hello:

I am using prosilver and it looks great with Google AdSense link ads (4 links in a row). After configuring it's background and adding this mod, ads look like a normal small post.

It's very easy to install and it works with IE7 and FireFox.

Thank you!
hecos
Crewman
Crewman
 
Posts: 2
Joined: 14 Feb 2008, 00:11
Gender: Male
phpBB Knowledge: 2

Re: Ads after first and last post (proSilver based)

Postby topdown » 14 Mar 2008, 01:07

Well Thank You :grin:

I'm glad it worked out well for you.
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3022
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9

Re: Ads after first and last post (proSilver based)

Postby phpBBx » 13 Apr 2008, 15:59

Work fine and here is the support for this mod in arabic :grin:
google adsense on phpbb3 arabic support
Last edited by phpBBx on 15 Jun 2008, 08:42, edited 2 times in total.
phpbb Union - Arabic Support
for any reason about phpbbu.com contact me at phpbbx@msn.com
User avatar
phpBBx    
Crewman
Crewman
 
Posts: 7
Joined: 02 Oct 2007, 05:31
Favorite Team: FC Barcelona
Gender: Male

Re: Ads after first and last post (proSilver based)

Postby topdown » 13 Apr 2008, 19:12

Did you do this ?


If you want ads after the first and last post.

CHANGE

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



to

Code: Select all
<!-- IF postrow.S_FIRST_ROW or postrow.S_LAST_ROW -->
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3022
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9

Re: Ads after first and last post (proSilver based)

Postby phpBBx » 14 Apr 2008, 17:10

zzzz lol sorry :D

IT'S WORK PERFECT
Last edited by phpBBx on 27 Apr 2008, 13:54, edited 1 time in total.
phpbb Union - Arabic Support
for any reason about phpbbu.com contact me at phpbbx@msn.com
User avatar
phpBBx    
Crewman
Crewman
 
Posts: 7
Joined: 02 Oct 2007, 05:31
Favorite Team: FC Barcelona
Gender: Male

Re: Ads after first and last post (proSilver based)

Postby ever-fresh » 23 Apr 2008, 06:07

impressive Mod.
thankyou so much :)
ever-fresh
Cadet I
Cadet I
 
Posts: 12
Joined: 20 Apr 2008, 12:20
Gender: Male
phpBB Knowledge: 4

Re: Ads after first and last post (proSilver based)

Postby raggy » 24 Apr 2008, 10:08

can u put pictures on the ads.txt?

i mean html? or plain only?

and say i want to advertise more than one banner in different page refreshs, does it change?
raggy
Cadet IV
Cadet IV
 
Posts: 43
Joined: 06 Jul 2007, 14:50
Gender: Male

Re: Ads after first and last post (proSilver based)

Postby topdown » 24 Apr 2008, 16:59

You should be able to put picture in using HTML in the file.

As for the refreshing thing, No, that would take a script to be able to do that.

I may do some work on this at a later date to make it updated able from the ACP and have ads stored in the database.
If I went that far into it , then I would.

If you use Google ads, then you apply how ever many ads (Referrals) you want to your Adsence account under the same unit

"You may choose up to 15 ads in each AdSense unit."
Then they should rotate automatically from the code that Google gives you.
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3022
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9

Re: Ads after first and last post (proSilver based)

Postby direct » 29 Apr 2008, 22:30

Can i use this mod at bbspoint.com or yap365.com ?
How to change the html ?
I think bbspoint.com dont let us do cause they also have their ads,
Does somebody know where bbspoint put their ads at our forum ?
I saw sometimes ads (after first post) at this forum stratrekguide.com very lag,
while we scroll down the forum, the ads lag to follow the scroll.

If i may also put my own ads, can somebody tell how to do ?

Regards :good:
direct    
Crewman
Crewman
 
Posts: 4
Joined: 29 Apr 2008, 04:04
Gender: Male
phpBB Knowledge: 1

Next

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: Ezooms Bot and 12 guests