Recent Topics

1 Apr 17, 2007 23:31    

My b2evolution Version: 1.8.x

Hello,

I've installed phpAds (a.k.a. openAds) to (hopefully) generate revenue from my site. The ad server requires the use of an invocation tag to call up the banners. I'm using the Melbourne skin, and would like to display the banners in the margins. Where do I put this tag?

<?php
    if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php')) {
        if (!isset($phpAds_context)) $phpAds_context = array();
        $phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
        echo $phpAds_raw['html'];
    }
?>

thanks in advance,
Constance

http://constant-tourist.com

2 Apr 18, 2007 00:06

would like to display the banners in the margins

Which/what /where "margins" ?
Sorry, but does margins relate to the sidebar, the space between posts...

BTW, that skin looks great.

3 Apr 18, 2007 00:48

Please visit my site: http://constant-tourist.com. You'll see blank spaces to the left and the right of the main body. These are the margins where I would like to place the skyscraper ads.

5 Apr 18, 2007 01:49

The skin already contains three columns. Why do I need to add another?

6 Apr 18, 2007 02:17

Sorry, but you have your site has a main content column and a right side Menu column

I may be missing something but thats TWO columns

7 Apr 18, 2007 04:57

Given the large number of posts per page, there is a lot of unused space in the sidebar - under the "powered by" and "hosted by" bits, so if that's the space you want to use then put your code in your skins/melbourne/_main.php file after the bit for the "hosted by" link.

If you're talking about the space OUTSIDE the 'main plus sidebar' that'll be entirely different. You will certainly need to turn the skin into a 3-column layout. The overall skin is designed back when 800 pixels was normal, so it actually is designed to be 2 columns that take up 800 pixels centered in the screen.


Form is loading...