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
  #72  
Old 01-17-2002, 11:37 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um, I get an error on the page when I go to edit the sig.... The part I have trouble with is this part... I'm new to Vb so I don't really know how to fix it myself...

Trouble
l
\/


The important part is <a href="javascriptpeneditsigwindow(490,320,'$sessi on[sessionhash]','$post[userid]')">Edit Sig</a> you have to add this somewhere in the postbit template.


I don't know exactly where to put that. and for this... you said there was a space between edit and sig so it looked like this
edit sig... well I can't find that, so is it already corrected? well thanks


showthread
-------------------------
below

function aimwindow(aimid) {
window.open("member.php?action=aimmessage&aim="+ai mid,"_blank","toolbar=no,location=no,menubar=no,sc rollbars=no,width=175,height=275,resizeable=yes,st atus=no")

}

add

function openeditsigwindow(x,y,sessionhash,userid) {
window.open("moderator.php?action=editsig&s"+sessi onhash+"&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x +",height="+y);
}
Reply With Quote
  #73  
Old 01-18-2002, 02:17 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please pm me the url to your forum as it is much easier to debug javascript errors by seeing them as the code is visible in the page source.

Also please don't post instructions on this hack in the thread please.
Reply With Quote
  #74  
Old 01-19-2002, 04:08 AM
Bedhead Bedhead is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Rose
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.
This would be awesome!
Reply With Quote
  #75  
Old 01-19-2002, 04:12 AM
Lucky Lucky is offline
 
Join Date: Dec 2001
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree,

That would be great!
Reply With Quote
  #76  
Old 01-19-2002, 02:52 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be great! You think you can make the addon to your hack ppn?
Reply With Quote
  #77  
Old 01-19-2002, 03:02 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok its like 2 lines of code

re-download the main file and redo the

if ($action=="updatesig") { part of the hack

if your too lazy to download the file then
in the modified code look for
PHP Code:
$getuser=$DB_site->query_first("SELECT username FROM user WHERE userid='$userid'"); 
above it add
PHP Code:
if($bbuserinfo[userid] != 1) { 
then below
PHP Code:
        eval("dooutput(\"".gettemplate("editsig_done")."\");");
      } 
add

PHP Code:

Reply With Quote
  #78  
Old 01-19-2002, 06:47 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm. That didn't seem to work.

In the first line of code you said to find, I do not have that in my moderator.php. I do have a very similar line -
PHP Code:
    $getuser=$DB_site->fetch_array($DB_site->query("SELECT username FROM user WHERE userid='$userid'")); 

I added the line of code in front of that line, and then added the last "}".

Now, when I go to edit a sig, I get the box, edit it, and click save - The box goes white and no update is saved.

Any ideas?
Reply With Quote
  #79  
Old 01-19-2002, 07:09 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought this was something else, I am glad to see what it actually is, I am doing my final postbit edit, I will get back to u in a sec becuase I modified a few files to the users benefit
Reply With Quote
  #80  
Old 01-19-2002, 07:24 PM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok peepz, I got it working!

By the way, thanks so much PPN for this extrodinary hack! I used to have members having little f*** you smilies in their sig, things insulting other members and it got so annoying I just let it go. When I finally took the time to read your hack, I noticed how easy it would make my job, so I typed up a quick rules script and made an edit to editsig_suspend template.

Anyway, if you have any rules or anything you want displayed, and you want their username displayed, you can replace your current editsig_suspend template with the following code:

PHP Code:
//SUSPEND SHENLONG EDIT
$bbuserinfo[username]'s signature has been suspended because it violated one of the Signature Codes. The codes can be found <a href="http://teleblaze.com/docs/sig.php?userid=$bbuserinfo[username]" target="new">here</a>.
//SUSPEND SHENLONG EDIT 
Reply With Quote
  #81  
Old 01-19-2002, 07:26 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whoops i made a mistake o_O

its not after the editsig_error it should be after the
editsig_done will edit that post now
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 09:10 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
  • Page Generation 0.05044 seconds
  • Memory Usage 2,317KB
  • 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
  • (6)bbcode_php
  • (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
  • (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