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)
-   -   DHC Banner Ads - Upgrade [1.4] (https://vborg.vbsupport.ru/showthread.php?t=79738)

COBRAws 06-14-2005 11:48 PM

i apreciate this hack.

Any future move towards a backend? i mean, something like phpmyads, so publishers could see number of clicks of banners assigned to them? Just a tip.

ThePartyBorg 06-16-2005 01:48 PM

Saw somebody posting this same question a page ago, but I'm also having this problem, and the answer there was to just create the table, nonsense ofcourse. Anyway, the problem:

Invalid SQL: SELECT displayads FROM usergroup WHERE usergroupid='2'
mysql error: Table 'jnfn.usergroup' doesn't exist

mysql error number: 1146

So there is still a prefix missing in the code. So in functions_bannerads.php change line 34 to:

PHP Code:

$GetUsergroup $DB_site->query_first("SELECT displayads FROM ".TABLE_PREFIX."usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'"); 

Solved the errors for me.

Edit:

Noticed another one missing in the code which has to be added to profile.php

Find the following in profile.php
PHP Code:

$getBanners $DB_site->query("SELECT * FROM dhc_ads WHERE userid='$bbuserinfo[userid]'"); 

And replace this with:
PHP Code:

$getBanners $DB_site->query("SELECT * FROM ".TABLE_PREFIX."dhc_ads WHERE userid='$bbuserinfo[userid]'"); 


Densit5 07-03-2005 09:05 AM

ja, most of the prefix problems were found/fixed a couple of pages back! - but its good you found and fixed your code!

Aeolian_X 07-05-2005 03:31 AM

Quote:

Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx/xxx/xxxx/xxxx/xxxx/forum/includes/adminfunctions.php:223) in /admincp/dhcbannerads.php on line 313
So is there ever going to be a fix for this error? Has anyone looked into it?

digidivakathy 07-06-2005 06:50 PM

Forgive me for asking this, but there are an awful lot of posts here...is this working now? If I download and install, am I good to go?

Thanks!

Aeolian_X 07-08-2005 03:17 PM

Well, no. It works, but still has bugs that obviously aren't being fixed. So I'm clicking UNinstall.

MissKalunji 07-08-2005 03:22 PM

Quote:

Originally Posted by digidivakathy
Forgive me for asking this, but there are an awful lot of posts here...is this working now? If I download and install, am I good to go?

Thanks!

the only bug is in admincp the link dont work and u can fix it by urself besides that 100% good 2 go

CrimsonGT 07-13-2005 06:52 AM

I love this hack, only problems im having is I want to be able to sell advertisement space for a certain period of time and time isnt included in this. Also I want to be able to display a random banner ad in one spot on refresh. Anyone done this yet?

c0d3x 07-17-2005 04:06 PM

any news? i would like to have the time option ;)

paul41598 07-20-2005 12:14 AM

Can someone please explain this hack, or certain features at least. Is it like PHPadsnews?

Quote:

Features:

Displays stats of ads in specified users control panel
This feature here to me, means that a user can log in his/her CP and see their stats. Am I wrong?


All times are GMT. The time now is 08:05 AM.

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.01209 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_php_printable
  • (3)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