GB Script Home

Free GB Top-Directory Script

What does this script do

GB Top-Directory is the system for traffic exchange and (or) link exchange. You can use it for creation of TopList, or Directory, or Links Page for your site, or even complex resource for traffic-link exchange like TopList+Directory+CJ. You can easily integrate the script in your php-portal.

A few things you'll want to know about the script

TopList and Directory site types

The script will be optimized after installation for using as TopList or Directory. You can change site type anytime in settings and even combine TopList and Directory functions as you need.

Integration with existing site

GB Top-Directory is script for independent sites, but you can also integrate it in your existing site. There are two ways: installing in subdirectory and in main directory.

Subdirectory installation is simplest choice for independent Toplist(Directory). You don't need to do any changes in settings, but you can count traffic in this subdirectory only. Your must have some traffic on index page of your directory(toplist) which will start script spiders and automatic updating of lists. This mode is good choice for independent TopLists and simple links pages without regular backlink&backwards checkers.

Installation in main directory is highly recommended for any sites, especially if your need to include the lists in any pages or to count incoming traffic from any page of your site or if your need regular backlink&backwards checkers.

Main directory installation - method 1: Using of php function include in templates.
You need to rename existing index page of your site in 'page.html' (or any other name, but not index) and insert into template of main page (header or footer) this html-code:


Main directory installation - method 2: The best, but for php-sites only.
Rename index.php file of the script in 'top.php' (or any other name, but not index) and insert this code into index.php page of your existing site (code must be placed in the beginning of index.php page):

This code will be track incoming hits. You can use this code at any php-page for hits tracking. And now you can integrate the lists in any php-page of your site using include function. This example code will include the list additional.html:

CJ Functions

GB Top-Directory include CJ-functions: Member by Blind Links, Permanent Links, Groups, Default members (auxout+noref, nocookie and direct), Sending hits to content, First click to content. You can find description of these functions in GB CJ Docs

WAP

To create WAP-site you need copy all files from folder 'alternative-templates/WAP' into folder 'templates' and use this settings:
WAP - on
SE Friendly - left blank
SE Friendly for Categories - left blank
Extension of Pages - php
Use Site ID - on

Templates

The templates makes the script easy to integrate into your site. You can upload/edit the template files using web-based editor in the admin script. These files are simple HTML files pieces of text surrounded by #%%#. Anything surrounded by #%%# will be inserted by the script.

You can use these values in the Main templates only:
#%CLICKS%#
#%HITS_IN%#
#%HITS_OUT%#
#%TITLE%#
#%DESCRIPTION%#
#%CATEGORY%#
#%FAKE_URL%#
#%TYPE%#
#%OUT_URL%#
#%DIRECT_URL%#
#%RANK%#
#%FONT_SIZE%#
#%ROW_COLOR%#
#%BANNER%#
#%NEW%#

You can use these values in the Header and Footer templates only:
#%SITE_NAME%#
#%CAT_NAME%#
#%MEMBERS%#
#%LAST_RERANK%#
#%ALL_CAT%#
#%MENU_START%#
#%MENU_END%#

You can found examples in the folders templates and alternative-templates.

Admin Page - Members table

Check Box: To mass edit/delete members.

Edit Member: Click the link to edit member details. 'Active' - script will send visitors to this member right now. 'New' - just added new member - click the link to disable 'new' mark or check member and click button 'Unmark'. 'Dead' - member has not sent any visitor.

Stats: Click the link to view hourly stats and referers stats for member.

Site Name: member name and URL.

Current Hour: Stats for current hour.

In: Unique incoming visitors from this member.

RIn: Raw in - all incoming visitors from this member, unique and nonunique.

Out: Unique outgoing visitors to this member.

Click: Number of clicks by the visitors who came from this member to another members. 'Click' does not include 'direct' content clicks.

24 Hours: Stats for last 24 hours.

Dir: Clicks to direct links (content) with parameter 'url='

Current Hour + 24 Hours: Summary stats. Is used for calculating main Member parameters.

Bad: Percent of clicks from proxy, robots, with wrong referer, wrong cookie etc.

BadL: Percent of visitors with bad browser languages or bad countries.

Prod: Productivity - the medium amount of clicks one unique visitor from this member does. Productiviti = Click/In.

Ratio: How much unique visitors coming from this member per each visitor sent to him. Ratio = In/Out.

Dev: Statistical Deviation is main anticheat parameter. Deviation is counted up on the basis of the statistical analysis of the links, which was clicked by traffic from each member, and comparison it with behaviour of the typical visitor of your site. Also you can manually check up this comparison in hourly and links logs of each member. There are no ways to deceive this protection, because this parameter is unique for each site, and behaviour of the real visitor is unpredictable and cannot be simulated. High deviation (over 200%) = cheat. For honour members usually is lower 100%. The short-term jumps of deviation for members with the small traffic are admitted.

Effect: Main parameter for each member. The medium amount of clicks per each outgoing visitor. Must be over 100% for boost your traffic. Effect = Click/Out.

Fin: Finally factor for this member. Members with larger Fin will get more traffic through blind links right now. Fin = Effect * K, where K include limits and ratios (Bad, BadL etc.)

Group: Group (category) name.

Group: Group (category) name.

Type: Type (subcategory) name.

Title: Title of site.

Description: Description of site.

LB: Link Back Checker results. (LB >=0) - link is found (value=days before the following checking). (LB =-1) - time of checking. (-10< LB <-1) - link is not found but script will try to check next day. (LB <= -10) - link is not found.

BW: Amount of Google's backward links for Link Back Page.


Settings Page

First Click URL for direct links: The first click to direct(content) link with parameter url= will be redirected to given in this field URL.

Categories: List of categories(groups) without spaces. Sample: music,games,dating,finance,realty,any-other

Affiliate ID: For our partners only. List of banned chars: These chars will be deleted from titles and descriptions.

Font Sizes for Main Page (Categories Pages): You can set up font sizes for each positions in the main list (or categories). Sample: 50-4,100-3,500-2 - font 4 for positions 1-50, font 3 for positions 51-100 and font 2 for positions 101-500.

Link Back HTML for Checker: Spider will try to find this code in Link Back Page for each member. Place here URL of your site or even full HTML code of your link. Sample: http://mysite.com Left blank to disable checker.

SE Friendly : Amount of the first members with direct links and traffic counting. This sites will get PR from you and javascript will be used for traffic counting. Sample: 5 - the first 5 members will have direct links.

Rate by: You can sort the list by clicks (recommended) or by hits in.

Site types: List of subcategory field, which you can use in templates as additional info for each site. Samle: free,pay,directory,toplist

Minimum of backwards to submit: If amount of backwards for Back Link Page less than this value, then submission will be rejected. Left blank to disable checking.

"New" icon HTML: New sites can be marked in the list. Place here HTML code for this marker. Do not use quotes.
Sample 1: Sample 2:

Accepted Languages (Countries): List of 'good' browser languages (countries), which will be counted with ratio=1. All other 'bad' languages (countries) will be counted with lower ratio. Left blank to disable filtering.

Split List: List of positions where the list will be split to pages. Sample: 100 200 300 400

Break List: List of positions where breakers code will be inserted into pages.

Ratio for Bad Languages or Countries: Clicks from users with bad languages (countries) will be counted with this lower ratio. Fin ~ GoodLangClicks + BadLangClicks * BadLangRatio

Soft Bad Clicks Limit: All bad clicks over limit will not be counted by Member algorithm and member will not get any outs for this clicks. Recommended values 0.3 - 0.4 , can be some higher than summary 'Bad' value for all members.

Min Listed Sites: Minimal amount of sites, which be listed, even if this sites are dead. Left blank to disable.

Max Counted Clicks for unique visitor: Clicks from the unique visitor exceeding this value will be counted as 'Bad clicks'.

Min Clicks to list: Minimal amount of clicks for site to be listed. Left blank to no limit.

Amount of Reranks per stats cycle: Full Cycle of TopList=Amount of Reranks * Rerank Time. Max value 30.

Rerank Time: One period in stats (in seconds). After each rerank stats will recalculated.
Sample 1: Toplist with daily cycle and hourly reranks - Rerank Time = 3600 , Amount of Reranks = 24 .
Sample 2: Toplist with weekly cycle and daily reranks - Rerank Time = 86400 , Amount of Reranks = 7 .
Sample 3: Toplist with weekly cycle and reranks each 6 hours - Rerank Time = 21600 , Amount of Reranks = 28 .
Sample 4: Toplist with monthly cycle and daily reranks - Rerank Time = 86400 , Amount of Reranks = 30 .

Banners to Show: Amount of the first sites with banners.

Frequent List Update (5 minutes): The list will regenerate each 5 minutes. This function is not recommended because = a lot of resources and low reliability.

Extension of Pages (html or php): Extension of pages with lists.

Member is Dead after Days: If member do not send hits this amount of days or more, then it will be marked as 'dead'.

Not submit sites without link back: Reject submitted sites without your link.

Lifetime of "New" icon: New traders will be marked. In seconds.

Use Fake URL: Fake URL will be shown in status line.

Hide Referred Site Link: Link to referred site will be hidden in the list to prevent none-unique traffic.

Use Banners: User can submit banner.

GB Rules on submit page: Show standard info with your email and ICQ on submit page.

Show ICQ Status: Show ICQ Status icon for each members on admin page.

Trace IP: Trace all clicks by IP. Without this option clicks will be tracked by cookies.

Use Site ID: With Site ID you can count traffic from pop-ups. Without this option script will be define sites by refered domains.

Stats on submit page: You can display overall stats for your CJ on webmasters page

Mail about new Members: E-mail will be sent to you, when new member added.

Mail global stats: You will get e-mail with daily stats after each stats cycle.

Scan new pages for banned words: Script will scan pages of new members for blacklisted words

Compress Face HTML: Your main page will be downloaded by browser 2-10 times faster. Be careful! All free hosters and even some pay hosters disable compress function. Press 'Update' button after enabling of compressing and check up your main page.

Lowercase new sites: Titles and descriptions of submitted sites will be lowercased.

Send nonunique to main page: Nonunique traffic will be always redirected to main page.

Country Tracking: You can allow filtering of traffic by countries, if your server have GeoIP module. Default value allow tracking by browser languages.

Send back requests from blocked domains: Nightmare for 'img src' cheaters etc. All requests from blocked domains will be returned to this domains. Cheaters will cheat itself.

Redirect to html: Incoming traffic will be redirected from entrance php-pages to list. Default - lists will be included in entrance pages. This settings is not recommended, because some functions will not work.

Send hits to categories pages: Incoming traffic will be sent to category of site, from which the visitor has come.

Not List Dead Members without link back: Why you list sites, which do not send any traffic and even do not have your link so long.

Google backwards checker: Activate checker.

Update list when member added: Regeneration of the list after each submission.

ICQ Submit: Allow ICQ field in submit form.

Visible Columns in Admin Table: Select parameters which you need to see.


BlackList & Blocked Domains

Place here your favourite cheaters.