Local Mode Tags
Local mode tags are needed to be used by the advanced users having a basic understanding of PHP programming.
A default local mode tag looks like this:
<?php
// The MAX_PATH below should point to the base of your OpenX installation
define('MAX_PATH', '/path/to/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='')
$phpAds_raw = view_local('', 4, 0, 0, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?>
// The MAX_PATH below should point to the base of your OpenX installation
define('MAX_PATH', '/path/to/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='')
$phpAds_raw = view_local('', 4, 0, 0, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?>
Please generate the local mode tag from your OpenX installation.
You should change the MAX_PATH definition to accurately state where OpenX is located in the server's file system:
define ('MAX_PATH', '/path/to/openx');
For more information on local mode tags visit http://www.openx.org/docs/tutorials/local+mode+tags.
- OpenX:
- admin's blog
- Login or register to post comments

RSS
Twitter
Facebook
FriendFeed
Myspace
Linkedin