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)

Big J 06-13-2005 04:15 PM

Quote:

Originally Posted by MissKalunji
it still saves up your settings......i have the same error 2....


It's not saving my settings. I also cant see the DHC Banner System option links in the nav, the phrases are not displaying. All I have are empty, clickable boxes.

MissKalunji 06-13-2005 04:16 PM

Quote:

Originally Posted by Big J
It's not saving my settings. I also cant see the DHC Banner System option links in the nav, the phrases are not displaying. All I have are empty, clickable boxes.

no no trust me it does.....and as for the phrases i had to twik the index in adminc instead of making it look for the phrases (for some reason it doesnt) i put up the word myself here's what i did and it works fine :

//Banner
construct_nav_option("Banner View", 'dhcbannerads.php?do=view', '<br />');
construct_nav_option("Banner Add", 'dhcbannerads.php?do=add', '<br />');
construct_nav_option("Banner Settings", 'dhcbannerads.php?do=settings', '<br />');
construct_nav_group("DHC Banner System", '<hr />');
//Banner

Aeolian_X 06-13-2005 10:27 PM

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
Getting this same error, but the settings do seem to save. Though I still am not seeing any banners on the forum pages.

Big J 06-13-2005 10:30 PM

Thank you Miss!

MissKalunji 06-13-2005 10:57 PM

Quote:

Originally Posted by Big J
Thank you Miss!

np :nervous:

MissKalunji 06-13-2005 10:57 PM

Quote:

Originally Posted by Aeolian_X
Getting this same error, but the settings do seem to save. Though I still am not seeing any banners on the forum pages.

make sure that when u put up the banner code into your forum sometimes in the header template....that you put up example : number 1 make sure that when u add the banners from teh admincp make sure you put 1 in location...

Aeolian_X 06-14-2005 02:37 AM

Quote:

Originally Posted by MissKalunji
make sure that when u put up the banner code into your forum sometimes in the header template....that you put up example : number 1 make sure that when u add the banners from teh admincp make sure you put 1 in location...

Ah Ha!!! That's Beautiful! lol! Thank You Very Much MissKalunji. :)

Densit5 06-14-2005 03:46 AM

Checked why my click throughs were not working - totally missing the URI and found this code:-

Back up your file before you edit it please!


functions_bannerads.php

Code:

Find
Around line 39


global $DB_site, $banner_ad;

Replace

global $DB_site, $banner_ad,$vboptions;

Find
Line 77 - 79

 
case "image":
        $banner = "<a href=\"clickthru.php?uid=$ad[uid]\" target=\"_blank\"><img src=\"$ad[banner_image]\" height=\"$ad[height]\" width=\"$ad[width]\" border=\"0\"></a>";
break;

Added the full url code to the clickthru links - This should also work for people that have VB advanced installed, since i have it too :lick:

Replace

case "image":
        $banner = "<a href=\"$vboptions[bburl]clickthru.php?uid=$ad[uid]\" target=\"_blank\"><img src=\"$ad[banner_image]\" height=\"$ad[height]\" width=\"$ad[width]\" border=\"0\"></a>";
break;

Find
Line 95 - 102


case "other":
        $banner = $ad['other_code'];
        $url_code = "clickthru.php?uid=" . $ad['uid'];
        $banner = str_replace("{url}", $url_code, $banner);
        $banner = str_replace("{image}", $ad['banner_image'], $banner);
        $banner = str_replace("{height}", $ad['height'], $banner);
        $banner = str_replace("{width}", $ad['width'], $banner);
break;

Replace

case "other":
        $banner = $ad['other_code'];
        $url_code = "$vboptions[bburl]clickthru.php?uid=" . $ad['uid'];
        $banner = str_replace("{url}", $url_code, $banner);
        $banner = str_replace("{image}", $ad['banner_image'], $banner);
        $banner = str_replace("{height}", $ad['height'], $banner);
        $banner = str_replace("{width}", $ad['width'], $banner);
break;

This hack is nice but will not work on "other" for google addsense javascripts until you change the case "other" code.

Aeolian_X 06-14-2005 08:23 PM

I've noticed that my banners do not stay active. Not sure what's causing it, but I have had to recheck the Active box three times now.

I'd still like a fix for this too.

Quote:

Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx/xxx/xxx/xxx/xxx/forum/includes/adminfunctions.php:223) in /admincp/dhcbannerads.php on line 304

MissKalunji 06-14-2005 08:28 PM

Quote:

Originally Posted by Aeolian_X
Ah Ha!!! That's Beautiful! lol! Thank You Very Much MissKalunji. :)

n e time glad i could help :)


All times are GMT. The time now is 08:06 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.01103 seconds
  • Memory Usage 1,749KB
  • 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_code_printable
  • (8)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