We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/617">bannerads 0.8-rc1</a> by ministrycrm.

    Brief Description:
    This module is a banner ad rotator and tracking tool.



    It will track banner ads on your site and external sites and give you analytics such as:

    Impressions

    Clicks
      • 22840
      • 1,572 Posts
      Looks great, will be installing and testing this one. grin

      Thanks
        • 7345
        • 12 Posts
        Did u check your instructions? This does not work at all! When I’ve tried to run the module, it cant find his table in the database, and it is logically - I did not get the step where this table was created?!


        CMS encountered the following error while attempting to parse the requested resource:
        « Execution of a query to the database failed - Table ’XXXXXXXXXXXXXXX.XXXXcrm_banner’ doesn’t exist »

        Edit: It seems that u did not check for the table prefixes. The tables are created, but with default prefix.

        Regards!
          • 19298
          • 76 Posts
          MichaelHarringtonDesigns Reply #4, 16 years, 6 months ago
          I tried to get this to work, but when I tried to run the module I got the same problem. I would like to get this to work as a banner ad rotator and tracking tool would be a great tool to have..

          The folder "banners" permissions have been set to 777 but still not working

          Does anyone have any suggestions on how to get this to work?

          Also when I place banners in the banners folder can you use jpg and swf files together?
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            Quote from: MichaelHarringtonDesigns at Mar 27, 2010, 10:36 AM

            I tried to get this to work, but when I tried to run the module I got the same problem. I would like to get this to work as a banner ad rotator and tracking tool would be a great tool to have..

            The folder "banners" permissions have been set to 777 but still not working

            Does anyone have any suggestions on how to get this to work?

            Also when I place banners in the banners folder can you use jpg and swf files together?


            Try using 755 and the files 644, if you server uses phpsuexec then using 777/666 will result in 500 errors and is also a security risk if I recall correctly. Using 755/644 fixes this issue and is more secure.
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting
              • 13610
              • 52 Posts
              I have installed this per the instructions and am having the following issues:

              1. Redirect to Target / Destination URL not working
              2. Impression and click counter not working.

              I noticed in my Bannerrotator snippet that you have a call to impressiontracker. The instructions do not explain the use of impressiontracker.

              $rotator[$x] = '<script src="impressiontracker?id='.$row[id].'"></script>
              <a href="bannertracker?id='.$row[id].'&code='.$row.'&motiv='.$row.'"><img src="'.$row[bannerurl].'" alt="'.$row[adname].'" border="0" /></a><br>';
              }
              


              http://modx.tsia.com/bannertracker

              notice that the banner is also displaying in the right column.

              Thanks in advance,

              Jason Buck

                Jason Buck
                • 19298
                • 76 Posts
                MichaelHarringtonDesigns Reply #7, 16 years, 6 months ago
                I Cannot find a way to get the banners to rotate, I know its a problems with the tracking page but I have done exactly what the instructions have said but still no luck...



                  • 19298
                  • 76 Posts
                  MichaelHarringtonDesigns Reply #8, 16 years, 6 months ago
                  I have managed to get this to work on my site , its allot better than the flash banner I had at the top of my site.

                  Now I can record the amount of clicks a banner has I can see which ones are doing well and which are not

                  Jason

                  I have added two banners both have the position 2, I then added this call [!bannerrotator? &position=`2`!] where I wanted the banner to display. If you then hit F5 or refresh half a dozen times you will see the banners change, they also change when you view another page.

                  I think the more banners you add the faster the banners change but I still need to test this out, I also need to validated the code to XHTML...

                  My site far from finished but you can see a working example here
                  http://www.michaelharringtondesigns.com/
                    • 14036
                    • 42 Posts
                    Would absolutely love to get this script to work but when I run the module I am getting

                    Warning: include_once(../assets/modules/bannerads/inc/lang/english.inc.php) [function.include-once]: failed to open stream: No such file or directory in /home/jessay/demo.angrygaming.org/manager/processors/execute_module.processor.php(114) : eval()'d code on line 18
                    
                    Warning: include_once() [function.include]: Failed opening '../assets/modules/bannerads/inc/lang/english.inc.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php:/home/jessay/demo.angrygaming.org/manager/includes/') in /home/jessay/demo.angrygaming.org/manager/processors/execute_module.processor.php(114) : eval()'d code on line 18


                    « MODx Parse Error »
                    MODx encountered the following error while attempting to parse the requested resource:
                    « Execution of a query to the database failed - Table 'ag_cmsx.agx_crm_banner' doesn't exist »
                          SQL: SELECT * FROM `ag_cmsx`.`agx_crm_banner`
                          [Copy SQL to ClipBoard]
                     
                    Parser timing
                      MySQL: 	0.0065 s	(1 Requests)
                      PHP: 	1270793288.5899 s	 
                      Total: 	1270793288.5964 s	 
                      • 7690
                      • 166 Posts
                      After a lot of trying i have figured out how it works.
                      The installation doc is just crap.

                      Here is what to do:

                      Upload the folder: bannerads to assets/modules/

                      Create a new module. Name it "Banner Ads" Description "<strong>0.8 RC</strong> Banner Ads by Ministry CRM".
                      Past the code from bannerad_mod.php

                      Create rotator snippet called "bannerrotator" and paste in code from file bannerrotator.php

                      Create tracker snippet called "bannertracker" and paste in code from file bannertracker.

                      Create new modx page called bannertracker. Make sure alias is "bannertracker" or you will need to update
                      the banner rotator snippet to match your alias. (Lines: 21, 36, 51, 66)
                      Past this in the content: [!bannertracker!]

                      Place [!bannerrotator? &position=`1`!] in the place where you want to show the banner. Position Id is the number you have created when you uploaded a new banner.
                      If you want a banner rotation, fill the same position number for all the banners in the set.

                      Create a folder in your assets directory called "banners" and give that folder appropriate permissions so modx has a spot to put your banners. CHMOD 777

                      In manager Hit F5 to refresh the module. And start adding banners.