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

Reply
 
Thread Tools
Details »»

Version: , by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-02-2001 Last Update: Never Installs: 131
 
No support by the author.

A nice link in the post which allows moderators, super moderators and admins to edit the signature of other users. There is also protection to stop the user changing the signature of other admins and moderators. A nice tick box is also present to allow you to suspend the signature without having to type in the message.

Hack suggested by Matt.

Last updated 21st January 2002 14:25 GMT

Updated to allow the original admin, ie the person with userid 1 to edit the sigs of any user via this interface instead of having to go to the admin panel. Sorted a bug with this that only let the person with userid 1 update.

Please everyone download the file and apply the changes to moderator.php again

Show Your Support

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

Comments
  #62  
Old 01-03-2002, 02:39 AM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sunmoon
This hack looks perfect for what I need.

Everything seems to work, except that no matter what user I try it on (and with me logged in as Administrator,) I get the following when I click Edit signature in teh popup box.

"Farghan Shadehunter is an admin and you are unable to edit their signature. "

Help?
I have the same problem...

For some reason, the code is checking who *I* am... because I get told that I'm editing an admin (no matter who I edit) and one of our super mods gets told the same person is a mod.

BTW... there is a mind-numbingly easy way to do the forced suspend sig... I implemented it myself as I hacked this in (mind you, I didn't touch the code that checks for editsig_error, so that's not the reason why)

Add a field to the user table called "suspendsig"

Change the query in the editor that updates the sig to change suspendsig to 1 if suspend was checked,

THEN, in the buildpostbit part of functions.php... after all the code that sets sigs...

Add an eval that sets $post[signature] to equal editsig_suspended

They're old sig is intact, and in fact they can edit it.

It just doesn't get displayed!

Thus you don't clutter up the DB with a second sig field. Just one extra INT.

Of course, you have to add the settings in the CP and that too, as well as whatever else... but it's your hack... I just let you know how I would do it.
Reply With Quote
  #63  
Old 01-03-2002, 03:22 PM
Sunmoon Sunmoon is offline
 
Join Date: Dec 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like a plan Palmer, just not sure if I have quite the technical prowess to do that. Would doing what you suggested, allow PPN's hack to work in its current state?

Thanks again for everyone's help!
Reply With Quote
  #64  
Old 01-03-2002, 09:46 PM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It requires adding a few things in a lot fo different files...

I ended up having to edit 8 different files in the end to make the sig editor with forced suspend work... in addition to a database modification.
Reply With Quote
  #65  
Old 01-04-2002, 12:05 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i've checked my code and it all looks fine

$perms=getpermissions(0, $userid);

that gets the permission for forumid 0 for the userid which is specified, it then does a check to see the permissions of that user

if($perms[ismoderator] || $perms[cancontrolpanel] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$userid")) {

then checks to see which one they are, if i've taken the getpermissions function wrong then could someone please tell me
Reply With Quote
  #66  
Old 01-04-2002, 03:00 AM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by PPN
ok i've checked my code and it all looks fine

$perms=getpermissions(0, $userid);

that gets the permission for forumid 0 for the userid which is specified, it then does a check to see the permissions of that user

if($perms[ismoderator] || $perms[cancontrolpanel] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$userid")) {

then checks to see which one they are, if i've taken the getpermissions function wrong then could someone please tell me
I'm sorry, PPN, and please excuse me if I'm outta line. But which problem are you addressing in the above quote? The problem I'm having with editing the sig of admins and other moderators (as admin), or the problem with the forced suspend signature?
Reply With Quote
  #67  
Old 01-04-2002, 09:28 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the suspend sig thing is simply another feature it isn't a bug..

i'm trying to deal with the error people are getting when they try and edit the signature of a user.
Reply With Quote
  #68  
Old 01-07-2002, 03:03 PM
Sunmoon Sunmoon is offline
 
Join Date: Dec 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to try again from home (instead of from behind the firewall at work) to make sure it wasn't on my end.
Reply With Quote
  #69  
Old 01-12-2002, 02:56 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot! Being a newbie to vbulletin, I appreciate you making this very easy to install. I installed it and have yet to encounter any problems!
Reply With Quote
  #70  
Old 01-12-2002, 02:39 PM
kc5uyw's Avatar
kc5uyw kc5uyw is offline
 
Join Date: Jan 2002
Location: Dallas
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice ... definately a good admin tool.
Reply With Quote
  #71  
Old 01-17-2002, 07:32 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any progress on allowing Admins to edit the signature of other moderators or admin??

It would be especially useful to have the main admin (userid=1) able to edit the sigs of other admin/mods.
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:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04567 seconds
  • Memory Usage 2,311KB
  • 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
  • (2)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
  • (1)pagenav_pagelinkrel
  • (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