New To PHP, ad rotator

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

New To PHP, ad rotator

Post by Vegan »

I was considering using PHP to implement an ad rotator for my my phpBB forum. At present I have static ads and wanted to make the offerings more attractive. I was pondering placing ad assets into MySQL to pick based on various criteria such as who has been making the most coin etc. I could also use the old JavaScript idea of a random item from an array of ad code strings. Any suggestions?
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: New To PHP, ad rotator

Post by onion2k »

PHP and MySQL is a better approach than Javascript, but either will work fine.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: New To PHP, ad rotator

Post by Vegan »

Do you have any code to stuff new ads into MySQL and some code to select ads that can not show more than one of each in a given page etc.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: New To PHP, ad rotator

Post by onion2k »

Vegan wrote:Do you have any code to stuff new ads into MySQL and some code to select ads that can not show more than one of each in a given page etc.
If you want someone to write this application for you then I'll move this folder to the volunteer work folder (or Job Hunt if you're willing to pay...) ... otherwise please stick to discussing the design of the application or the code you've already written.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: New To PHP, ad rotator

Post by Vegan »

I am sure such code would be popular for a large number of web operators, so sure, toss it over there.

I am new to Linux etc having come from the Windows platform where I cam very skilled.

Posting the solution here, in this forum would make it available for everyone. Everyone seems to like free.

Hmmm, this forum looks vaguely like mine, but mine is unmodified fresh out of the box. It was easy to install without any help in under 5 minutes. Took some help though to understand how to carve up the forum into separate vhosts.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: New To PHP, ad rotator

Post by onion2k »

Moved to Volunteer Work as requested.
Post Reply