Sub Menu
Links Menu
Online Users

In total there are 303 users online :: 4 registered, 0 hidden and 299 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot] based on users active over the past 60 minutes

AdsInPosts

Mods etc.

Moderator: Integra Moderator

AdsInPosts

PostAuthor: dan0042 » Fri Mar 02, 2007 4:32 pm

Your phpBB Version: 2.0.
phpBB Type: Standard phpBB
MODs: No
Your knowledge: Beginner
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

#############################################################################################################
## MOD Title: Adverts In Posts
## MOD Author: Dale Rodgers < http://www.tntboards.com
## MOD De.scription: Automatically displays an advert in a topic as a post.
## MOD Version : 1.3.7
##
## Installation Level : Easy
##
## Installation Time : ~30 Secs
##
## Files To Edit : viewtopic.php
##
##
## Included Files : None
##
##
############################################################################################################
## For Security Purposes, Please Check: http://www.phpbbhacks.com/allhacks.php for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbbhacks.com/allhacks.php
############################################################################################################
## Author Notes:
## This MOD was made to have adverts on your forum without ruining the design or looking nasty.
##
## - Abilty to change the advert
## - Ability to change how many ads are displayed per topic
############################################################################################################
## Other Notes:
## You need to replace Ad Code Here with your ad code.
############################################################################################################
############################################################################################################
## MOD History:
##
##
## 2005-02-06 - Version 1.3.7
## - First release of the MOD
##
##
############################################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
############################################################################################################


#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
$row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num ++;

#
#-----[ FIND ]------------------------------------------
#
'U_POST_ID' => $postrow[$i]['post_id'])
);

#
#-----[ AFTER, ADD ]------------------------------------------
#
if($i == $ad_after)
{
$row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$num ++;

$mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#ad';
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'POST_DATE' => $post_date,
'POST_SUBJECT' => 'Advertisement',
'MINI_POST_IMG' => $mini_post_img,
'POSTER_NAME' => 'Advertisement',
'POSTER_RANK' => 'Advertiser',
'MESSAGE' => '<div>Ad code here</div>',
'L_MINI_POST_ALT' => $mini_post_alt,
'U_MINI_POST' => $mini_post_url,
'U_POST_ID' => 'ad')
);
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Last edited by dan0042 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 3:06 pm
Cash on hand: 0.00

PostAuthor: tekguru » Fri Mar 02, 2007 11:42 pm

Intriguing - any examples of it in action anywhere?
Last edited by tekguru on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:29 pm
Cash on hand: 0.00

PostAuthor: dan0042 » Sat Mar 03, 2007 6:13 am

Last edited by dan0042 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 3:06 pm
Cash on hand: 0.00

PostAuthor: ZacFields » Thu Mar 08, 2007 1:54 pm

That's the inline banner mod I was asking about! I believe this modification worked in 1.4.0 but for some reason it doesn't work at all in 1.4.1.

It places an advertisment under the first post in every topic. Adsense works okay on it, but for some reason it has trouble getting relevant ads there, but if you have paid advertisers like my site does, it's the best spot on a forum to have a banner.

Zac
Last edited by ZacFields on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

ZacFields
Sr Integra Member
Sr Integra Member
 
Posts: 426
Likes: 0 post
Liked in: 0 post
Joined: Wed May 24, 2006 10:14 pm
Cash on hand: 0.00

Re: AdsInPosts

PostAuthor: jomasaco » Sat Jun 23, 2007 7:55 am

I put this on my forum and works fine.
[code]http]
Last edited by jomasaco on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

jomasaco
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 20, 2007 1:16 am
Cash on hand: 0.00

PostAuthor: DarkGizmo » Mon Oct 08, 2007 10:00 am

"jomasaco";p="26784" wrote:I put this on my forum and works fine.
[code]http]

Link isn't workin, someone else got this mod working? i could really use some help with this mod
Last edited by DarkGizmo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

DarkGizmo
Newbie
Newbie
 
Posts: 5
Likes: 0 post
Liked in: 0 post
Joined: Sun Feb 25, 2007 7:30 am
Cash on hand: 0.00

Re: AdsInPosts

PostAuthor: jomasaco » Sun Mar 02, 2008 9:32 am

Ok, an print screen

[flash=,:117wjr2d]http://i26.tinypic.com/5d7128.gif[/flash:117wjr2d]

BTW the code for ads must be html
Last edited by jomasaco on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

jomasaco
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 20, 2007 1:16 am
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]