View Single Post
(#5)
mfarah01 mfarah01 is offline
Junior Member
mfarah01 is on a distinguished road
 
Posts: 8
Join Date: Jun 2006
Default 06-15-2006, 03:36 AM

Quote:
Originally Posted by juven14
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}



Tried this too and no joy, have no used javascript which works fine. Thanks for your help guys.