1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

ragtek delete Errorlog

Discussion in 'Add-on Releases [Archive]' started by ragtek, May 3, 2011.

  1. ragtek

    ragtek Guest

    Attached Files:

    tranhuyvc, Koutedar, Fuhrmann and 9 others like this.
  2. Vincent

    Vincent Well-Known Member

    Awesooooome! :D

    You beat me this time mister :p
     
  3. Veer

    Veer Well-Known Member

    Well done ragtek.
     
  4. ragtek

    ragtek Guest

    ****Update*****

    1.0.1 includes now a own "admin permission" for viewing & deleting the xenforo error log
     
  5. Vincent

    Vincent Well-Known Member

    Have you asked for a Thread Title change?
     
  6. bogus

    bogus Guest

    DANKE
     
  7. ragtek

    ragtek Guest

    no, don't know a better name:D
     
  8. M@rc

    M@rc Well-Known Member

    Finally, a quick way to delete all the error logs easily.
     
    TheVisitors likes this.
  9. a legacy reborn

    a legacy reborn Well-Known Member

    Prune Error Log? Might want to add some options to prune after x amount of days then. lol.
     
  10. Vincent

    Vincent Well-Known Member

    I actually mean that this mod now also works as permission tool ;)
     
  11. ragtek

    ragtek Guest

    ragtek include errorlog permissions and truncate errorlog sounds also strange:p
    choosing class names and product names is one of the hardest things for me^^
     
    Vincent likes this.
  12. Brogan

    Brogan XenForo Moderator Staff Member

    ragtek Errorlog Management ?

    or

    ragtek Manage Errorlog ?
     
    Vincent likes this.
  13. ragtek

    ragtek Guest

    but management would IMHO also include "easy searching" and other stuff and not only prune table and permission check (just got another feature idea for this add-on:D )
     
    Vincent and Veer like this.
  14. Floris

    Floris Guest

    As super admin I was able to click it, with the default permission. It already says 'no logs here', without checking the checkbox first in the admins > permissons > view/delete logs.
    1.0.2
     
  15. ragtek

    ragtek Guest

    That's the normal behaviour.

    SuperAdmins are allowed to do EVERYTHING, because xenforo returns always TRUE on there perm check:)
    PHP:
        /**
        * Determines if the current user has the specified admin permission.
        *
        * @param string $permissionId
        *
        * @return boolean
        */
        
    public function hasAdminPermission($permissionId)
        {
            if (empty(
    $this->_user['user_id']) || empty($this->_user['is_admin']))
            {
                return 
    false;
            }

            if (
    $this->isSuperAdmin())
            {
                return 
    true;
            }
    ..
     
  16. Floris

    Floris Guest

    Ok, glad it's working as designed :)
     
    Vincent likes this.
  17. ragtek

    ragtek Guest

  18. ragtek

    ragtek Guest

    Upgrade!!!!!!!! (version 1.1 now available for free @xenforo.com)

    Changehistory

    1.1

    Superadmin and admins with permissions to view the error log will see how many errors are stored on the acp index page
     
    Veer and dieketzer like this.
  19. CRDeveloper

    CRDeveloper Member

    Errornator bonk.gif

    Thanks! Installed!
     
    wickedstangs likes this.
  20. ragtek

    ragtek Guest

    f*ck, why didn't you say this name earlier:D
    it's much better as "delete errorlog" :D

    new name for this add-on "ragtek's errornator"
    a new version with some more features will be released soon(1-2 years;) )
     

Share This Page