We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39417
    • 11 Posts
    I install snippet on Modx 1.0.10

    then call:
    [!AnythingRating? &define=`1` &atrGrp=`obj`!]
    [!AnythingRating? &atrGrp=`obj` &atrId=`obj[*id*]`!]

    and rating ... don't save
      • 4041
      • 788 Posts
      Give this a try for your 2nd call, note the changed &atrId:

      [!AnythingRating? &atrGrp=`obj` &atrId=`[*id*]`!]
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 4041
        • 788 Posts
        Due to changes made in 1.0.10, you will also have to edit a core file, yoursite/index-ajax.php.

        Find the following section at the top of the file:
        // Add items to this array corresponding to which directories within assets/snippets/ can be used by this file.
        // Do not add entries unneccesarily.
        // Any PHP files in these directories can be executed by any user.
        $allowed_dirs = array('assets/snippets/ajaxSearch/');


        Edit the $allowed_dirs like the below:
        $allowed_dirs = array('assets/snippets/ajaxSearch/', 'assets/snippets/anythingRating/classes/anythingRating.class.inc.php');

          xforum
          http://frsbuilders.net (under construction) forum for evolution