vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VB Banner Control 1.2 (https://vborg.vbsupport.ru/showthread.php?t=41154)

rave42 09-02-2004 01:13 AM

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.

Omar_2002 09-02-2004 08:36 PM

Same problem here (v3.0.3)

SKerr 09-02-2004 08:58 PM

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..

Omar_2002 09-02-2004 09:22 PM

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

SKerr 09-02-2004 10:42 PM

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. ;)

Omar_2002 09-02-2004 10:49 PM

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

Omar_2002 09-02-2004 10:50 PM

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

Thanks KarateKid!!!

computer1 03-01-2005 05:18 AM

dus this work whit vb 3.0.7 ??

FD929 03-25-2005 03:53 PM

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.

FD929 03-25-2005 03:54 PM

Quote:

Originally Posted by computer1
dus this work whit vb 3.0.7 ??

yes it does


All times are GMT. The time now is 05:16 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.01164 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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