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)

SpeedStreet 01-05-2003 02:46 PM

Where's PPN?

That code did not work for me waherne...

SpeedStreet 01-13-2003 12:12 PM

well then...

Scott MacVicar 01-23-2003 10:28 AM

change

RAND() in global.php to RAND(NOW())

I just found out that the format had changed on newer versions of MySQL.

SpeedStreet 01-23-2003 01:34 PM

PPN,

While this may help the problem, I am still only getting one banner ad to pull out of three records consistently:

PHP Code:

Banner 1 [edit] [reset] [remove0 0 Leaders Forum No 
Banner 2 
[edit] [reset] [remove48 0 All forums Yes 
Banner 3 
[edit] [reset] [remove0 0 Leaders Forum No 

I did change both RAND() arguements to RAND(NOW()). There must be something else amiss. Also, I have tried switching it so that only one banner appears in the All Forums and the other appear in a subforum, but the All Forum one still overrides the other two, if you understand what I am saying.

Let me know if I can help in any way!

PHP Code:

SYSTEM INFO
Operating System Linux 
Apache Version 1.3.27 
(Unix
Perl Version 5.006001 
PHP Version 4.2.3 
Mysql Version 3.23.54 


waherne 01-23-2003 04:34 PM

I have just installed VB 2.29 and this hack with the amendments I suggested earlier. The ads rotated correctly as I expected.

Willie

SpeedStreet 01-23-2003 06:42 PM

hrmm....I wonder why I am having problems then...

Merjawy 02-06-2003 01:11 PM

better late than never

I haven't a clue what ver. my php/sql but who cares? the hack works for me .. I don't have any ads but I can put different announcement or special greetings in different forums.. INSTALL

thnx

Brain Crusher 02-09-2003 10:46 PM

i want a hack plugin for this should like

only ads for guests :)

or only ads in a special category

Doc203 02-25-2003 04:17 AM

Works great for me also, and I changed Global.php, but it still doesn't appear to be random. Any ideas?

DannyITR 02-26-2003 02:28 PM

Quote:

change

RAND() in global.php to RAND(NOW())

I'm confused now. Is the hack fixed? Is that all it was? What about the fix proposed by waherne? PPN can you update us?


All times are GMT. The time now is 01:56 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.01186 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
  • (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