Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Badges

Try Vanilla Forums Cloud product

Octaviann New

About

Username
Octaviann
Joined
Visits
14
Last Active
Roles
Member
Points
8
Badges
2
  • Re: Editing badges problem

    Thanks RJ, but i found a solution. After testing many things from other postings regarding this problem, i discovered one which worked. Tested it twice, from different computers and it works 100%. It's the solution provided by @daemoncesar in another post...

    go in applications/yaga/controllers/class.badgecontroller.php
    find the code:

      // Find the rule criteria
      $FormValues = $this->Form->FormValues();     
      $Criteria = array();
      foreach($FormValues as $Key => $Value) {
        if(substr($Key, 0, 7) == '_Rules/') {
          $RealKey = substr($Key, 7);
          $Criteria[$RealKey] = $Value;
        }
      }
    

    and replace with this:

      // Find the rule criteria
      $FormValues = $this->Form->FormValues();            
      $Criteria = array();
      foreach($FormValues as $Key => $Value) {
        //if(substr($Key, 0, 7) == '_Rules/') {
          $Criteria[$Key] = $Value;
        //}
      }
    

    After you do this, you can edit badges as u like, no more "Target is required.ActionID is required." error. Hope this will help other people as well!

    vrijvlinder