Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Geek Advertising Banner system RC1 Details »»
Geek Advertising Banner system RC1
Version: 1.00, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-10-2005 Last Update: Never Installs: 118
Is in Beta Stage  
No support by the author.

HowdA All.

From the makers of Hydrogen comes the latest mack - GAB (Geek Advertising Banners).

This has come about by needing an advertising system that no other hack seemed to totally fulfill. Personally - I really didnt want to burden myself with supporting another hack - but I felt it was significantly better than other hack systems out there so I thought many would be able to benefit from it.

Whats so freaking cool about it?

1- use flash, normal, text based (google adsense) or rotating banners
2- Decide which scripts run the banners
3- Define which forums run the banners
4- define which usergroups can turn off the banners
5- Make ads stop at x amount of hits
6- Make ads stop at x amount of views
7- Make ads start/stop at certain times
8- track views and/or hits
9- Wipes your bum

Why am I releasing this now? It seems to be hip and trendy to release Banner hacks. In all reality - this has been a very long work in progress that is finally rounding the finsihing stages. The current RC pacakge is considered complete except for the show stats segment (its recording stats, but you cant browse them easily yet).

LIke with any hack (especially a Beta) back up you DB and files needing change (global.php,admincp/index.php).

Known issues:
  • Flash ads can not appear on same page as a rotating banner ad.
  • After installing for the first time, you will most likely need to edit a phrase (any phrase) and click save to rebuild phrases
  • Flash banners hide drop down menus!!! Be careful where you put them or dont use them!
Basic install instructions:
  • Upload all files to relevant locations
  • chmod the gab and gish folders to 777 (or change the owner of the folders to whatever account your PHP process runs under).
  • Run the gab_install.php file in your admincp folder.
  • Follow the steps.
  • On the file changes - pay close attention to see if certain changes couldnt be made. If any changes could not be made, you need to manually make those changes.
  • When complete, move changed files from gish/gab/rc1.0 to their respective locations
  • Ad a new cron job to run daily (file: GAB_cron_daily.php)
  • Edit each gab category to include the forums you want the ads to appear in.
  • Ad $GAB_ads[x] to your templates where ever you want ads to appear (x represents the ad number depending on how many ads are set to run on that script. $GAB_ads[0] is the first ad block, $GAB_ads[1] would be the second, etc...)
  • Read The Freaking README!!!!!!!
Quick Upgrade instructions

For users of GAB Beta 2, uninstall it and then install this version. In all reality, you could just revert the file changes and delete the GAB_ tables from yur DB (heck, you dont even need to do that).

To upgrade from RC1.5 to RC1.6, just replace existing files with the latest from the downloaded package and run the template portion of the installer (you can skip the rest of the install steps). You may have to revert your GUSH_main and GUSH_ad_row

Donations

I have never asked for donations for any of the macks I have done - however since I have spent well over 60 hours coding this - I thought I would stick my neck out there. If you like my mack, it brings you some money and you want to keep my fridge stocked with beer and Cheetos, then feel free to drop some cash in my paypal account: geek@thenailgeek.com
If youre having difficulty keeping beer in the fridge yourself - fill yours before you fill mine.
If you think the mack sucks, or youre just a tight git then please dont bother

nJoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #272  
Old 05-10-2005, 03:32 PM
fogua fogua is offline
 
Join Date: May 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek
That test is saying that
You dont have a valid script to test (ie there is no banner specified for that script)

Make sure you have valid scripts ticked in the settings and a banner that is also ticked for those scripts

Please Geek Sorry
But Im desperate couse is the only thing missing before going online. Can you go to my admin and check its ok
I allready check and re ckeck and dont seem to find the problem

Thanks 100000
Reply With Quote
  #273  
Old 05-10-2005, 03:48 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fogua
Please Geek Sorry
But Im desperate couse is the only thing missing before going online. Can you go to my admin and check its ok
I allready check and re ckeck and dont seem to find the problem

Thanks 100000
There were a few problems.
1- Admin usergroup had the option of turning off ads if the bio was blank.
2- No $GAB_ad1 appeared in your templates (so no ad would appear)
3- Only forumhome was ticked - I did forumdisplay for you.
Reply With Quote
  #274  
Old 05-10-2005, 04:36 PM
fogua fogua is offline
 
Join Date: May 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek
There were a few problems.
1- Admin usergroup had the option of turning off ads if the bio was blank.
2- No $GAB_ad1 appeared in your templates (so no ad would appear)
3- Only forumhome was ticked - I did forumdisplay for you.

Ok thanks
so the 2 point is the one missing
How do I add $GAB_ad1 and on what file?
Reply With Quote
  #275  
Old 05-10-2005, 04:45 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fogua
Ok thanks
so the 2 point is the one missing
How do I add $GAB_ad1 and on what file?
you ad it to whatever template you want ads to appear in (i.e. navbar). Read the README as it explains all.
Reply With Quote
  #276  
Old 05-10-2005, 05:15 PM
zell_11 zell_11 is offline
 
Join Date: Dec 2004
Location: Edinburgh- Scotland
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok when i go into packages i get

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT * FROM GAB_packages ORDER BY ordinal,title,id asc
mysql error: Table 'zenoga.GAB_packages' doesn't exist

mysql error number: 1146

Date: Tuesday 10th of May 2005 07:13:46 PM
Script: http://www.zenogaming.com/forums/adm...isplaypackages
Referer: http://www.zenogaming.com/forums/adm...dex.php?do=nav
Username: Cid
IP Address: 81.158.97.160


and when i try and add one i get

Invalid SQL: INSERT INTO GAB_packages
(title,description,price,currency,duration,frequen cy,scripts,forumids,ordinal,hits,views) VALUES (
'',
'',
,
'GBP',
0,
0,
'',
'101,113,114,115,116,98,106,105,104,103,102,100,11 0,111,112,99,107,108,109,22,29,30,31,32,33,34,35,5 7,23,24,25,26,27,28,80,87,88,81,82,92,117,95,40,85 ,41,42,43,55,86,',
0
0,
0
)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
'GBP',
0,
0,
'

mysql error number: 1064

Date: Tuesday 10th of May 2005 07:15:18 PM
Script: http://www.zenogaming.com/forums/admincp/GAB_admin.php
Referer: http://www.zenogaming.com/forums/adm...?do=addpackage
Username: Cid
IP Address: 81.158.97.160


i have tried reinstalling the database but still no luck, anyone able to give me a manual run of the sql or somthing
Reply With Quote
  #277  
Old 05-10-2005, 05:19 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

packages are not implimented yet. You dont need them for the ads.
Reply With Quote
  #278  
Old 05-10-2005, 07:19 PM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, thank you for your system. I am keen to work with it.

I found mistake during my installation. I had to change index in admincp and global.php myself.
I got message to do it so it is ok up to now.

But then i was directed to do as follow:
step 200
--------------------------------------------------------------------------------

in admincp/index.php, replace:

--------------------------------------------------------------------------------

$printhr = false;
if (can_administer('canadminstyles'))
{
--------------------------------------------------------------------------------

with:

--------------------------------------------------------------------------------

= false;
// === GAB ===
construct_nav_option($vbphrase['GAB_settings'], 'GAB_admin.php?do=settings');
construct_nav_option($vbphrase['GAB_display_ads'], 'GAB_admin.php');
construct_nav_option($vbphrase['GAB_add_ad'], 'GAB_admin.php?do=add');
construct_nav_option($vbphrase['GAB_display_packages'], 'GAB_admin.php?do=displaypackages');
construct_nav_option($vbphrase['GAB_add_package'], 'GAB_admin.php?do=addpackage');
construct_nav_option($vbphrase['GAB_display_frequency'], 'GAB_admin.php?do=displayfrequency');
construct_nav_option($vbphrase['GAB_add_frequency'], 'GAB_admin.php?do=addfrequency');
construct_nav_option($vbphrase['GAB_test'], 'GAB_admin.php?do=test');
construct_nav_group($vbphrase['GAB_CP']);
$printhr = true;
$printhr = false;
// === GAB ===
$printhr = false;
if (can_administer('canadminstyles'))
{


I got error in admincp, so I tried to figure out what is wrong /i am not coder/.
I have instead of your "replace with" but everything in "// === GAB ===" between "$printhr = false;" and "if (can_administer('canadminstyles'))
{"

Hope it is ok, because it works.
Reply With Quote
  #279  
Old 05-10-2005, 08:22 PM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to add banner, but do not now how. I copied the image to gab folder. What is next. Trying to add banner i am getting this message:

Warning: copy(./gab/toto.gif): failed to open stream: No such file or directory in /home/www/xxxxxxxx/www/admincp/GAB_admin.php on line 716
Reply With Quote
  #280  
Old 05-10-2005, 08:23 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kafi
I am trying to add banner, but do not now how. I copied the image to gab folder. What is next. Trying to add banner i am getting this message:

Warning: copy(./gab/toto.gif): failed to open stream: No such file or directory in /home/www/xxxxxxxx/www/admincp/GAB_admin.php on line 716
you sure you have a folder in your forum directory called gab and its chmod to 0777?
Reply With Quote
  #281  
Old 05-10-2005, 08:38 PM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

somhow i mannaged to add banner but i am getting same error message as fogua with test:

Variables passed varibales: Usergroup: Administrators (6), script=index (0), forum=blablablabla(10)
Problem No script was passed therefore no ad can be pulled.
Usergroup Passed usergroup. This usergroup is set to view an ad.
Toggle Passed usergroup toggle test. This usergroup could toggle ads on or off.
Script Passed script test. We are in a script that is set to view an ad.
Results: Um. err... No ads matched the criteria:
SELECT DISTINCT ad.id,ad.img,ad.track_shown, ad.max_views, ad.views FROM GAB_ads ad INNER JOIN GAB_listing lst on ad.id=lst.adid WHERE (lst.script = 'forumdisplay') AND ((startdate<1) or (startdate<1115761084)) and ((enddate<1) or (enddate>1115761084)) AND isactive=1 AND (lst.forumid = 10) ORDER BY RAND() LIMIT 2

.....after 5 min.

I have change dates, so it works now and I am getting this:
Variables passed varibales: Usergroup: Administrators (6), script=index (0), forum=Mzdové účtovníctvo, personalistika, odvody(10)
Problem No script was passed therefore no ad can be pulled.
Usergroup Passed usergroup. This usergroup is set to view an ad.
Toggle Passed usergroup toggle test. This usergroup could toggle ads on or off.
Script Passed script test. We are in a script that is set to view an ad.
Results: $GAB_ad1
Reply With Quote
  #282  
Old 05-10-2005, 09:05 PM
kafi kafi is offline
 
Join Date: Apr 2004
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do I change template for banner "frame"?
I would like to leave out all html code around banner. I want to have only banner at this stage.

Thank you
Reply With Quote
  #283  
Old 05-12-2005, 01:10 AM
KAC KAC is offline
 
Join Date: Nov 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Geek
It will work fine - just dont use the packages - thats a user interface option not needed for the banners to work.

Well then how do I add my banners? and where are the images placed? In my admin CP the add banner selection is not there. There is however a very thin box and when I click on it it comes up but when I go to save I get the phrase GAS thing.
Reply With Quote
  #284  
Old 05-12-2005, 09:12 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweeet this hack looks good *installs* geek would you say this hack is stable ~? dont want to mess my bored up ! lol nice work
Reply With Quote
  #285  
Old 05-12-2005, 11:08 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by benj
sweeet this hack looks good *installs* geek would you say this hack is stable ~? dont want to mess my bored up ! lol nice work
I would say hold off if you want total stability. I have resumed work on it - but its still beta so I wouldnt recommend using it on a live board (though most are)
Reply With Quote
  #286  
Old 05-12-2005, 11:09 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

KAC- add a Gloabl Control Panel phrase.

Varname: GAB_add_ad
Vlaue: Add ad
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05745 seconds
  • Memory Usage 2,367KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete