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)

mateo1221 06-29-2003 08:58 PM

Installation question: in the first line it says to add the following tables... which database or does it matter???

KarateKid 06-30-2003 07:26 AM

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!

mateo1221 06-30-2003 08:40 PM

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:

KarateKid 07-01-2003 04:38 AM

which vbulletin version do you have?

Dean C 07-01-2003 10:56 AM

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

KarateKid 07-01-2003 11:01 AM

ok,

I know that this hack is buggy,

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

Regards

KarateKid

Madacc 10-07-2003 06:11 AM

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 :)

PAINTBALLM 10-10-2003 11:04 AM

**Installs** good work karatekid ;)

Sia Bani 10-15-2003 06:33 PM

Would this work with VB3 beta 7?

DiscussAnything 10-16-2003 06:49 PM

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?


All times are GMT. The time now is 03:53 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.01467 seconds
  • Memory Usage 1,757KB
  • 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
  • (9)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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