View Full Version : Allow MOD To edit on a SINGLE template?
stryka
06-11-2007, 01:56 PM
I have a template for a custom page that I update on a weekly ... but i wanna give it to my MODS to do... but only give them edit or view access to that single template....
Any suggestions?
and what files do i need to edit so it appears in their Control panel
nexialys
06-11-2007, 06:56 PM
can't be done... the system is flexible, but not that much...
i'm sure nobody will come with a secure solution... or will have to rework a lot of files... not for free...
Adrian Schneider
06-11-2007, 06:58 PM
You'd have to create a custom page that handles the editing of that template.
stryka
06-11-2007, 08:23 PM
This would be such a good feature to have... they can allow custom templates to be flagged for moderator/supermod accesss...
a custom page to handle templates sounds doable... anyone know the files that i need to look at first..
You'd have to create a custom page that handles the editing of that template.
Adrian Schneider
06-11-2007, 08:30 PM
Hm...
Two parts,
1) a form that displays the current contents of the template SELECT content_un FROM template WHERE styleid = x and title = 'template_name';
2) upon submitting the form, compile the template (adminfunctions_template.php - compile_template() ) and write the posted data to the 'template_un' column, and the compiled to 'template' column.
stryka
06-18-2007, 04:46 PM
ok... i almost figured a quick work around...
i have made a copy of the template.php file... and created a direct link to to the file within my MODCP navbits....
they are able to edit... BUT when they click save it brings them back to the full listing of templates to edit...??
Which part of the file do i edit to have the redirect go back to the modcp index page?
Thanx
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.