[TYPO3-english] openX banner integration with typo3 template

Søren Malling soren.malling at gmail.com
Thu Nov 20 11:36:24 CET 2008


Hi Rupali,

Did you even search the TER before you posted this message?

http://typo3.org/extensions/repository/?tx_terfe_pi1[view]=search&no_cache=1&tx_terfe_pi1[sword]=openX

Regards,

Søren

On Thu, Nov 20, 2008 at 11:02 AM, Rupali <rupali.ffm at googlemail.com> wrote:

> Hello list,
>
> i would like to know how to integrate an openX banner with template? I have
> the following code for banner.
>
>
>
> <?php
>
>  /* <!-- OpenX XML-RPC Tag v2.6.3 -->
>
>
>
>    //ini_set('include_path', '.:/usr/local/lib');
>
>    require 'openads-xmlrpc.inc.php';
>
>
>
>    if (!isset($OA_context)) $OA_context = array();
>
>
>
>    $oaXmlRpc = new OA_XmlRpc('ads.brainfruit.info',
> '/www/delivery/axmlrpc.php', 80, false, 15);
>
>
>
>    //view($what='', $campaignid=0, $target='', $source='', $withText=false,
> $context=array(), $charset='')
>
>    $adArray = $oaXmlRpc->view('zone:11', 0, '_top', '', 0, $OA_context,
> 'UTF-8');
>
>    $OA_context[] = array('!=' => 'bannerid:'.$adArray['bannerid']);
>
>    $OA_context[] = array('!=' => 'campaignid:'.$adArray['campaignid']);
>
>
>
>    echo $adArray['html'];
>
> ?>
>
>
>
> Thanks.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list