Ajax Poll Script
Ajax Poll Admin
Ajax Poll DX
Address Book Script
Form2DB
PayPal IPN + eProduct Delivery Script
Ajax Likes-Dislikes Counter
Text Ad Script
Lead Follow-Up Database Script
Ajax ContactUs Script
URL Shortening Script
AdFreely -Ad Board Script-
Protect HTML Script
Fade-In Slideshow Script

Text Ad Script

This is a simple & straight-forward text ad script. This script was originally created to administrate the same copies of text/html in multiple web sites from a centralized administration area. The format of ads is free-format style. You can place any text and html code. If you want to display/administrate the same ads or same text/html snippets over multiple web sites, this script will greatly make your life easier.

Ver 1.05
TA201-105

Download

License

GPL

Demo


Installation Guide

You can also enter javascript as well as text & html. For example, the following is a simple javascript that rotates pictures every three seconds.

<img id='ta_pic'/>
<script>
(function(){

// Rotation Interval(msec)
var interval = 3000;

// pic ID
var pic_id = "ta_pic";

// pic URL list
var pics = [
"http://www.mydomain.com/(path-to-pic1)",
"http://www.mydomain.com/(path-to-pic2)",
"http://www.mydomain.com/(path-to-pic3)"
];

var pic_idx = 0;
var pic_img = document.getElementById(pic_id); 
function rotate_pic(){
	if ( pic_idx == pics.length ) { pic_idx = 0; }
	var src = pics[pic_idx];
	pic_img.setAttribute("src", src); 
	pic_idx++;
	setTimeout( rotate_pic, interval );
}
rotate_pic();
}());
</script>

Tuesday, August 6, 2013

Text Ad Script: E_STRICT Disabled for PHP 5.4

In php 5.4, E_STRICT became part of E_ALL. To prevent the script from showing E_STRICT error in php 5.4, The error reporting settings of the script has been modified. This change will not affect any php versions prior to 5.4.

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:
Comment:
nur
2014-03-28
can you help me?thats for rotates the pictures, i just want to ask,i want rotate image from database..can you teach me how to call from database?
Tom
2014-03-29
Hi, Sorry, Text Ad doesn't store images. what you saw on the page is just an example for running javascript in an ad.
Emre
2014-02-25
Simple and Perfect running. thanks you for free share.
i will wait you improve this script etc: one link multiple advertise(like adsense) :)
Tom
2014-02-26
Hi, Thanks for your suggestion!
Tiffany
2014-02-19
Hi Tom,
I'm implementing your AdFreely Board script- i think it's great, and installation is super simple - thanks for this! I have a question about your Text-Ad Script - does it work in the same fashion as the AdFreely? Whereas visitors can add their own text-ads? I was originally looking for a text ad script that would allow visitors to add on their own ads and came across AdFreely - which is the concept i was looking for, but without the text ad capability. I'd really like to offer both on my site.
Thanks!!
Tom
2014-02-20
Hi Tiffany,

> does it work in the same fashion as the AdFreely?

No, the purpose is totally different. Text-Ad Script is a tool for web administrators. It allows you to keep track of html snippets in a central place. It never offers visitors to post their ads.
Ed again
2013-11-27
works like a charm using my other hosting acct. The issue is at my end for sure.
Thanks again for your time,
Ed
Tom
2013-11-27
All right!
Ed F
2013-11-27
My log files don't show any errors.
Is this the only page that needs to be edited for installation?
web/config/config.db.inc.php

I am installing on another web server to see if anything changes.
I will let you know.
Thanks,
Ed
Tom
2013-11-27
>Is this the only page that needs to be edited for >installation?
>web/config/config.db.inc.php

Yes.

>I am installing on another web server to see if anything changes.

We'll see!
Ed F
2013-11-27
Thanks for the reply.
All of my other scripts show errors when they occur so they are set to display.
If there were any errors, They would be displayed.
When I view the page source code, there is nothing but a # 1.
I will check my log files just to be sure.
Ed
Tom
2013-11-27
Well, in php.ini, you can define which types of errors should be outputted to browser, so error reporting is not a simple on and off switch.
Ed Forshaw
2013-11-27
Hi,
I just installed your script without issue but get a blank page when going to staff/index.php. Could this be a file permission issue?
Tom
2013-11-27
Hi Ed,

You got some errors but it was not shown in your browser. The reason why you got a blank page is because your web server is configured not to show error messages in the browser. Most likely, the error messages were logged into a log file. The location of the log file depends on the configuration of your web server, so I can't tell you where. Please ask your web administrator about how to check error logs. You need to see the error message!
Silviu
2013-10-08
I have not expressed correctly. I wanted to insert javascript code when creating advertisements. but I solved. Now if I insert css code "<style type="text/css">" is loaded in backend/admin panel
Tom
2013-10-08
OK!
Silviu
2013-10-08
Hi, I want to use as ads a javascript code, I tryed to create a new add and in edit area I paste the code, but seems that not working. how can I display javascript ads using this Text Ad Script ?
Tom
2013-10-08
Hi, probably you didn't customize image path in the code:

"http://www.mydomain.com/(path-to-pic1)",
"http://www.mydomain.com/(path-to-pic2)",
"http://www.mydomain.com/(path-to-pic3)"