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
  #142  
Old 07-19-2002, 06:58 PM
cerebro's Avatar
cerebro cerebro is offline
 
Join Date: Dec 2001
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just install in vb 2.2.6 and work really fine!!

Nice hack!
Reply With Quote
  #143  
Old 07-25-2002, 01:26 AM
Brianna Brianna is offline
 
Join Date: Mar 2002
Location: home
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, i'm not sure if there was a change in the setup of php calling or whatever, but I found an error and I managed to fix it on my own (horrah for me! i know nothing about php until this point )

this is for the showthread template

instead of:
Code:
function openeditsigwindow(x,y,sessionhash,userid) {
                window.open("moderator.php?action=editsig&s"+sessionhash+"&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}
it should be:
Code:
function openeditsigwindow(x,y,sessionhash,userid) {
                window.open("moderator.php?s="+sessionhash+"&action=editsig&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}
note, i am using version 2.2.6, and like I said i'm not sure if they changed anything or whatnot lol O_O

Awesome hack sir *bows*
Reply With Quote
  #144  
Old 07-25-2002, 04:38 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im not sure why your chaging the location but you are right there should be another "=" after the s
Reply With Quote
  #145  
Old 07-25-2002, 10:28 AM
Brianna Brianna is offline
 
Join Date: Mar 2002
Location: home
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, so the location does not matter? Just the = does?
Reply With Quote
  #146  
Old 07-25-2002, 11:45 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep location doesnt matter the variables will still be read before the script is executed, just the = missing
Reply With Quote
  #147  
Old 07-25-2002, 03:10 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway to have this so only admins can see the link to the sig editor directly from the postbit ?

Thanks in Advance
Reply With Quote
  #148  
Old 07-26-2002, 10:14 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Mist
is there anyway to have this so only admins can see the link to the sig editor directly from the postbit ?

Thanks in Advance
Reply With Quote
  #149  
Old 07-29-2002, 04:16 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

....

PHP Code:
if ($bbuserinfo[usergroupid]==|| ismoderator($forum[forumid])) {
          
$sigedit "<a href="javascript<img src="https://vborg.vbsupport.ru/images/newsm/embarrassed.gif" border="0" alt="">peneditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | ";
        

how do i change this code so it only applies for admins .. so that only admins can see $sigedit ???
Reply With Quote
  #150  
Old 07-29-2002, 06:38 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Presumably :

PHP Code:
if ($bbuserinfo[usergroupid]==6) {
          
$sigedit "<a href="javascript<img src="https://vborg.vbsupport.ru/images/newsm/embarrassed.gif" border="0" alt="">peneditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | ";
        

Satan
Reply With Quote
  #151  
Old 07-29-2002, 06:46 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...

Guess not...

The only other thing I can suggest is :

PHP Code:
if ($bbuserinfo[usergroupid]==|| $getperms[cancontrolpanel]==1)) {
          
$sigedit "<a href="javascript<img src="https://vborg.vbsupport.ru/images/newsm/embarrassed.gif" border="0" alt="">peneditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | ";
        

If that doesnt work, I have no clue...

Satan
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:33 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.04860 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
  • (2)bbcode_code
  • (3)bbcode_php
  • (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