View Single Post
(#4)
juven14's Avatar
juven14 juven14 is offline
Moderator
juven14 is on a distinguished road
 
Posts: 1,305
Join Date: Mar 2006
Location: NJ/NYC Area
Default 06-14-2006, 09:29 PM

Try it from the core file your are trying to display it on (viewlisting.php, index.php, etc):

PHP Code:
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'];
        
$phpadsnew = $phpAds_raw['html'];
        
$class_tpl->assign('phpadsnew', $phpadsnew);
    }
}


Then at the template add this where you want it to display (viewlisting.tpl.php or etc):
Code:
{$phpadsnew}




Regards,

John
mods.auscity.com
v3.1.4 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton

Last edited by juven14 : 06-14-2006 at 09:32 PM.