Ads after first post

Tutorials for <a href="http://www.phpbbstyles.com/viewtopic.php?t=356">eXtreme Styles mod</a> for phpBB 2.0.

Moderator: Moderators

Postby DooBDee on Wed Jan 24, 2007 2:57 pm

Code: Select all
<?php
global $forum_id;
$forum = array(9, 10, 42, 43, 56, 57);
if($postrow_i == 0 && in_array($forum_id, $forum)
{
?>
<tr>   
<td colspan="2" align="center" class="row1">   
put here your ad code 
</td>   
</tr>
<?php
}
?>
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby GaDo on Wed Jan 24, 2007 8:27 pm

Thank you so much !!!

I can use you code for register users in some forums + Ads in all forums for guest users ???

Again. Thank you DooBDee

(The guest users DONT have access for the forums 9, 10, 42, etc)
GaDo
Registered User
Registered User
 
Posts: 6
Joined: Wed Jan 24, 2007 5:08 am

Postby GaDo on Mon Apr 30, 2007 4:21 am

[quote user="DooBDee" post="87042"]
Code: Select all
<?php
global $forum_id;
$forum = array(9, 10, 42, 43, 56, 57);
if($postrow_i == 0 && in_array($forum_id, $forum)
{
?>
<tr>   
<td colspan="2" align="center" class="row1">   
put here your ad code 
</td>   
</tr>
<?php
}
?>
[/quote]

Dont Work...

Parse error: parse error in d:\www\foro\includes\template.php(995) : eval()'d code on line 114

Any Help ??. thanks
GaDo
Registered User
Registered User
 
Posts: 6
Joined: Wed Jan 24, 2007 5:08 am

Postby pentapenguin on Mon Apr 30, 2007 5:29 am

Change this
Code: Select all
if($postrow_i == 0 && in_array($forum_id, $forum)

to this:
Code: Select all
if($postrow_i == 0 && in_array($forum_id, $forum))
User avatar
pentapenguin
Moderator
Moderator
 
Posts: 1466
Joined: Tue Sep 14, 2004 4:15 pm
Location: Georgia, USA

Re: Ads after first post

Postby mk484 on Tue Nov 25, 2008 2:27 pm

Can you please update the code for phpBB3? I followed the instructions, with Adsense inserted, but nothing happened.

Thanks
mk484
Registered User
Registered User
 
Posts: 1
Joined: Tue Nov 25, 2008 2:25 pm

Previous

Return to eXtreme Styles mod tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron