vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Geek Advertising Banner system RC1 (https://vborg.vbsupport.ru/showthread.php?t=79791)

The Geek 04-12-2005 06:16 AM

just added ;)

The file edits are in global.php (sorry ;) )

Personally - I think the community would benefit by all the banner hack writers getting together and teaming up to build one. No sense in having 50 different banner hacks that are all slightly different enough to confuse the hell out of people.

The only reason I released this was because I needed one and I couldnt get the functionality I needed from existing hacks. All my hacks are stuff I use on my site because I have a need for them and cant find it somewhere else. Though I will totally support this - it would be nice if some decent coders and other banner writers want to team up and see what happens ;)

nJoy

Lizard King 04-12-2005 06:41 AM

Is statistics avaible for anyone to see ? Also can we make this like only unregistered users or some usergroups can see the banners ?
Geek it looks like you did a very good job again.

The Geek 04-12-2005 07:11 AM

Thanks Lizard.

Yes you can make so only unregistered view. You would just need to add a new profile field (a use a radio button) and set a default. Then put that default in the usergroup section of your GAB settings. I guess I can also add a mechanism whereby it simplifies that process though - wouldnt be hard.

I am bustnig butt on this hack as I need to go live with a full advertising system on my site by the end of this week. That will include:
1- Users able to create their own ads by 'purchasing' from admin designed packages.
2- Users able to manage their own ads (upload new, view reports on frequency of hits, views, etc..)
3- Users able to purchase packages via paypal.

I may not get the full user management side done this week (doubt I will). But that is where I am going with it. I just need to make sure everything else is working well.

reteep 04-12-2005 09:11 AM

Sounds very cool.

But if I click on a banner I get:

Quote:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /*/vb/global.php on line 13

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /*/vb/global.php on line 14
PHP5 Problem?

reteep 04-12-2005 09:33 AM

Ok I added:

PHP Code:

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array(); 

in GAB_redirect.php
Now a new window is being opened but the site cannot be displayed. Although the array.merge error is gone..

The Geek 04-12-2005 09:33 AM

Try the new package (overwrite all files).. not sure if that will help as I cant reproduce it.

New package addresses:

fixed minor typo in README (didnt say which file to edit)
Put some info on how the banners are pulled in README
Added settings for which usergroups see ad
removed extra isactive setting
Fixed flash banners not appearing
Added new setting for #of ads in rotating banner
Flash ads now appear when editing ads
To update from 1.00 just overwrite GAB_admin.php, GAB_redirect and functions_gab.php

The Geek 04-12-2005 09:37 AM

Quote:

Originally Posted by stormblast
Ok I added:

PHP Code:

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array(); 

in GAB_redirect.php
Now a new window is being opened but the site cannot be displayed. Although the array.merge error is gone..

Cool. I addded a couple of those arrays to GAB_redirect in the 1.01 package, but not action templates or globaltemplates.
Ill put those in 1.02 (though I dont think they are really needed).
Make sure that the URL in the ad is valid and that it doesnt start with http://
In 1.02 ill make it so it will have to have http:// to work though.

reteep 04-12-2005 10:01 AM

Works perfectly on PHP5 now, thanks! Very good work :)
I'll continue testing..

nexialys 04-12-2005 10:13 AM

Quote:

Originally Posted by The Geek
Personally - I think the community would benefit by all the banner hack writers getting together and teaming up to build one. No sense in having 50 different banner hacks that are all slightly different enough to confuse the hell out of people.

That's exactly why i suggest you to merge my own banner/sponsors hacks... you have my full permission, and my welcome on this... i may provide some support here and there, but as i quit the community in less than 2 months, i will not "support" the script by myself!

reteep 04-12-2005 10:28 AM

More Feedback:

Somewhere there's a bug in rage. I'm not sure if it's a problem of PHP5. As soon as I made the modifications to global.php the "Write a PM" Site is bogus.

On the top of the "Write a PM Page" it says:
Quote:

Warning: Invalid argument supplied for foreach() in /includes/functions_editor.php on line 443
And most phrases are empty. Additionaly the quick reply box is screwed, directly after the global.php changes. When reverting globa.php changes everything is fine..


All times are GMT. The time now is 01:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01445 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete