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)

Craigr 05-12-2005 05:51 PM

Quote:

Originally Posted by nmu98
Can someone fill me in on step 2
2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');
=================================

Where do I find this? VB3.07

You insert in into phpmyadmin or similar. :)

jurrie 05-20-2005 11:45 PM

hey,

for those who have problems showing the banner on the forum homepage, I figured this out :
in my forum, it was properly showing on every forumpage ( userCP, FAQ, etc.)
but not on the forumhomepage.
what i did was ad the $banner here

from stylemanager :

choose : forum home templates ---> forumhome ( ad the $banner at the very bottom ) and voila . it works ( for me that is ) , try it out

see : http://www.designerschat.com

edyonline 05-25-2005 02:28 AM

Quote:

Originally Posted by Craigr
Tested locally and worked okay.

not really... if you have multiple banner it will update ALL banners

edit gotobanner.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1");

change to:

$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1 WHERE adid='$id'");

Monica05 05-26-2005 05:28 AM

I still can't get mine to show up ANYWHERE :(

Lt. Dan 05-27-2005 12:31 AM

Quote:

Originally Posted by Monica05
I still can't get mine to show up ANYWHERE :(

Me either. I did everything exactly per the instructions and the $banner doesn't show up anywhere. Its as if it is being ignored.

Lt. Dan 05-27-2005 06:34 AM

Guys, I think I found a glitch in the install.

The template that is created by following the instructions is titled: Banner with a capital 'B', but the code you insert to display the banners is $banner with a small 'b'.

I renamed the 'Banner' template to 'banner' and now it works!

oldfan 05-30-2005 02:47 PM

Worked like a charm, thanks :)
Is it possible to have a output page for the sponsers too see?

Quote:

Originally Posted by edyonline
not really... if you have multiple banner it will update ALL banners

edit gotobanner.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1");

change to:

$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1 WHERE adid='$id'");


treez 05-31-2005 11:17 PM

I made a thing for this that counts the views/clicks. Hope you dont mind. (email comments to rdillon@sprocket.co.nz beacuse I dont come here often)

Craigr 06-07-2005 01:35 PM

Quote:

Originally Posted by edyonline
not really... if you have multiple banner it will update ALL banners

edit gotobanner.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1");

change to:

$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1 WHERE adid='$id'");

Well spotted. :)

mkdevo 06-16-2005 04:38 PM

Quote:

Originally Posted by fuse3k
does this mod work with text ads? More specifically, does it work with Google AdSense?

anyone?


All times are GMT. The time now is 06:00 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.01219 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)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