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
  #152  
Old 09-02-2004, 01:13 AM
rave42 rave42 is offline
 
Join Date: Aug 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im trying to get vB Banner 1.3 to work with 3.0.3 and its not going very well.

Under VB Banner Control when i click add i get
Fatal error: Call to undefined function: makeinputcode() in
C:\Inetpub\wwwroot\site\forums\admincp\banner_mana ge.php on line 37

and when i click on Modify i get
Fatal error: Call to undefined function: doformheader() in
C:\Inetpub\wwwroot\site\forums\admincp\banner_mana ge.php on line 171

so it would seem im its not working at all. Any sugestions would be greatly appreciated.
Reply With Quote
  #153  
Old 09-02-2004, 08:36 PM
Omar_2002 Omar_2002 is offline
 
Join Date: Dec 2001
Location: Scotland, UK
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same problem here (v3.0.3)
Reply With Quote
  #154  
Old 09-02-2004, 08:58 PM
SKerr SKerr is offline
 
Join Date: Aug 2004
Location: Seattle
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops, my bad.. it would help if I included the right banner_manage.php file (I was working on this at home over the weekend and forgot to get the updated file from my ftp server).

Try this new one instead..
Reply With Quote
  #155  
Old 09-02-2004, 09:22 PM
Omar_2002 Omar_2002 is offline
 
Join Date: Dec 2001
Location: Scotland, UK
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Steve,

Also, one other minor error: in click.php - it throws up an error, because "bid" in the insert statement should be "bannerid"

Thanks for the great hack

- Omar
Reply With Quote
  #156  
Old 09-02-2004, 10:42 PM
SKerr SKerr is offline
 
Join Date: Aug 2004
Location: Seattle
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh yeah.. I see. The line in click.php:

Code:
INSERT INTO userclicks (userid, bid, clicks) VALUES ('$boarduser', '$bid', '1')");
should be

Code:
INSERT INTO userclicks (userid, bannerid, clicks) VALUES ('$boarduser', '$bid', '1')");
And thank KarateKid for the hack.. I just needed it to work for a client who just upgraded to 3.0.3.
Reply With Quote
  #157  
Old 09-02-2004, 10:49 PM
Omar_2002 Omar_2002 is offline
 
Join Date: Dec 2001
Location: Scotland, UK
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Steve,

I'm not quite sure what you are saying in your post.

When using the click.php as-is, I was getting a db error when clicking on a banner, saying the column "bid" was not found in the table.

I assumed that this was to do with the following line in click.php:

Code:
$DB_site->query("INSERT INTO userclicks (userid, bid, clicks) VALUES ('$boarduser', '$bid', '1')");
Specifically the "(userid, bid, clicks)" - I have limited php knowledge, but I figured that this might have been the reason for the db error because the column is called "bannerid" and not "bin".

Please correct me if what I have done is wrong and/or might cause instabilities.

Thanks
- Omar
Reply With Quote
  #158  
Old 09-02-2004, 10:50 PM
Omar_2002 Omar_2002 is offline
 
Join Date: Dec 2001
Location: Scotland, UK
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, you beat me to the post. Good to know that I'm not going crazy

Thanks KarateKid!!!
Reply With Quote
  #159  
Old 03-01-2005, 05:18 AM
computer1 computer1 is offline
 
Join Date: Feb 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dus this work whit vb 3.0.7 ??
Reply With Quote
  #160  
Old 03-25-2005, 03:53 PM
FD929's Avatar
FD929 FD929 is offline
 
Join Date: Feb 2005
Location: California
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I'm kinda stuck here now. I have the banners rotating perfectly in my header. The banners belong to my two sponsors who have forums hosted on my board. What I would like to do is add those banners into the area specified on the attached email. The way I would like to do it, is through a global variable. i.e. the forum id is 47 and the banner id is 47. Therefore, banner 47 should show in the appropriate cell called by the variable in the forum bits. See what I'm saying? I think that was the intent of this post, but since the information refers to vb2 rather than 3, the information doesn't match up, and I can't figure it out.

If anyone can help, it would be greatly appreciated.
Reply With Quote
  #161  
Old 03-25-2005, 03:54 PM
FD929's Avatar
FD929 FD929 is offline
 
Join Date: Feb 2005
Location: California
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by computer1
dus this work whit vb 3.0.7 ??
yes it does
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 02:25 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.06673 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (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
  • (3)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_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