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)

trainer 07-16-2002 03:03 PM

does the system work with html banners?

Dean C 07-16-2002 03:16 PM

this is fantastic...

X-Fan 07-16-2002 04:08 PM

Just found a couple of typos in banner_manage.php (also edited it to have double quotes instead of single in the output code).

Find...

PHP Code:

$code "<a target='blank' href='$forumurl/click.php?bannerid=$bannerid'><img border='0' width='$width' heigth='$height' alt='$alt' src='$forumurl/view.php?bannerid=$bannerid'></a>"

Change to...

PHP Code:

$code "<a href=\"$forumurl/click.php?bannerid=$bannerid\" target=\"_blank\"><img src=\"$forumurl/view.php?bannerid=$bannerid\" border=\"0\" width=\"$width\" height=\"$height\" alt=\"$alt\"></a>"


Velocd 07-16-2002 04:59 PM

I fail to understand what this does exactly, but it looks interesting enough..

freeshares1 07-16-2002 06:55 PM

This looks really interesting but i have 2 questions

1/ I have already installed ppn advert hack do i need to uninstall that one before adding this one or can i just add this as well?

2/ Is it possible to restict the banner so that is is just shown to guest or members with less than X posts

KarateKid 07-16-2002 07:55 PM

@X-Fan: It also works as it is, with single quotes ;)

@Velocd: It manages your banners and count the clicks of users/guests and the views ;)


@freeshares1:

your 1. point: I dont't know. I think you must not deinstall his hack. You can use my hack and his hack together. Just put my code generated through my banneradmin into PPNs pannel ;)

your 2. point: Of course, just write something like if($user[posts]<XXX) ....
It should work :)

freeshares1 07-16-2002 08:25 PM

Thanks, will install it later

X-Fan 07-17-2002 02:48 AM

KK, yeah, I know single quotes work, but I like double quotes :)

Also, did you catch the typo? You had heigth instead of height in that line.

KarateKid 07-17-2002 08:01 AM

Quote:

Originally posted by X-Fan
KK, yeah, I know single quotes work, but I like double quotes :)

Also, did you catch the typo? You had heigth instead of height in that line.

hehe, ok for the quotes.

ups, sorry for the typo, I'll fix it later! :)

bandersen 07-17-2002 03:21 PM

I use 2.2.6 and php 4.2.1
and get this error when trying to run the queries:

Invalid SQL: CREATE TABLE userclicks (
userid int(11) NOT NULL default '0',
bannerid int(11) NOT NULL default '0',
clicks int(11) NOT NULL default '0',
PRIMARY KEY (userid,bannerid)
) TYPE=MyISAM;

mysql error: You have an error in your SQL syntax near ';
' at line 6

mysql error number: 1064

EDIT: it seems to work now... I put the code in the non-select SQL query field at first.... will test.


All times are GMT. The time now is 06:13 AM.

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.01298 seconds
  • Memory Usage 1,738KB
  • 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
  • (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