The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Admin Register only - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Admin Register only (/showthread.php?tid=180)

Pages: 1 2 3 4


Admin Register only - mudmin - 07-10-2016

Yes...Although I'm not sure if I will make the admin ability to change passwords public. I need to go over that with Brian. That could be a plugin or something like that that goes in the usersc folder.


Admin Register only - MagikMindFreak - 07-10-2016

As long as I would be able to get that feature, I would be satisfied.


Admin Register only - mudmin - 07-10-2016

In a pinch, you can create a new user with the password you want and then copy the password hash in the db from your new user to the one you want to update. It's a bit hackery, but it works.


Admin Register only - MagikMindFreak - 07-10-2016

This will help me a lot! Thanks for all the work and effort you guys are putting into this!


Admin Register only - MagikMindFreak - 07-10-2016

Well if I could do it directly when I click the user it would be a lot easier.


Admin Register only - mudmin - 07-10-2016

Absolutely. I think big picture we're going to put in a password reset feature, but I can make a custom, one off plugin when I get a chance to let you edit the pw directly.



Admin Register only - MagikMindFreak - 07-10-2016

That would be amazing! I wouldn't be the only admin changing passwords which is why I want this. Not all the other admins know how to use a databases and all


Admin Register only - mudmin - 07-10-2016

This is a direct replacement for the admin_user.php file. Ideally, you should put it in the usersc folder and point the path of the init.php to the proper place. That would stop our updates from breaking this.

If you're not familiar with how that works, when a userspice core is loaded, it checks to see if there is a file in the usersc folder that has the same name. If it does, it loads the one in the usersc instead. This is to encourage you to not mod the core files and have our updates not break your software. Here ya go....

http://hastebin.com/jeguzomahe.xml


Admin Register only - MagikMindFreak - 07-10-2016

Well I'm not too familiar with the coding, so il just wait for the new update to come out and see where it goes from there.


Admin Register only - mudmin - 07-10-2016

The ability for admins to change user passwords won't be rolled out in the public release, so I think you're fine replacing admin_user.php with all the code from this file...

http://hastebin.com/jeguzomahe.xml

If you would rather do the custom trick, just create a file in usersc called admin_user.php and change the line that says
Code:
<?php require_once 'init.php'; ?>
to
<pre>
Code:
<?php require_once 'http://yourdomain.com/users/init.php'; ?>
</pre>

and you will be good to go.