![]() |
Moderator Template Editor
Hello!
This is my first hack and so far, so good :) This hack is a Moderator Template Editor. It will allow your moderators to edit their own template on your vb. It's also setup so they can not edit other templates as it only shows theirs. If you have any questions or have a problem/idea, please post in this thread as I will check it often! I still plan to addon to this hack with the style and replacements stuff too Oh, and please hit install if you plan on using it :) [UPDATE] Security issue fix with Xenon's "Mods can edit users" included for those who use it so that means there are no security issues as far as I know when it comes to non-admins. [/UPDATE] [UPDATE 2] Changed some code to increase security against people disabling javascript - Change the following to update this hack if you have it installed: 1. Open template.php 2. Find: if ($expandset=$bbuserinfo[fieldID]) { echo ""; } else { echo "<script language=\"javascript\"> <!-- alert(\"You are not authorized to view this area\") location.replace(\"http://www.yoursite.net/forums/mod/index.php?s=&action=home\"); //--> </script>"; } 3. Between the } and the </script>"; - add: die; [/UPDATE 2] Pictures will be attached after this thread... Please visit this thread for the latest version of this hack! |
The button to the editor in the Mod CP
|
Mod CP and the templates on the right
|
You're a mod that's not authorized to use this template editor!
|
so basically it allows mods to create their own template set that only THEY can use???
- Mist |
Say you give a moderator their own forums and want to let them update their template to however they want it. This hack lets them use a template you setup for them and allow them to mod it however without hurting any other templates or forums.
|
Wow, this is just what I need. Quick question, am I able to let the mod change more then one template set? i.e. I want them able to edit template sets 2, 3 and 5.
Something you may like to add to your to-do list, it would be good if they were able to access the "Styles" and "Replacements" pages. It would also be nice if they could access features such as Search templates, Download/Upload Styles and maybe even "add style". You see, I have a forum designer type guy, who is currently set as an administrator. He isn't really an administrator, he just plays around with the templates and all, it would be nice if he was able to do this without me having to risk the fact that he could shut down the forum and everything, although i do trust him, if his password came out and someone got access to it, etc etc... |
Quote:
And yup I plan on adding styles and replacements to this hack later on :) Also if you want to let them add styles, then just don't delete that code when you install this (see step 4 in installation file) :) I just wanted to get this part done since I know a few people who were lookin for it. Hey I know you....you're on the Myacen forums! |
this is awesome... but i dont want to give my mods this much power ;)
- Mist |
Well you can give it to certain mods :p
I designed this because I know one site who has wanted this for certain groups that have forums on their site as well as my site so my clients can edit their forum to how they see fit. |
true but i dont want to give them this much power anyway.... :D
still a wicked hack ! Regards - Mist |
Thanks :) Not bad for my first hack I think
|
/me agrees :thumbsup:
- Mist |
Pretty damn nifty.
|
Quote:
[high]* Marshalus coughs "Federation Studios"[/high] |
Gee...I think he's right!
|
Quote:
Marsh, it's also for SD1. Our clients need to edit their own forums as well =P |
I said that in my post :p
|
Quote:
|
Excelent first hack blackice912! I'm sure many people will benifit from this. Thanks for sharing with the community :)
|
Thank you :)
|
just what I needed, sweet thx bro!
|
No problemo :)
|
Quote:
Quote:
Quote:
Quote:
|
Quote:
|
Template Set usually means things like "Default", "Style 1" etc...
Es ist sehr gut Herr blackice912:) *installs* Satan |
Yeah, exactly what I was thinkin in my head Hellsatan
And danke Hellsatan :) |
Np;)
Was gibt es neues? Satan |
My German is limited to very limited translating programs, so I have no idea what you are asking :) heh
|
he asked something new? ^^
anyway i see you have modified my edit user hack for securiti reasons, but i think you have forgotten one thing: you just disabled the inputbox if the varname is fieldID, but you didn't disable the DB change so it'll overwrite the value with an empty value if i'm not wrong. so you also have to edit this part of my hack if i'm right: PHP Code:
|
Any news?
About the styles add-on thingy I mean;) Satan |
Xenon:
Nope, because it doesn't even pull the info from the database and place it in the page. I've tested it over and over in my forums and it works fine. By the way, wonderful hack you made :) My moderators jumped for joy when I installed it. |
Quote:
|
I saw;):)
I dont usually mess with replacements myself, so my mods or others wouldnt be interested:D :) Satan |
Yeah I don't usually either, but hey :)
|
Thanks, it's good to know my hacks are used ;)
ok, i've just had a brief look at the code, if it works good :) |
Security Update!
Changed some code to increase security against people disabling javascript Go to page 1 and grab the new code |
I have a problem were it will show my main set (1)
but it will not show my template set 4!? it just says the title of the set 1 (being light) any ideas?? I coded it twice right! :) |
wait my style id for it is 5, and my template id is 4
could this be the problem? how could I fix it? |
I'm going to look into that right now
|
All times are GMT. The time now is 11:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|