Ajax Poll Script
URL Shortening Script
Ajax Likes Script
Text Ad Script
Fade-In Slideshow
Address Book Script
Form2DB
Lead Follow-Up Database Script
php Infinite Scroll
Ajax Poll Admin
PayPal IPN + eProduct Delivery Script
AdFreely -Ad Board Script-

AdFreely - Ad Board Script

This is a free Ad Board script written in PHP with MySQL backend. This script allows visitors to post their ads freely in cells that an administrator placed on web pages. The adminstrator can place cells on any web pages. Also the administrator can register, edit, delete cells from the admin panel.

Ver 2.06 ( Security patch applied )
AF201-206

Download

License

GPL

Demo

* The demo is reset every 24 hours

Installation Guide

Quick Feedback to Tom, the developer

If you have any suggestions or find any problems, please leave them as a comment down below. we'd appreciate the feedback!

Name:
Subject:
Comment:
Email: (Will not appear online)
Posted by Cristian Sosa
2016-06-10

Hi, thnxs 4 the script. Looks very, very good. I test the script now in my website.

Much, much thnxs 4 the free script :)

bless :)
Posted by Tom
2016-06-11

You are welcome!
Posted by Adrian
2016-03-11

Can you integrate paypay as payment gateway and credit card ?
Thi is what i was looking for and i need it with payments gateways.

Please give me an answer
Posted by Tom
2016-03-11

Hi, I think that's an interesting idea. I hope I have some chance to integrate it to the script in the future! Thank you!!
Posted by John
2015-06-28

Hello,
Is there away to have the end user(s) to pay for there ad that there posting?
paying with paypal..
Posted by Tom
2015-06-29

>Is there away to have the end user(s) to pay for there ad that there posting?

Sorry, it doesn't have the feature.
Posted by George
2015-03-23

Looks like a web host security restriction on my web host:

http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=625

That means that your application/site has ... Read More
Posted by George
2015-03-23

Hello there Tom,

Thank you for this script. I am trying it out and have it running at the moment at www - sprring.co /30sa

However, I am getting an error when trying to insert an ad.

Thanks ... Read More
Posted by Tom
2015-03-26

Well, it doesn't look like your site is operating normally.
I don't think this is an script issue. There should be something
wrong in the web server. Are you using a free web hosting service?
Posted by Jason Millerchip
2015-02-25

ment to ask in last message is it php 5 compatable.

Thanks

Jason

www.speedytrafficexchange.com
Posted by Tom
2015-03-03

>is it php 5 compatable.

Yes.
Posted by Jason Millerchip
2015-02-25

Just a quick question do i need a premium domain name for this if it doesnt ill fit it on a sub domain.Is what i mean is does the site use refferal urls if so ill fit it on a premium domain ... Read More
Posted by Tom
2015-03-03

>do i need a premium domain name for this if it doesnt ill fit it on a sub domain.

Any domain is fine!
Posted by Teacher
2015-01-03

Hi Tom;

Firstly, thank you for your great work!

Also, you are one of the nicest Programmers on the internet, who actually responds to your customers.

Lastly, I just wanted to ....

Clarify, Can ... Read More
Posted by Tom
2015-01-06

Ha ha, I guess I should use Microsoft spelling checker more often. Thanks for the correction!
Posted by hk
2014-12-04

very good, thanks
Posted by Tom
2014-12-12

You are welcome : )
Posted by Massimo
2014-10-23

good Morning
I wanted to thank you for the work on ottimpo AdFrendly
The installation went proper performance but I can not put the script in your pages.
We have the anner A001 that tells me to copy ... Read More
Posted by Tom
2014-10-30

Hi,

>We have the anner A001 that tells me to copy the script, but I can not find in the blog wordppress < head>

If you can not find the <head> section, please enter the code in the <body>section. ... Read More
Posted by Eijaz
2014-07-07

Hi Tom,

Thanks for your professional reply.

Since I’m on a shared hosting environment, I won't have access to the php.ini to make these changes. Can I achieve this using an .htaccess file.

If ... Read More
Posted by Tom
2014-07-08

> Can I achieve this using an .htaccess file.

Yes if your hosting company allows you to do so. It really depends on your server. On some web servers, you can use .htaccess. On some servers, you can ... Read More
Posted by Eijaz
2014-07-06

Hi,

I would like to change the maximum upload file size to 10M.
I found the following: web/config/config.ad_pic.inc.php
Is it legitimate to change from:

define( 'FILEUP_MAX_FILESIZE', 5 * 1000 * ... Read More
Posted by Tom
2014-07-07

>I found the following: web/config/config.ad_pic.inc.php Is it legitimate to change

Yes, but this is not the only one that puts a maxmum limit on the filesize to upload. In php.ini, there are three ... Read More
Posted by hello
2014-06-13

ok Tom,
please try to find an ad rotator for me.

thanks.
L.James
Posted by Tom
2014-06-14

Well, I don't know what kind of ad rotator you are looking for. Did you try googling it? You would see a lot of products there. Some have a lot of features but a high learning curve, others are ... Read More
Posted by hello
2014-06-12

Hello,
How are you doing? am called James, i have created a small social community network with oxwall software but it doesnot have a proper ad plugin, can you please help me if you can get me a ... Read More
Posted by Tom
2014-06-13

>hope for your positive reply.

I'll try...but then I just don't have script that rotates banners. Unless there are special requirements for displaying banner, you can use pre-written scripts ... Read More
Posted by Rahul
2014-06-12

I am a Web Designer and i want to make website like OLX or Craigslist.com.
is it possible by using this script
Posted by Tom
2014-06-12

Hi Rahul, AdFreely is for adding a quick ad feature to existing websites, not really meant for making a stand-alone classified website like craigslist.com.
Posted by Benny
2014-06-08

hi tom
how to recovery forgot pasword
to login as staff


Thanks

benny
Posted by Tom
2014-06-09

Hi Benny,
If you lost the administrator's password, you can reset it to "password" To do so, copy the code below, save it as reset.php in the web folder.
... Read More
Posted by Mike
2014-06-04

Hi Tom,

I would like to thank you for your professional support.
The function below that you provided me, works well in the program.

Thanks again,
Posted by Tom
2014-06-04

You are welcome :)
Posted by Mike
2014-06-03

correction for previous comment.

instead:
When echo $rs['ad_type'] ,I get: S1001

should be:
When echo $rs['color'] ,I get: S1001

sorry...
Posted by Tom
2014-06-03

You can use this function to get the corresponding value of a particular key.
... Read More
Posted by Mike
2014-06-03

Hi Tom,

Thanks for returning to me.
In regards to your answer below, no error message appears.

The following is my dropdown listbox:
web/config/config.selection.inc.php

define( 'SEL_AD_COLOR', " ... Read More
Posted by Mike
2014-06-02

Hi Tom,

Great script, perfect code!

I have added two keys to ‘AdFreely’ script.
‘age’ is Integer (CVInteger) and ‘color’ is Selection-Box (CVSelection).
Both are functioning well in ... Read More
Posted by Tom
2014-06-03

Tom@@@2189
>Data from ‘color’ is not showing up on ‘ad’ in visitor page (it shows ‘0’).

If it shows up in the admin panel, then it should show up in the visitor page, too.
Maybe typo? ... Read More
Posted by David
2014-05-28

Thanks a lot for your answer!
Posted by Tom
2014-05-29

You are welcome!
Posted by David
2014-05-27

Hi Tom,

Thanks again for your answer regarding ‘mysqli’.

Based on your previous reply: "CMySQL.inc.php" is the only file where you used "mysql_*" extension. Are there any other functions that I ... Read More
Posted by Tom
2014-05-28

>Are there any other functions that I need to replace (could you please advise where)?

No, you don't need to but just relpacing the functions may not be enough. In some occasions, you may have to ... Read More
Posted by David
2014-05-26

Hi Tom,

Thank you for your reply regarding ‘mysqli’ extension.

Please advise what you mean by ‘port the file’.
Do I need to make any change to the specified command ... Read More
Posted by Tom
2014-05-27

> by ‘port the file’.

I should've said convert, instead. I meant replacing all "mysql_*" functions with mysqli functions. Sometimes, it may not be simple replacement procedure and requires you ... Read More
Posted by David
2014-05-25

Hi Tom,

I've just started using your scripts, working great!

As of PHP 5.5.0 ‘mysql_real_escape_string’ and the mysql extension are deprecated. I found that in your ‘Contact Us Backend’, ... Read More
Posted by Tom
2014-05-26

Hi David,

>web/codelib/sys/CMySQL.inc.php

If I remember correctly, "CMySQL.inc.php" is the only file where I used "mysql_*" extension. So basically, all you need to do is port the file. It's still ... Read More
Posted by Charles
2014-05-22

I checked again its 5.4

http://screencast.com/t/e5S3czVo1o

Posted by Tom
2014-05-23

First, find the error messages the script is outputing. In some hostgator's website, web servers save error messages as a text file named "error" in the same folder as the executed script resides. In ... Read More
Posted by Charles Eger
2014-05-21

I checked with coustmer support and they said 5.4
Posted by Tom
2014-05-21

Probably, php5.4 is spitting out an error message like "Warning:this command will be obsolote in the next version...etc" You need to suppress the error message like suhas did. The script does ... Read More
Posted by Charles
2014-05-20

I have the same error as suhas

Warning: Illegal string offset 'state' in

http://my_website.info/web/codelib/asc/CVFileUpload.inc.php on line 91

I have whatever hostgator uses

Charles
Posted by Tom
2014-05-20

Hi Charles,

Would you tell me your php version? This error message started showing recently. I suspect it has something to do with a new PHP version or configuration.
Posted by Mike
2014-05-15

Hi Tom,

Thank very much for your answer and for the link ("Image format support"), the problem was really that 'Google Chrome' doesn't support 'tiff' format.

Mike
Posted by Tom
2014-05-16

You are welcome :)
Posted by Mike
2014-05-15

Hi Tom,

Great script!

I try to upload 'tif' images by adding this extension in:
config.ad_pic.inc.php

I don't get error message, but the image doesn't showing up.

Any idea how can I solve this ... Read More
Posted by Tom
2014-05-15

Hi Mike,
Maybe, your browser won't support the tiff format. Please check the "Image format support" section of this page.

http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support ... Read More
Posted by mandy
2014-05-11

how can i have advertisment in between
Posted by Tom
2014-05-12

Hi mandy,

>how can i have advertisment in between

I'm sorry I didn't get what you meant by "in between" Would you give me an example?
Posted by Suhas
2014-05-03

Hi Tom,
I got it to work, it just needed the error reporting to be turned off
Thanks for your continued support to the users and the script works like a charm!!
Posted by Tom
2014-05-05

OK!
Posted by Suhas
2014-05-01

Hi Tom,
I,m getting ths warning when I click the 'Your Ad here' tab

Warning: Illegal string offset 'state' in C:\wamp\www\web\codelib\asc\CVFileUpload.inc.php on line 91

Please help me out!!
Posted by Tom
2014-05-02

Hi Suhas,

>Warning: Illegal string offset 'state'

OK, this is new to me. May I ask your PHP version and web server type(IIS or apache)?
Posted by Arkadi
2014-04-22

Hello!
Your script is really very good and intuitive.
However one thing: You could add the option of putting an image from an external source? (eg "Image = http://server.com/image.jpg"). I ask ... Read More
Posted by Tom
2014-04-22

Thanks for your suggestion!
Posted by Joseph
2014-04-05

I got this error and don't know why? I have a full permission to the pic folder [Image] Invalid file format
Posted by Tom
2014-04-07

Hi Joesph,

It means that php can't decode the image file. Probably, the file is corrupted or not fully compliant to the standard. You may be able to load it in an image editing software like ... Read More
Posted by Johnny
2014-03-12

Hi, great script!

I was wondering if it would be easy enough to just list the ads down a page instead of using cells.

I'd like to incorporate it into an existing web page.

Good job! Thanks.
Posted by Tom
2014-03-13

Hi Johnny,

>I was wondering if it would be easy enough to just list the ads down a page instead of using cells.

Probably, it won't take much time to modify it that way. Go ahead and try!
Posted by Abubakar Jibril
2014-01-25

Hi there!, I would like to try this adfreely ad board script, but one thing l love to know is if it could be used as a stand alone installation. Thanks for your great work.
Posted by Tom
2014-01-25

Hi Abubakar,

>if it could be used as a stand alone installation.

Yes, that's right!
Posted by Remy
2013-11-10

Hello Tom,

Thanks for developing such a great php script. I have a question,

Can i install URL shortening script on adpages subfolder using the same database (adfreely)? If yes, how? and if no, ... Read More
Posted by Tom
2013-11-10

So, you want to merge "adfreely" and "URL shortening script" into one? If you do, name collisions will occur because both use a lot of same function & variable names. The easiest way to solve name ... Read More