Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Moderator Template Editor Details »»
Moderator Template Editor
Version: 1.00, by blackice912 blackice912 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-13-2002 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-14-2002, 12:18 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The button to the editor in the Mod CP
Reply With Quote
  #3  
Old 09-14-2002, 12:19 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mod CP and the templates on the right
Reply With Quote
  #4  
Old 09-14-2002, 12:19 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're a mod that's not authorized to use this template editor!
Reply With Quote
  #5  
Old 09-14-2002, 12:22 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so basically it allows mods to create their own template set that only THEY can use???

- Mist
Reply With Quote
  #6  
Old 09-14-2002, 12:26 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-14-2002, 02:16 PM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 09-14-2002, 02:19 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DWZ
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".
Right now, I don't think you can set them up for multiple templates (verified, you can't at this moment)...I shall look into that.

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!
Reply With Quote
  #9  
Old 09-14-2002, 02:43 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is awesome... but i dont want to give my mods this much power

- Mist
Reply With Quote
  #10  
Old 09-14-2002, 02:46 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well you can give it to certain mods

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08710 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete