Reply
Ad Rotator?
Old 05-03-2007, 07:55 AM Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
Hi,

I need a ad rotator for my forum. Its a phpbb forum

Can someone tell me good one?

or a php script rotating em'.

I don't need anything complex i.e: the better performing ones appear more then others

I just need something simple to switch ads on each refresh.

Format of ad will be <a href.......>text</a><img>......</img>

Thank You.

Evilgenius.
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-03-2007, 08:45 AM Re: Ad Rotator?
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 551
Name: surajit ray
Location: inside the heart of my friends
Inside the file banner_ads.txt insert links and images seperated by |, like:
<a href.......><img>......</img></a>
|
<a href.......><img>......</img></a>
And use this php script for ad-rotation:
PHP Code:
<?php
$ads 
implode(''file ('banner_ads.txt'));
$add_array explode("|",$ads);
$banner_no rand(0,(count($add_array)-1));
echo 
$add_array[$banner_no];
?>
__________________
Think+, work +, but not HIV + :)
jito is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 10:12 AM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
thanks, will try it out shortly.
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 12:06 PM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
Warning: file(ads.txt) [function.file]: failed to open stream: No such file or directory in /homepages/28/d176555199/htdocs/123/phpbb/cache/tpl_forum_8443.agreement.php on line 22

Warning: implode() [function.implode]: Bad arguments. in /homepages/28/d176555199/htdocs/123/phpbb/cache/tpl_forum_8443.agreement.php on line 22
__________________
Super Evil Genius || Koolspot || Fun Center

Last edited by evilgenius : 05-03-2007 at 02:40 PM.
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 12:13 PM Re: Ad Rotator?
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
there is a ad manager for phpbb forums.
Look it up in the phpbb website

There is one even for ads in the post ( after the first and last post ).. it's called Inline Ad
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 05-03-2007, 12:17 PM Re: Ad Rotator?
camp185's Avatar
Super Talker

Latest Blog Post:
Printer Friendly
Posts: 118
It may be easier for you to just search for "free php script".

Here are some: http://www.hotscripts.com/search/15202651.html
__________________
Subscribe to my full feed RSS for Usability Tips and Site Reviews
Get My Basic Usability & Design Analysis
camp185 is offline
Reply With Quote
View Public Profile Visit camp185's homepage!
 
Old 05-03-2007, 02:11 PM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
I want to keep the forum clean.
I hate the idea of adding it to the posts.
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 02:12 PM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
But the problem is or what i think.

Does php work in .TPL files?
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 02:21 PM Re: Ad Rotator?
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
evelgenius why do yo try and invent the wheel when you don't know how it looks like.

There are a lot of MODS on the phpbb website that can help yuo ...
One is called inline banner
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 05-03-2007, 02:23 PM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
Quote:
Originally Posted by solomongaby View Post
evelgenius why do yo try and invent the wheel when you don't know how it looks like.

There are a lot of MODS on the phpbb website that can help yuo ...
One is called inline banner

LOOOOK!!!

http://www.phpbb.com/community/viewt...?f=17&t=537883
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 02:49 PM Re: Ad Rotator?
boomers's Avatar
Extreme Talker

Posts: 215
Youre not going to get people to help you with that sort of attitude!
__________________
NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service!
InThePremiership.com - Football News Portal, updated hourly!
boomers is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 02:55 PM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
Quote:
Originally Posted by boomers View Post
Youre not going to get people to help you with that sort of attitude!
I mentioned above i don't want ads in my posts.

I just want to add em' in a few pages.

It think some people do have a problem sometimes...

There is a reasons for asking this.
Getting a script fiddling with it, you learn something, i'm not good at all in php
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-03-2007, 03:36 PM Re: Ad Rotator?
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
mr. evilgenius ... if you were make a step back read what i sayd you will see that i only gave the inline banner as an example ...
and i know for a fact that there is a MOD for what you want ... i just don't remember the name .. and i am not going to do you're searching for you.

If you don't know any php ... you might think of paying someone to do you're work. If you are fixed on learning php and doing it you're self you will find that there are people here that can help YOU do it ... but it require's that you are not just a machine and Copy&paste the code you get ... and repost the error codes ... but also use you're brain a little.

Have fun and stop beeing so angry you will get an ulcer.

seems like you're atitude on forums ... is constant
Quote:
Originally Posted by phpbb forum
I'm trying my best to keep cool!!
i don't know if you read the rules on this forum .. but it writes with an invisible ink the folowing rule :
Quote:
Shall not treat forum members like personals slaves that deliver my projects on a silver plater each time i shout i need something done.
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 05-03-2007, 03:42 PM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
Quote:
Originally Posted by solomongaby View Post
mr. evilgenius ... if you were make a step back read what i sayd you will see that i only gave the inline banner as an example ...
and i know for a fact that there is a MOD for what you want ... i just don't remember the name .. and i am not going to do you're searching for you.

If you don't know any php ... you might think of paying someone to do you're work. If you are fixed on learning php and doing it you're self you will find that there are people here that can help YOU do it ... but it require's that you are not just a machine and Copy&paste the code you get ... and repost the error codes ... but also use you're brain a little.

Have fun and stop beeing so angry you will get an ulcer.

seems like you're atitude on forums ... is constant


i don't know if you read the rules on this forum .. but it writes with an invisible ink the folowing rule :
I DIDN'T ASK ANYONE FOR SEARCHING FOR ME!

You really are freaking me out!, I just wanted help with the above code.

I had asked 2 days ago oh phpbb, didn't get any answer thats why asked here.

Why do you come stright to pay someone?
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-04-2007, 01:17 AM Re: Ad Rotator?
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 551
Name: surajit ray
Location: inside the heart of my friends
The error you get because the code didn't find that text file. Place the text file in the same directry where this code is. It's a problem with the file path, nothing else.
__________________
Think+, work +, but not HIV + :)
jito is offline
Reply With Quote
View Public Profile
 
Old 05-04-2007, 01:41 AM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
Quote:
Originally Posted by jito View Post
The error you get because the code didn't find that text file. Place the text file in the same directry where this code is. It's a problem with the file path, nothing else.

Tried two things, make a folder named ads placed the ads.txt in it, and changed to path in script to ads/ads.txt - Nooo


Second was that I brought it out,



Agreement .tpl's got the script in it.
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Old 05-04-2007, 02:52 AM Re: Ad Rotator?
jito's Avatar
MY LIFE IS 'i' LIFE

Posts: 551
Name: surajit ray
Location: inside the heart of my friends
you must have included that template somewhere else in another file. And that file is in a different folder. set the path accordind to that file.
Hope this time it will work.
__________________
Think+, work +, but not HIV + :)
jito is offline
Reply With Quote
View Public Profile
 
Old 05-04-2007, 03:49 AM Re: Ad Rotator?
evilgenius's Avatar
Experienced Talker

Posts: 43
Location: Pakistan
I've given it the full path, www.sitename.com/......./ads.txt
its working now.

Jita many thanksf or the script.
__________________
Super Evil Genius || Koolspot || Fun Center
evilgenius is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Ad Rotator?
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML