vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Banner Ads System (https://vborg.vbsupport.ru/showthread.php?t=104432)

tnguy3n 02-24-2006 11:43 PM

try using full url to image location, including http://www

one.eg6 02-25-2006 01:24 AM

Quote:

Originally Posted by tnguy3n
try using full url to image location, including http://www

Actually, I am using the full image paths.

one.eg6 02-26-2006 02:04 AM

Quote:

Originally Posted by tnguy3n
try using full url to image location, including http://www

Any other suggestions?

fb_brian 02-28-2006 08:55 PM

Quote:

Originally Posted by Shogo
Hi

When I try to add banners with a "&", that's not working
Those "&" are usefull for cibleclick and other ads

Every time I modify the banner link, I have a "amp;" coming behind the "&"
How to fix it?

Thx

Shogo,
I was able to 'fix' this issue by editing the link in my data tables (bannersys_banners) using phpmyadmin.
It doesn't really fix the issue, but it at least lets me serve up the ads properly.

Brian

SysRq 03-01-2006 08:24 PM

Installed this today on 3.5.4, works great. If only there was support for flash ads though. Also, is there a reason this won't work on my cmps homepage? In the source it just shows up as
Code:

<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">

<tr>

        <td><a href="banner.php?do=redirect&bannerid=" target="_blank""><img src="" width="" height="" border="0"></a></td>

</td>

</table>

Instead of a real banner.

tnguy3n 03-02-2006 12:37 AM

You can use conditional in bannerads template to not display the ads in cmps portal.
HTML Code:

<if condition="THIS_SCRIPT != 'your_cmps_script_name'">other banner codes</if>

SysRq 03-02-2006 12:46 AM

I DO want the ads on my cmps portal, the problem is they aren't working. VB 3.5.4.

MXjunk127 03-02-2006 06:56 AM

Ok, so I edited the global_start hook with the suggested edit and I got a DB error, replaced the code with this to link to the right table, it works, however, I cannot get the $bannerads to show in my templates.... Any ideas?

Code:

// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{
    $getads = $vbulletin->db->query_read("vb3_forum"

bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
    $ads = $vbulletin->db->fetch_array($getads);

    // print banner ads
    eval('$bannerads = "' . fetch_template('bannerads') . '";');

    $vbulletin->db->free_result($getads);
    unset($getads);
}

Also placed this in my forumhome template and it doesnt show...any ideas?

Code:

</head>
<body>
$header
$navbar
$bannerads
<!-- main -->


I am sure it is right under my nose, I am just dead tired.... :rolleyes: :disappointed: :nervous:

bashy 03-02-2006 04:57 PM

Hi tnguy3n
Bet ya getting fed up with me :p

Anyway, I have had this installed for quite sometime now
and i have just noticed that it says $bannerads in my forum

Why would this be showing please?

one.eg6 03-03-2006 08:13 PM

Quote:

Originally Posted by SysRq
I DO want the ads on my cmps portal, the problem is they aren't working. VB 3.5.4.

or 3.5.3


All times are GMT. The time now is 04:20 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.02253 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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