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)

Dez_U 06-24-2005 06:22 PM

lets Bump it again in the hopes that someone is ready to releas this as a 3.5 plug in :)

Julie 12-25-2005 02:19 PM

Quote:

Originally Posted by Dez_U
lets Bump it again in the hopes that someone is ready to releas this as a 3.5 plug in :)

With you on that bump! *bump*

94supratt 01-04-2006 12:28 AM

All of my ads have expired because the last date I can set an ad to expire is Dec 31, 2005. How do I resolve this?

94supratt 01-04-2006 12:34 AM

Quote:

Originally Posted by Scott MacVicar
change this wee bit in global.php

PHP Code:

if(isset($advert_forumid)) {
  
$foruminfo getforuminfo($advert_forumid);
  
$advert=$DB_site->query_first("SELECT * FROM ads WHERE LOCATE(CONCAT(',',forumid,','),',$foruminfo[parentlist],')>0 AND time>=".time()." AND (exposed<=exposures OR exposures=0) ORDER BY RAND()");
} else {
  
$advert=$DB_site->query_first("SELECT * FROM ads WHERE LOCATE(CONCAT(',',forumid,','),',-1,')>0 AND time>=".time()." AND (exposed<=exposures OR exposures=0) ORDER BY RAND()");


to

PHP Code:

if(isset($advert_forumid)) {
  
$foruminfo getforuminfo($advert_forumid);
  
$advert=$DB_site->query_first("SELECT * FROM ads WHERE LOCATE(CONCAT(',',forumid,','),',$foruminfo[parentlist],')>0 AND (exposed<=exposures OR exposures=0) ORDER BY RAND()");
} else {
  
$advert=$DB_site->query_first("SELECT * FROM ads WHERE LOCATE(CONCAT(',',forumid,','),',-1,')>0 AND (exposed<=exposures OR exposures=0) ORDER BY RAND()");


This will disable the time length function until i get it sorted.



I did this to disable the time length function in the mean time.

bradg 02-21-2006 02:33 PM

Quote:

Originally Posted by Dez_U
lets Bump it again in the hopes that someone is ready to releas this as a 3.5 plug in :)

I second that bump! I desperately need this for 3.5.3!!

Andy R 02-21-2006 09:05 PM

Yes, this would be excellent for 3.5!

Marco van Herwaarden 02-21-2006 09:26 PM

This is a 4 year old vB2 hack.

Nobody ever migrated it to vB3.0 i the last 2 years, so i doubt someone will do it for 3.5 now.

Probably enough alternatives.

bradg 02-22-2006 12:07 PM

I've looked around and can't find anything that does exactly what this one did. If you know of anything it would be a huge help to me as well as the several others who have replied with the same response as mine.


All times are GMT. The time now is 04:40 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.01495 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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