User's manual
|
Variable | Description | Value (recommended) |
$script_path='http://localhost/obie'; | Path to your obieAD on your server | |
$adsfile='inc/database.db'; | Path to database | Don't change |
$submitfile='inc/submiter_database.db'; | Path to submiter database | Don't change |
$upload_banner=1; | Users can upload thair own banner image | 1: ON; 0: OFF |
$maxadsize=10240; | Maximum size of user's banner image | 10240 bytes = 1KB |
$max=100; | Maximum times the image of banner is error before deleting | 100 |
$yesmail=1; | Send a mail after adding to database | 1: ON; 0: OFF |
$readterm=1; | New user read this file before signing up | 1: ON; 0: OFF |
$termcontent='inc/term.htm'; | Path to "term of service" file | |
$admin_username='1'; | Admin Username | |
$admin_password='1'; | Admin Password | |
$admin_email='admin@admin.com'; | Admin email address | |
$entry_on_page=20 | Max entries will be showed on a page | 20 |
$admin_website='http://localhost/'; | Admin wesite address | |
$background_color='white' | Background color of icons bar | Your BODY bgcolor |
$w=100; | Width of image banner | |
$h=40; | Height of image banner | |
$style=1; | obieAD style (please view table 2 below) | 1 or 2 or 3 |
$auto_error=1; | Auto detect bad image mode (only for style 1) |
1: ON; 0: OFF |
$numicons=3; | Number of images will showing in browser (only for style 2 or 3) |
TABLE 2 : obieAD STYLE
Style 1 Single big image |
![]() |
Style 2 Multi images |
![]() |
Style 3 Multi images |
![]() |
A . Admin control panel
>>Go to: admin.php
Default username is "admin" and default password is "admin". After your first loging in, you may change your own username/password by click the link "Edit config.php", scroll down, find the line : "$admin_username" and "$admin_password" and change them.
After loging in control panel, you will show the menu on the left.
Command | Description |
Database manager | Open your database management. You can EDIT/MOVE to submiter database/DELETE banners |
Submiter DB management | Open your submiter database management. You can
EDIT/ADD to database/DELETE banners. It's the DB which stores new user's info after they sign up. |
Generete code | IF you change ONLY the style of obieAD or/and the size of the banner or/and the number of icons (with style 2 or 3) in configuration file config.php, you must generate the code again |
Edit config.php file | Using obiePAD (the text editor online) to edit your configuration file. You don't need opening the FTP |
Edit term of service file | Editing your "term of service" file. You can using
HTML code with this file This file stored in : inc/term.htm |
Edit welcome file (index.php) | obieAD doesn't need index.php. You can edit, change or delete it if you want |
Backup your data | Create archive of config.php, database and submiter database file. You can save it on your PC and restore your AD service if the server is downed |
Manual | Read online manual. |
Test | Admin can test your obieAD functions |
You can create link and place it to anywhere on your webpage.
Eg: <a href="func.php?action=showall">View
all members</a>
To showing the AD banner in your webpages, choose one of two ways below:
a . Typical (recommended) : Add this code into HTML webpages
Works with all types. Eg: *.html, *.htm, *.shtml, *.php, *.phtml, *.php3, *.asp, *.cgi ....
It's very simple and easy, I 'm using this way for my AD banners<script src="SERVER_PATH/obiead.js"></script>
Note: The "include" function at header of the file : ad.php must be : include "config.php";
b . Advanced : Include obieAD to PHP webpages
Step one : open the file ad.php (as a text editor, Notepad is example) and replace the line
include "config.php";
as the line
include "SERVER_PATH/config.php";Step two : add this line to PHP pages : <? include "SERVER_PATH/ad.php"; ?>
c . NOTES : You can have the SERVER_PATH in admin control panel after generating the code.
You may choose only ONE of two ways.
If you choose Advanced, you do not need to generate code after changes
1 . Q: I've included obiead.js in my webpage, but displayed "Can not find server" ?
1 . A : You should check the $script_path in config.php, then go to admin control panel
and click the link "Generator code"
If you have a problem of using or BUGS of obieAD, please drop me a line
at :
obie4web@yahoo.com.Thank you.
Database structure:
Name | Site name | User's email | User's URL | Banner URI | Username | Password | Number of clicks | Number of errors |
Types of variables | String | String | String | String | String | String | Integer | Integer |
Important : obieAD have two databases whose name ending is ".db". The Database and Submiter Database can be edited by another Text editor. obieAD must start with the first line:
root|root|root|root|root|root|root|0|
Please do not remove this
line.
How does obieAD work ?
Copyrights
obieAD is flat-file smart banners advertising management. It requires UNIX server that supports PHP (PHP4 is recommended). obieAD do not require any SQL database server.
This program was written by Minh Nguyen Duong from Vietnam.
This product is FREE, open-source and can be modified and redistributed under the condition that the copyright and information above stays intact and with the script.
More info, please visit GNU : http://www.gnu.org
obieAD version 1.2
Copyright (c) 2003 Obie.
All right reserved.