We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14779
    • 256 Posts
    I have OpenAds running on my server, and the ad invocation code is in PHP. This is an example:

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


    I copy/paste this into a snippet, and call the snippet in MODx wherever I want the ad.

    I have a TV named [*sidebaradspace*]. The default value for this TV is the snippet call: [[ad_title]]

    This has worked for quite some time, however, sometimes it seems to take a while for the ad to show up on the site.
    I’m trying to figure out where the problem is, and wondered if anyone here noticed anything wrong with my implementation.
      PM me to find out how you can get a FREE ipad 2!