We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32494
    • 14 Posts
    I’ve installed Adsmanager on my modx but get the following error:

    Fatal error: Call to undefined function: date_default_timezone_set() in /usr/www/users/solidw/assets/snippets/adsmanager/adsmanager.inc.php on line 64

    Line 64 has the following in it:
    date_default_timezone_set("UTC");

    How can I fix this?
      • 5595
      • 9 Posts
      It seems you are using an old PHP 4. You can comment this line, everything will work OK.
        • 32494
        • 14 Posts
        Thanks for your help. Problem sorted.
          • 21295
          • 22 Posts
          Im having trouble adding swf’s sad they just doesnt appear, the error console says: ’swfobject is not defined’ Someone can help me?
            • 5595
            • 9 Posts
            --------------------------------------
            Adding a flash banner.
            --------------------------------------
            AdsManager uses SWFObject javascript library version 1.5
            (http://blog.deconcept.com/swfobject/) to display Flash media.
            If you prefer another method of including SWF to your page,
            replace the following template at the beginning of the ’adsmanager.inc.php’:

            var $flash_tpl = "<div class='banner' id='flashcontent[+id+]'>
            </div>
            <script type='text/javascript'>
               var so = new SWFObject('[+img+]', 'mymovie', '[+width+]', '[+height+]', '7', '#FFF');
               so.addVariable('url', '[+link+]');
               so.write('flashcontent[+id+]');
            </script>";


            Due to the technology limits, the location of the web page
            where the user goes after action on a SWF banner, is stored
            directly in the SWF movie. If you want AdsManager to calculate
            clicks and ctr on such a banner, you need to modify it slightly.
            You should find (hope it would be easy) and change

            getURL ("http://google.com/", "_blank"); 


            to

            getURL (url, "_blank"); 


            Where ’google.com’ is a destination web address. And, the ’google.com’ URL
            you should place to the link in the settings of the banner in the AdsManager.
              • 21295
              • 22 Posts
              I have the swfobject.js in my <head>, Do I have to do something else? :S sorry if im tooo newbie in this hehe when I see the html generated the swf call is there, just doesnt display any.. the html generated is :


              <div class="superior" id="publicidad"><div id="flashcontent" class="banner">
              </div>
              <script type="text/javascript">
                 var so = new SWFObject('/assets/snippets/adsmanager/banners/fahorro.swf', 'mymovie', '233', '277', '7', '#FFF');
                 so.addVariable('url', 'http://soyjaguar.com/assets/snippets/adsmanager/adsmanager.inc.php?ad=3');
                 so.write('flashcontent');
              </script></div>


              But it just doesnt display .. I check the file and its there, so Im out of Ideas thx for the answer laugh
                • 5595
                • 9 Posts
                Have no idea, everything seems to be ok. Any javascript errors ?
                  • 21295
                  • 22 Posts
                  No error, so I decided to change the script to load the swf the one in jquery tools, laugh now im having a wierd problem I have like 3 o 4 banners added and ready but now Im trying to add another, and it doesnt work, it says that the folder may not exist or be writable but.. it is! in fact it added another in the first place.. wierd stuff :S I tried adding the file via ftp and then just writing the direction.. same error sad Any idea?

                  thx in advanced
                    • 21295
                    • 22 Posts
                    it just fails when I add flash banners, jpg files doesnt show the problem =(
                      • 4429
                      • 429 Posts
                      What are the calls for this? Not a single call is mentioned in the documentation.

                      I have installed it and setup a snippet called "adverts" then i upload my add, despite setting the size to 683x193px, ad manager displays my ad at 0x0px