We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7690
    • 166 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?

    You can’t use swf, since the code only created an image html code.
      • 14036
      • 42 Posts
      Thank you so much DNA, I also want to point out that if you use custom prefixes when you first setup your modx install you will need to open up phpMYadmin
      locate modx_crm_banner and replace modx_ with the custom one you created. The same for modx_crm_banner_tracker
        • 29525
        • 388 Posts
        DNA

        Thank you for your updated instructions! I wouldn’t have made this far without it.

        I do have a couple of questions.

        After I click on the banner a couple of times, I open the module and I see the number of clicks for that banner. I assume this is where I should be seeing the collected data. The number of impressions is at zero. Not sure how to fix this?

        If I look at the bannertracker page, I see the following information. I don’t understand this. Not sure what this is supposed to say/do?

        Banner Name:
        Impressions:
        This banner was clicked on: 1 times
        Your IP has been logged: 69.4.126.107
        The source motivation code is:
        Before I stopped you, you were headed to the following URL:
        Oh, by the way, here is the banner you clicked on:

        Go ahead, click on it again...

        Thank you!
          www.terrybarthdesign.com
          • 8912
          • 11 Posts
          Thanks to DNA, I wouldn’t have made it this far either.

          But I am having the same problem as Terry, the banner name,impressions etc data is not filled on the bannertracker page, hope this time there will be a help-full reply here. huh

          Banner Name:
          Impressions:
          This banner was clicked on: 1 times
          Your IP has been logged: 69.4.126.107
          The source motivation code is:
          Before I stopped you, you were headed to the following URL:
          Oh, by the way, here is the banner you clicked on:

          Go ahead, click on it again...
            • 22448
            • 241 Posts
            Hey All,

            Followed DNA’s instructions and got the same issue as the 2 posters before me.

            Impressions are at 0 and clicking on the banner does not go to the Target URL but instead opens the bannertracker page with the same text as in the posts above.
            i pretty sure it’s not how it should work.

            Any ideas?
              • 22448
              • 241 Posts
              It seems that the main issue here is confusion about what should be included in the bannertracker page.

              I also noticed there’s an impressions tracker page being called but there’s no mention of it in the instructions. Perhaps this is the cause of the impressions counter being 0.

              Would the author of this potentially very useful module please revisit the instructions and give us more details?

              Thank you in advance.
                • 17282
                • 283 Posts
                Ive got it all working fine, Apart from like everyone else .. the impressions .. going to work on this and see if I can fix it ...
                  Everytime you use Flash ... a puppy dies .....
                  R.G Taylor
                  • 19636
                  • 29 Posts
                  Sorry Guys, Been crazy busy.

                  As far as the script landing on the banner tracking page and not redirecting you... There is a php header redirect at the bottom of the snippet that is commented out.

                  Banner name: Not sure why that is not showing up for you. The banner name comes from this code:
                  $name = $row[adname];
                  echo "Banner Name: ".$name."<br>";

                  It is pulling the from the adname column in the banner table. I will need more information. When your creating a banner are you filling in all the fields? Have you checked the database to see if those fields are getting saved to the database?

                  The impression tracker needs the following to work:
                  <script src="impressiontracker?id=1"></script>
                  <a href="bannertracker?id=1&code=mcrm-001&motiv=mcrm-001"><img src="assets/banners/ministrycrmbanner1.jpg" border="0" alt="mcrm" /></a>


                  The first line is what triggers the impressions. Not sure if that is the best way to trigger an impression but it has been working for me. Make sure you set up a page (impressiontracker) as stated in the instructions:
                  8. Create new modx page called impressiontracker (alias) and include the impression tracker snippet call [!impressiontracker!]
                    • 2235
                    • 2 Posts
                    Hi, I downloaded the files from here (http://modxcms.com/extras/package/617) but didn’t see any content that should go into ’impressiontracker’ snippet or a step 8 as mentioned by ministrycrm. Am I missing something here?
                      • 19636
                      • 29 Posts
                      Here is the impressions snippet:

                      <?php
                      /*
                       *  Written by: Joe Hochrein
                       *  Contact: [email protected]
                       *  Created: August 4, 2009
                       *  For: MODx cms (modxcms.com)
                       *  Name: Banner Ads
                       *  Description: Impression Tracking Snippet
                       *  Usage: [!impressiontracker!]
                       */
                      
                      $id = $_REQUEST[id];
                      
                      $table = $modx->getFullTableName("crm_banner");
                      $rs = $modx->db->select("*", $table,"id='$id'");
                      $row = mysql_fetch_assoc($rs);
                      $oldimpressions = $row[impressions];
                      $newimpressions = $oldimpressions + "1";
                      
                      $fields = array(
                      	'impressions' => $newimpressions,
                      );
                      $modx->db->update( $fields, $modx->getFullTableName('crm_banner'),"id='$id'");
                      echo $row[impressions];
                      ?>