vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Banners & Ads System (https://vborg.vbsupport.ru/showthread.php?t=74621)

serg 03-05-2005 02:55 PM

I still can't figure out how to install this thing. anyone??????

speedracer68 03-06-2005 02:30 AM

I tried this edit to set up two banners. My entire site crashed when I made this change. I uploaded the previous global.php and all is well. I did it twice to see if I missed something. Same effect.

Also, when I place the banner on the left or center there is a blank gap below the banner. When I put it on the right there is no gap and less wasted forum space.

Any thoguhts?

Great hack by the way!!!

The is the error I get

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT title, html, url, type, status, width, height FROM banners WHERE status = '1' AND adid != ORDER BY RAND() LIMIT 1
mysql error: You have an error in your SQL syntax near 'ORDER BY RAND() LIMIT 1' at line 1

mysql error number: 1064

Date: Saturday 05th of March 2005 11:33:41 PM
Script: http://www.my-site.com/forum/
Referer:
Username: My name
IP Address: my ip







Quote:



@PAWS - 1. Install the Update which I attached as txt file at this thread
2. Do this:
In your forumroot/global.php
Look for the whole code you've put in your global.php and REPLACE it with
PHP Code:

// Start banner rotating by Anhtuancool
if ($vboptions['enbanners'])
{
    
// select random banner and display it
    
$getbanner $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " TABLE_PREFIX "banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
    
    eval(
'$banner = "' fetch_template('banner') . '";');
    
$avoidid $getbanner['adid'];
    unset(
$getbanner);

    
// select random banner and display it secplace
    
$getbanner $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " TABLE_PREFIX "banners WHERE status = '1' AND adid != $avoidid ORDER BY RAND() LIMIT 1");
    
    eval(
'$banner2 = "' fetch_template('banner') . '";');
    unset(
$getbanner);
}
// End banner 

Save, and place $banner2 in the footer or wherever you want your second banner slot to show up. :)

redlabour 03-08-2005 07:01 PM

Very nice ! Thx .... :D

redlabour 03-08-2005 07:37 PM

This is the last ++++ i ever seen .... in IE everything is ok. If you use Firefox you will see that this Hack isn?t HTML Valid. :pirate:

ajk 03-11-2005 05:56 AM

Quote:

Originally Posted by redlabour
This is the last ++++ i ever seen .... in IE everything is ok. If you use Firefox you will see that this Hack isn?t HTML Valid. :pirate:


I use FireFox 1.0.1 and it runs fine.

drex 03-13-2005 12:41 PM

GREAT HACK!

Is there a way to add click tracking (not who clicks, just how much per ad) to follow the amount of clicks on the ads?

Would be a great addition to this awesome hack.

See it in action at www.x5world.com

bos98 03-16-2005 01:07 PM

OK this thing is great, works like a charm but......

I cant get it to load on my portal.....

the site is www.blackberry101.com

check it out and let me know, i tried inserting $navbar in the portal template, i tried inserting the code for the banner directly.....

I am stumped

Edit:

To be more clear, the banner is loading via the Navbar template using $banner,

on every page this works fine, but on the portal.php page which is using vBadvanced CMPS system it will not load, i have checked the source code after loading the portal page and it just seems to be ignoring the $banner variable within the navbar template.....

I can make the banner load if i put it directly in my header code....but i really dont want to do this if i dont have to

bos98 03-16-2005 01:27 PM

forget it i just put it in the header, not wasting any more time

ajk 03-16-2005 03:26 PM

Hi Bos,

Forum looks great!

Did you see the second text file?

Under the main File and instructions, there is directions to install elsewhere.

Check it out, it's easy!

Starsurfer 03-21-2005 04:23 PM

Is it possible for me to add a javascript randomiser in there? Please tell me, the code I have is:
<script language="JavaScript" src="http://impgb.tradedoubler.com/imp/pool/js/63240/1069018" charset="ISO-8859-1"></script>


All times are GMT. The time now is 07: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.01308 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)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)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