...

View Full Version : Can i get the php code which allow's to put ads automatically after each post.



raw_axe
08-11-2007, 10:01 AM
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.
:thumbsup:

thanks in advance

Raw_axe

mlseim
08-11-2007, 10:05 AM
Need more info ...

"after each post" ... with what?
WordPress, some sort of forum? What script are you using?

raw_axe
08-11-2007, 10:22 AM
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.

mlseim
08-11-2007, 04:46 PM
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.

raw_axe
08-12-2007, 07:12 AM
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




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
:thumbsup:

raw_axe

Pennimus
08-12-2007, 01:36 PM
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.

mlseim
08-12-2007, 02:32 PM
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:


$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?

Inigoesdr
08-12-2007, 06:42 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum