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)

aLReeMi 07-02-2006 10:42 AM

thanks alot

EnIgMa1234 07-02-2006 01:07 PM

cheers

overload7 07-02-2006 03:00 PM

Great Mod, thanks a lot.

Alkah 07-02-2006 07:55 PM

No support for this mod?

2fast4ya 07-03-2006 05:20 AM

nope. i've been trying to get help with the black dot but no ones tells me how to fix it in cmps

overload7 07-03-2006 10:39 AM

Quote:

Originally Posted by 2fast4ya
nope. i've been trying to get help with the black dot but no ones tells me how to fix it in cmps

If you are running vba CMPS, put the path to banner.php into the footer replacements. You also have to have a valid banner, as the test one doesn't really work too well. So try using one of your own.

2fast4ya 07-04-2006 04:38 AM

what's the code for the path? and if its in the footer wouldn't that make it at the bottom of the page? Sorry for the Noob questions, this cmps thing is new to me

overload7 07-04-2006 10:17 AM

It all depends on where you have banner.php and your directory structure. I had to just put "banner.php" into my footer replacements. You may have to put in "/'forumroot'/banner.php"

If you have the banner showing in the footer, then put it in the footer replacements, if in the header, then put it in the header replacements. All this can be done in the AdminCP > vBa CMPS options.

Shazz 07-04-2006 05:05 PM

How do you make this thing rotate =\

2fast4ya 07-04-2006 05:48 PM

add several different banners and each time you refresh the pages a different banner will show up

2fast4ya 07-04-2006 05:49 PM

Quote:

Originally Posted by overload7
It all depends on where you have banner.php and your directory structure. I had to just put "banner.php" into my footer replacements. You may have to put in "/'forumroot'/banner.php"

If you have the banner showing in the footer, then put it in the footer replacements, if in the header, then put it in the header replacements. All this can be done in the AdminCP > vBa CMPS options.

OOOkay, i'm trying this now. So i'm going to go into footer replacements, and add
PHP Code:

banner.php 

I'll let you know how it turns out

RPM Photography 07-04-2006 05:58 PM

Hello, I am tryting to install this banner system onto my forums:

https://vborg.vbsupport.ru/showthread.php?t=104432

My forums:

http://www.FloridaGerman.com/forums/

The install went cleanly and I see the Banner thing in the Admin, and adding a banner went smoothly and everything.

But the banners are not showing up on the page, I am a big of a n00b when it comes to mods, so I could really use some help!

Shazz 07-04-2006 06:01 PM

Quote:

Originally Posted by 2fast4ya
add several different banners and each time you refresh the pages a different banner will show up

I ment actually rotate without refresh =\

2fast4ya 07-04-2006 06:07 PM

Oh, I dunno then. LOL. SOrry

2fast4ya 07-04-2006 06:09 PM

Still got teh dot. So i dunno what to do. Can someone give me exact code and exactly where to place code? This question has been on here several times and there was never a clear answer, just do this then this, but never, heres the code put the code here kinda thing.

Shazz 07-04-2006 10:39 PM

just mess around with it.
You can insert it in the header, Navbar anywhere.

jp30 07-10-2006 11:12 PM

Got this working on CMPS and the Forum Hompage, but the redirects don't work on the Gallery.

Instead of pointing to www.website.com/forum/banner.php
when I click on the ad,
it points to this www.website.com/gallery/banner.php

How do I redirect the link on my galleries page? I have PhotoPost Pro, BTW.

Goatpod 07-12-2006 02:30 PM

Quote:

Originally Posted by ckhorne
For those using cmps, you need to edit either the Page or the Default Settings for CMPS. In the "Portal Output Global Variables" section, add:

ads

This will load the necessary variables for the banner system.

ckhorne, thanks for that - worked perfectly :)

and thanks for the wonderful Hack tnguy3n :cool:

FSX 07-15-2006 12:22 PM

Thanks - works great.

One thing I would like to see in a future update maybe, is the banner stats. I would like to see how many page impressions the banner got as well as a export link so I can export the banner stats and email it to my advertising client to show him exactly how many page impressions/clicks his banner got for the month etc.

Otherwise really good job!

BTTF.com 07-15-2006 03:29 PM

The $20.00 version has stats. It also supposedly supports Flash, but I've found that the code doesn't support Flash on IE -- just Netscape.

BTTF.com 07-15-2006 10:21 PM

Quote:

Originally Posted by BTTF.com
It also supposedly supports Flash, but I've found that the code doesn't support Flash on IE -- just Netscape.

Nevermind -- they've got it working now for IE.

rluna559 07-17-2006 08:59 AM

Heres how to show banners within the header of your forums and how to get it to work to show correctly on your CMPS page.

First replace all the content of the Banner System plugin (at global_start hook) with this code below:

Code:

// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{

        $getads = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
        $ads = $vbulletin->db->fetch_array($getads);

        $searchtext = '<!-- / banner ads -->';
        $vbulletin->templatecache['header'] = str_replace($searchtext,
        $searchtext.fetch_template('bannerads'), $vbulletin->templatecache['header']);

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

Then edit your header template and place the following code where you would like your banners to appear.

Code:

<!-- / banner ads -->
Lastly add banner.php to your Header Replacement settings in your CMPS settings.

Note if you want to place the banners within your footer, replace templatecache value from header to footer, add the code where you want to show your banners, then add banner.php to your Footer Replacement settings.

Thats it! Enjoy.

Also I'm having a problem of my own. The settings to edit banners does not show in the control panel. I only see the settings that you would see under banneradmin.php?do=settings .

If I want to edit my banners I have to manually enter the url to banneradmin.php?do=manage

Seems like the cpnav_bannersystem.xml file isn't working correctly for me. Anyone know how to fix this? I can't get around the problem with entering the urls myself but I rather be able to do it in the admin control panel.

tnguy3n 07-21-2006 02:54 PM

Quote:

Originally Posted by rluna559
Also I'm having a problem of my own. The settings to edit banners does not show in the control panel. I only see the settings that you would see under banneradmin.php?do=settings .

If I want to edit my banners I have to manually enter the url to banneradmin.php?do=manage

Seems like the cpnav_bannersystem.xml file isn't working correctly for me. Anyone know how to fix this? I can't get around the problem with entering the urls myself but I rather be able to do it in the admin control panel.


Adding this codebit somewhere in includes/xml/cpnav_vbulletin.xml file:
Code:

<navgroup text="Banner System" hr="true" displayorder="35">
                <navoption displayorder="10">
                        <text>Banner Settings</text>
                        <link>banneradmin.php?do=settings</link>
                </navoption>
                <navoption displayorder="20">
                        <text>Banner Manager</text>
                        <link>banneradmin.php?do=manage</link>
                </navoption>
                <navoption displayorder="30">
                        <text>Banner Stats</text>
                        <link>banneradmin.php?do=stats</link>
                </navoption>       
        </navgroup>


mix_boy 07-21-2006 06:42 PM

thenks man ... i click install ;p

Distance 07-23-2006 01:32 PM

I have installed this hack fine but...

nobody can see them in ie ( internet explorer )


?????


Vb 3.5.4
CMPS 2.1

www.hullchat.co.uk

Oap JTRipper 07-23-2006 02:23 PM

working fine for me

vb 3.6 rc2
vba 2.2

www.oapsquad.com/forums/

if your using custom themes have you done this
PHP Code:

Thishowevermay not be working with some custom skins if navbar template's codebit are changed. To fix that problem, open Banner System plugin (at global_start hook), replace the whole content with:

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

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);



Distance 07-24-2006 11:50 AM

yes i have

www.hullchat.co.uk

can anyone else see this in ie?

Oap JTRipper 07-24-2006 01:07 PM

i can see them

at the bottom of your page

both in firefox :) & ie :(

rluna559 07-25-2006 01:40 AM

I figured out what my problem was. I have bad eyes, I found where the banners can be edited.

On another note, I noticed that custom user groups the banner appears as a dot (at least for my site). The problem was fixed when I changed the banner links to open in a new window. If anyone is having problems viewing the banners, try changing the links to open in a new window.

Oh and you can see how mine is running at CaliberSRT4.net Forums

burntire 07-25-2006 01:41 AM

Is there a way to place the banner in the header area on the right side?

burntire 07-25-2006 02:41 AM

To add in the header to the right

Find

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;

Then add


<td align="right" valign="middle" width=100%>
$bannerads</a><br>

calgdsm 07-25-2006 03:14 AM

Great Job Thank You!!

burntire 07-25-2006 05:24 AM

Quote:

Originally Posted by calgdsm
Great Job Thank You!!

Your Welcome

truongton 07-25-2006 07:00 AM

Nice, Very Thanks

calgdsm 07-25-2006 11:21 PM

Im having a problem with the links when you click on the banner. It takes a user to a 404 error page. Anything i can do??

Also i have Vbanced installed and the banner do not show up on that page. just the main forum.

www.calgarydsm.com/forum/index.php

calgdsm 07-26-2006 01:47 AM

Quote:

Originally Posted by titter
Thanks! this fixed that dreaded dot issue in the CMPS!

http://www.mobmototb.com -- cmps now has banners.



Now ... the same issue happens in the arcade that happened on the cmps, i looked for a global portal option, but didnt find any ... how would I go about globalizing $ads in the arcade?

Fixed the DOT!!!!!!! thank you!!

calgdsm 07-26-2006 01:51 AM

Still having problems with the links.

rluna559 07-26-2006 08:17 AM

Quote:

Originally Posted by calgdsm
Still having problems with the links.

I had the same problm when trying to use the same method to display the banners on the right side of my header. Check out my method of showing the banners on page 15.

burntire 07-26-2006 03:24 PM

Go to your Banner Ad Template and Replace the highlighted color below with the full URL to banner.php

Example <a href="http://www.yoursite.com/forums/banner.php?

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>

calgdsm 07-27-2006 01:08 AM

Quote:

Originally Posted by rluna559
I had the same problm when trying to use the same method to display the banners on the right side of my header. Check out my method of showing the banners on page 15.

Im not having a problem displaying the banners that works fine, just when you click on a link it takes you to a 404 not found page

Anyone have any ideas???


All times are GMT. The time now is 04:37 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.01778 seconds
  • Memory Usage 1,839KB
  • 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
  • (2)bbcode_php_printable
  • (10)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
  • (40)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