Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-11-2007, 09:01 AM   PM User | #1
raw_axe
New to the CF scene

 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
raw_axe is an unknown quantity at this point
Thumbs up Can i get the php code which allow's to put ads automatically after each post.

Can i get the php code which allow's to put ads automatically after each post to a maximum of three in a page if you can give it to me i will be thankful to you my whole life.


thanks in advance

Raw_axe
raw_axe is offline   Reply With Quote
Old 08-11-2007, 09:05 AM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
Need more info ...

"after each post" ... with what?
WordPress, some sort of forum? What script are you using?
mlseim is offline   Reply With Quote
Old 08-11-2007, 09:22 AM   PM User | #3
raw_axe
New to the CF scene

 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
raw_axe is an unknown quantity at this point
Cool

till now i am not using any scripts but iwant to usee now to put ads on the forum i want to know the script which i can use to put ads after each reply in the thread if you can help me i will be grateful to you if you cant thank you buit i am tired of asking for help i will just quit it if i have got no answer from that forum also.
raw_axe is offline   Reply With Quote
Old 08-11-2007, 03:46 PM   PM User | #4
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
OK ...

So you're talking about when you post something to a forum an ad will
appear? I'm still not clear about whether an ad appears when anyone
posts on the forum, or just you.

I'm assuming you're going to start your own forum and want those ads
to appear on your forum?

I'm just having a hard time understanding how you are looking for instructions
on how to put ads on the forum, but you don't yet have any scripts.
mlseim is offline   Reply With Quote
Old 08-12-2007, 06:12 AM   PM User | #5
raw_axe
New to the CF scene

 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
raw_axe is an unknown quantity at this point
Thumbs up

Quote:
Originally Posted by mlseim View Post
OK ...

So you're talking about when you post something to a forum an ad will
appear? I'm still not clear about whether an ad appears when anyone
posts on the forum, or just you.

I'm assuming you're going to start your own forum and want those ads
to appear on your forum?

I'm just having a hard time understanding how you are looking for instructions
on how to put ads on the forum, but you don't yet have any scripts.

thats why i am looking for a script to write it on the forum


Quote:
I'm still not clear about whether an ad appears when anyone
posts on the forum, or just you..
let me explain it to you suppose we have a forum and you have started a new thread there and just after you have started a thread an ad will appear after it before anyone could reply to it an ad will appear next to the new thread started
if you can do that for me i will be thankful; to you


raw_axe
raw_axe is offline   Reply With Quote
Old 08-12-2007, 12:36 PM   PM User | #6
Pennimus
Senior Coder

 
Join Date: Jul 2005
Location: UK
Posts: 1,051
Thanks: 6
Thanked 13 Times in 13 Posts
Pennimus is on a distinguished road
I would give up on the idea of someone doing it for you, that's not the way things tend to work. First, you show something that you've written that isn't working, then people will help you.
Pennimus is offline   Reply With Quote
Old 08-12-2007, 01:32 PM   PM User | #7
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
Whatever forum you use, you'll have to examine the PHP scripting and
locate the correct template file that handles displaying the posts. That's
why we're asking you about what forum you're using. Each forum is different,
and we can't provide any script examples without know which forum you're
using.

Also, we have no idea where your ads are coming from. Do you have a list
of ads in another database? Are the ads randomly extracted from a remote
site? Are the ads inserted using a Javascripting method?

I could answer your question like this with the information you provided:

Put this code in your forum where the posts are displayed:
PHP Code:
$count++;
if(
$count 4){
echo 
"Buy a new car!  <a href='www.ford.com'>Ford Cars</a>";

There you go, that's how you do it.

See what I mean?
How is that going to help you?
mlseim is offline   Reply With Quote
Old 08-12-2007, 05:42 PM   PM User | #8
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Most forum scripts will probably have a mod you can install to do this for you. I know vB does, and I think phpBB does too.
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:32 AM.


Advertisement
Log in to turn off these ads.