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)
-   -   Advert Management (https://vborg.vbsupport.ru/showthread.php?t=39074)

PAINTBALLM 10-07-2003 02:40 AM

i'd like to see the option to output a statistics page for your sponsors/advertisers to view, so they know that they arent getting done dirty.

d3nnis 10-07-2003 02:51 AM

Quote:

Originally Posted by Scott MacVicar
Its not a bug its the limit of mysql smallint.
Ill icq you the fix.


hi Scott can you post here?

d3nnis 10-07-2003 06:23 AM

found the solution... i alter ad table , exposed field to bigint(10)

TheLab 10-07-2003 10:12 PM

Quote:

Originally Posted by d3nnis
found the solution... i alter ad table , exposed field to bigint(10)


What does this change? And whats the exact query you run?

d3nnis 10-07-2003 11:01 PM

Quote:

Originally Posted by TheLab
What does this change? And whats the exact query you run?


i used phpmyadmin, under ads table, field -> exposed, click on action -> change

TheLab 10-07-2003 11:11 PM

And what did you earn by doing that?

Edit: Forget it.. i found out what this does.. :nervous:

d3nnis 10-08-2003 03:04 PM

some info about mysql numeric types..

http://www.mysql.com/doc/en/Numeric_types.html

smallint can only goes up to 32767

so by changing to bigint, I can expect it to goes up to 9223372036854775807!

PAINTBALLM 10-13-2003 08:43 AM

Scott, I installed this hack, and what I did was modified the variables and installed it again so I could have a different banner system for both the top and bottom of my site. I changed all of the advert variables for the footer system to advert2, and changed all the ads to ads2, then the variable I put in the footer is $advert2 instead of $advert... It works nice..

Accept, one problem is confusing me, as I am not a PHP expert, and you are :P I think you can help me..

First, go here, and look at the footer, notice it works.. http://www.paintballmessage.com/forums

Now go here, and look at the footer, notice.. its not working... http://www.paintballmessage.com/foru...p?s=&forumid=8

It seems to work on every page accept two, those two being the showthread.php and the forumdisplay.php...

Could you tell me how to fix this?

Thanks scott ;)

Justin

d3nnis 10-13-2003 11:07 PM

Quote:

Originally Posted by d3nnis
some info about mysql numeric types..

http://www.mysql.com/doc/en/Numeric_types.html

smallint can only goes up to 32767

so by changing to bigint, I can expect it to goes up to 9223372036854775807!


by the way, exposure max limit will also be 32767 since the datatype value is smallint.

if you wish to go beyond 32767, you have to change it to bigint as well.

PAINTBALLM 10-14-2003 01:05 AM

Quote:

Originally Posted by Super Ted
^^^Bump^^^ I am sure others would like to know too!


Ted what you could do is make a php file in your forum directory, and have it call the global and functions files.... And then put $advert in that, in a table with 0 border and 0 cell padding spanning 100% x 100% centered.. Make it transparent on the non vb page, and it would work like a dream ;) thats what I do


All times are GMT. The time now is 01:12 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.01410 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)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