![]() |
|
Managing user for private gallery - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Managing user for private gallery (/thread-13461.html) |
Managing user for private gallery - davidarnoult - 15-08-2020 Hi, I am working a a zp private gallery and preparing migration from gallery2. I have some questions. Q1: I need to create 80 users... Is there a way to create zp users by bulk? Thanks! Managing user for private gallery - acrylian - 16-08-2020
There is nothing ready made. You could create something using the Zenphoto_Administrator class: https://docs.zenphoto.org/1.5.x/class-Zenphoto_Administrator.html
Yes, the point of the plugin is to send a notification to the user to change the password which naturally require access to their user account (you can disable that access but it is not recommended especially for the GDPR). The user account naturally is on the backend. How much acccess they have depends on the rights you assign to them.
That bar is called the admintoolbox btw ;-). What user You can disable it by using this in your theme's
If you want specific users not to see it you have to add a check like:
Or by checking their general rights level by using something like
Please see the related user guide article for the constant names. Managing user for private gallery - davidarnoult - 19-08-2020 Thanks @acrylian! [code] I have in my theme footer just before my tag, [/code] I have tested with priorities, clear html cache etc... adminToolbox is still there. Any ideas to debug? Is there a specific order/place to publish the function zp_remove_filter() in functions.php? Managing user for private gallery - acrylian - 20-08-2020 I just tried with the include Zenpage theme and removing the filter using The order when you call it is not necessary actually as Also force clear your browser cache, perhaps even several times. It is very persistent these times in every browser. For debugging you could set the definition of the constant DEBUG_FILTERS to true within Managing user for private gallery - davidarnoult - 21-08-2020 Thanks, it is working good, it was effectively a cache issue ;-) |