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

Reply
 
Thread Tools
VB Banner Control 1.2 Details »»
VB Banner Control 1.2
Version: 1.00, by KarateKid KarateKid is offline
Developer Last Online: Mar 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-15-2002 Last Update: Never Installs: 63
 
No support by the author.

Hi,

with the allowance of Firefly I repost this hack. At first I want to mention that I used PPNs ads hack only for one file in the adminoptions as a template. He made this file so perfect that I looked how he solved the adminconfigurations file for his hack.
The rest is without viewing on other hacks coded by me.

This hack has the following features:

- allows you to create banners dynamicly
- you can view stats:
-> guestclicks ( how many not logged in guests clicked on the banner )
-> userclicks ( which user has clicked how often on which banner )
-> views ( how often is the banner viewed )
- control theses stats over an admin cp script which let you:
-> add new banners
-> edit banners
-> remove banners
-> view the stats
-> remove the stats
- NEW in 1.1: Useroverview:
-> you can give a user of your forum the possibility to view the stats via ACP
-> he can see the views, userclicks and guestclicks
- NEW in 1.2: Put Banners between categories
-> you can assign each category via phpmyadmin an banner which is under this category shown
-> therefor you've to split the categories, that you have space between them

For an example, you can have a view on www.kampfkunst-board.info. The 2 banners in the middle are created dynamicly by my scripts

Here in this post I add the hack, in the next post, the screenshots

Show Your Support

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

Comments
  #132  
Old 06-29-2003, 08:58 PM
mateo1221 mateo1221 is offline
 
Join Date: Jun 2003
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installation question: in the first line it says to add the following tables... which database or does it matter???
Reply With Quote
  #133  
Old 06-30-2003, 07:26 AM
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Location: Sydney
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 10:58 PM mateo1221 said this in Post #131
Installation question: in the first line it says to add the following tables... which database or does it matter???
of course same database as vbulletin!
Reply With Quote
  #134  
Old 06-30-2003, 08:40 PM
mateo1221 mateo1221 is offline
 
Join Date: Jun 2003
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, realized just how dumb that sounded as soon as I posted it... Now here's a second question... when it says to search for a line of code:

makenavselect("Statistics & Logs","<hr>",$df);

and insert lines below it, where do I search for code? I have looked everywhere and I've seen it 1000000 times before, it's just evading me for some reason... :cross-eyed:
Reply With Quote
  #135  
Old 07-01-2003, 04:38 AM
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Location: Sydney
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

which vbulletin version do you have?
Reply With Quote
  #136  
Old 07-01-2003, 10:56 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

KarateKid - i had this installed a while ago and i installed it again this week.

You have a little bug in there regarding the use of single quotes to output the relevant HTML. It should always be double quotes and this is my code:

PHP Code:
$code "<a href=\"$forumurl/click.php?bannerid=$bannerid\" target=\"new\"><img src=\"$forumurl/view.php?bannerid=$bannerid\" border=\"0\" width=\"$width\" height=\"$height\"></a>"
- miSt
Reply With Quote
  #137  
Old 07-01-2003, 11:01 AM
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Location: Sydney
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok,

I know that this hack is buggy,

but I'll fix all the bugs, when I redevelop the hack for vb3.

Regards

KarateKid
Reply With Quote
  #138  
Old 10-07-2003, 06:11 AM
Madacc Madacc is offline
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get really frusterated trying to find answers to problems that no one solves. I have fixes to all the problems that were caused with the banner rotation addon by springbok.


Problem: Banner pictures are not showing up
HIS CODE WAS THIS:

Find:
PHP Code:
if ($getforum['styleoverride']==or $bbuserinfo['styleid']<2) { 
    
$codestyleid=$getforum['styleid']; 
  } 

Add After:
PHP Code:
// Banner Management 
$bannerad=$DB_site->query_first("SELECT * FROM banner ORDER BY RAND()"); 

$bannerid=$bannerad['id']; 
$bannerheight=$bannerad['height']; 
$bannerwidth=$bannerad['width']; 
$banner_text=$bannerad['banner_text']; 
Solution (Do this instead)
Find:
PHP Code:
    if ($getforum['styleoverride']==or $bbuserinfo['styleid']<2) {
      
$codestyleid=$getforum['styleid'];
    }
  }

Add After:
PHP Code:
// Banner Management 
$bannerad=$DB_site->query_first("SELECT * FROM banner ORDER BY RAND()"); 

$bannerid=$bannerad['id']; 
$bannerheight=$bannerad['height']; 
$bannerwidth=$bannerad['width']; 
$banner_text=$bannerad['banner_text']; 
Problem: Banners are leading to the wrong URL (after clicking)

Open: click.php
Find:
PHP Code:
error_reporting(7); 
Add After:
PHP Code:
$thebannerid $_GET['bannerid']; 

Find:
PHP Code:
$boarduser $bbuserinfo['userid']; 
Add After:
PHP Code:
$bannerid $thebannerid
Save and reupload click.php


That should solve the problems people have been having. I hope I just saved a bunch of people
Reply With Quote
  #139  
Old 10-10-2003, 11:04 AM
PAINTBALLM's Avatar
PAINTBALLM PAINTBALLM is offline
 
Join Date: Oct 2003
Location: Orlando, FL
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**Installs** good work karatekid
Reply With Quote
  #140  
Old 10-15-2003, 06:33 PM
Sia Bani Sia Bani is offline
 
Join Date: Oct 2002
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this work with VB3 beta 7?
Reply With Quote
  #141  
Old 10-16-2003, 06:49 PM
DiscussAnything DiscussAnything is offline
 
Join Date: Jan 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on a test forum that's running 2.3.0, and i'm pretty sure I did everything correctly. The ads to show up, but its a broken image. When I click the link it does link to the correct referrer though. I was doing this on a localhost, which links images from the internet (from a site that does allow image linking). Also, the views/clicks were not updated and remained 0. Is there anything obvious I overlooked or does it not work for a localhost install?

Are there any other banner hacks which track the traffic, perhaps?
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 11:40 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.08765 seconds
  • Memory Usage 2,331KB
  • Queries Executed 27 (?)
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
  • (9)bbcode_php
  • (1)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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