1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Manager 1.6

User Manager

  1. tady_bear

    tady_bear New Member

    user account modifide

    Hi,
    How a member change his/her own account setting .
    any plugin req. ??
    RSS

    Like This Log Out My Profile Notifications
     
  2. frytec

    frytec Member

  3. saosangmo

    saosangmo Active Member

    hi,
    How can I remove massive users. I have 34000 spam users.
    thanks
     
    shibuya246 likes this.
  4. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

  5. valMETNG

    valMETNG Administrator Staff Member Admin

    Depending on how many good users you have, it might be easier to single those out and then execute an SQL statement using multiple values. For example, if out of your entire user table, only user_id 3 and 4 were valid users (and everyone else was spam), you could select those records like this:
    Code:
    SELECT * FROM hotaru_users WHERE user_id NOT IN (3,4)
    Assuming you verify that these were the all the spam users, you could execute this:
    Code:
    DELETE FROM hotaru_users WHERE user_id NOT IN (3,4)
    Be aware that this will only delete the users. If those users have also created posts, you could do something similar, like:
    Code:
    DELETE FROM hotaru_posts WHERE post_author NOT IN (3,4)
    For comments, you could do:
    Code:
    DELETE FROM hotaru_comments WHERE comment_user_id NOT IN (3,4)
    However, whenever you are executing manual SQL statements on your database, I always suggest making a backup of the entire database first. I've learned many hard lessons from not doing this.
     
    shibuya246 likes this.
  6. vetsols

    vetsols Active Member

    Thank you valMETNG for posting this fix.



    To ENABLE the Select All Check Boxes function, just follow these simple steps.. (RECOMMEND USING NOTEPAD++)

    OPEN /content/plugins/user_manager/javascript/usermanager.js

    FIND:
    Code:
    //ko.applyBindings(new UserManagerViewModel());
    AFTER add:

    Code:
    $(function () {
         $('#checkall').click(function () {
              $(':checkbox').not(this).prop('checked', this.checked);
         });
    });
    SAVE and UPLOAD replacing the file.

    NEXT, OPEN /public_html/content/plugins/user_manager/user_manager.php

    FIND at around Line 10:

    Code:
    * hooks: hotaru_header, install_plugin, admin_header_include, admin_plugin_settings, admin_sidebar_plugin_settings, post_manager_user_name, comment_manager_user_name, submit_edit_end, admin_sidebar_users
    REPLACE with:

    Code:
     * hooks: hotaru_header, install_plugin, admin_header_include, admin_plugin_settings, admin_sidebar_plugin_settings, admin_sidebar_users, post_manager_user_name, comment_manager_user_name, submit_edit_end[COLOR="#FF0000"], header_include[/COLOR]
    FIND at line 50 to 52
    Code:
      /**
      * Add link to user at bottom of Submit Edit Post
      */
    AFTER add:

    Code:
        public function header_include($h)
        {
            if ($h->currentUser->getPermission('can_access_admin') != 'yes') { return false; }
            $h->includeJs();
        }
    SAVE and UPLOAD replacing the file. CLEAR the cache and then navigate to your user manager area. The Check All function now works. AGAIN, Thank you valMETNG for posting this fix.
     
  7. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    I cant see the "Check All Box" on the User Manager page. Can you upload a screenshot showing it ?

    thanks
     
  8. valMETNG

    valMETNG Administrator Staff Member Admin

    For clarification, I believe this post is referencing this.
     
    vetsols likes this.
  9. vetsols

    vetsols Active Member

    Here you go. You'll see the top row has ID Role Username (click for details) Joined Account Permissions

    It is the Check Box next to that top Permissions. I hope this helps.
     

    Attached Files:

  10. vetsols

    vetsols Active Member

    YES, It is... I just edited it to help clarify things a bit better.
     
  11. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    thanks
     
    vetsols likes this.
  12. vetsols

    vetsols Active Member

    Just 2300 pages of users to go.... LMAO
     
  13. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    are you trying to delete all the users who are tagged as spam or pending or something? if so there might be a quicker way
     
  14. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

  15. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

  16. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    i have made a quick update here to fix the "check all" button and add some more filter options for result sizes
    http://forums.hotarucms.org/resources/user-manager.38/
     
  17. vetsols

    vetsols Active Member

    Yeah, I tried that. Can't go any higher than 75

    Code:
    Request-URI Too Long
    The requested URL's length exceeds the capacity limit for this server.
    
    Additionally, a 414 Request-URI Too Long error was encountered while trying to use an ErrorDocument to handle the request.
    I run the server, but I can't find the settings to adjust that.
     
  18. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    Normally a default for this might be 8190 chars or higher

    We could change it to a post request which might be better. Will check

    How did you end up with so much spam in the first place? Are you using spam plugins?
     
  19. vetsols

    vetsols Active Member

    It's something I deliberately set up, but I haven't had time to keep up with it.
     
  20. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    ok, understood. Have you tried the spam plugins though. They do stop quite a bite of spam getting through
     

Share This Page