Member
Member
lainyrache   2011-08-18, 12:55
#1

Hi
I have various admin users set to edit and upload to their own single albums.
Everything is now working (really great) except the user cannot create new thumbnails on the front without asking admin to purge html cache. ( via overview page)
Can anyone guide me on adding a 'purge html button' to the albums page for a more limited user?
I added overview to the album user permissions but I don't want them to be 'administrators' so the purge html button does not appear with my settings. I also would rather they did not see other overview buttons. Any guidance much appreciated.

Administrator
Administrator
acrylian   2011-08-18, 13:30
#2

That is not that easy. You would have to write a plugin using filters to add a checkbox so it is cleared on saving. That is easiest as for a button nothing will be setup. See the plugin tutorial about that.

Member
Member
lainyrache   2011-08-18, 15:00
#3

Thank you for the prompt reply.
If I compromised and let the album user see the overview page, Would that offer a simpler solution (adding the button to the overview page for a limited user) ? many thanks

Administrator
Administrator
acrylian   2011-08-18, 15:19
#4

You will have to modify the the static_html_cache plugin for that as you need to change the rights. Look at its function static_cache_html_purgebutton(). Info about the rights on the user guide.

But why don't you just let them wait until the cache updates itself as set on its options?

Member
Member
lainyrache   2011-08-18, 17:30
#5

Thank you,
I will have a look at the plugin.. and if that is all too tricky, then yes they will have to wait.. many thanks for the guidance

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.