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

Thank you
Reply With Quote
  #23  
Old 09-14-2002, 07:05 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just what I needed, sweet thx bro!
Reply With Quote
  #24  
Old 09-14-2002, 07:26 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problemo
Reply With Quote
  #25  
Old 09-14-2002, 11:47 PM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by blackice912
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
Sounds good
Quote:
Originally posted by blackice912
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)
ahh, ok, but I guess it won't be much use until they are able to edit more then one template set
Quote:
Originally posted by blackice912
I just wanted to get this part done since I know a few people who were lookin for it.
yep, thats cool
Quote:
Originally posted by blackice912
Hey I know you....you're on the Myacen forums!
lol, yep, thats me
Reply With Quote
  #26  
Old 09-15-2002, 02:01 AM
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
ahh, ok, but I guess it won't be much use until they are able to edit more then one template set
Curious, are we thinking about different things? When I say template set, I think all of the templates in a template group.
Reply With Quote
  #27  
Old 09-15-2002, 10:30 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Template Set usually means things like "Default", "Style 1" etc...

Es ist sehr gut Herr blackice912

*installs*

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

Yeah, exactly what I was thinkin in my head Hellsatan

And danke Hellsatan
Reply With Quote
  #29  
Old 09-15-2002, 10:43 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Np

Was gibt es neues?

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

My German is limited to very limited translating programs, so I have no idea what you are asking heh
Reply With Quote
  #31  
Old 09-15-2002, 10:53 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
if($canedit[profilefields]) {
    
$profilefields=$DB_site->query("SELECT profilefieldid,title FROM profilefield");
    while (
$profilefield=$DB_site->fetch_array($profilefields)) {
      
$varname="field$profilefield[profilefieldid]";
      
$sql.=",field$profilefield[profilefieldid]='".addslashes($$varname)."'";
    }
    
$DB_site->query("UPDATE userfield SET userid=$userid$sql WHERE userid=$userid");
  } 
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 08:52 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.05123 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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_php
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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