vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Sig Editor (https://vborg.vbsupport.ru/showthread.php?t=32086)

Scott MacVicar 11-02-2001 10:00 PM

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

Scott MacVicar 11-03-2001 07:24 PM

and a purdy screenshot to show you what it looks like.

Matt 11-03-2001 07:48 PM

Thankyou!! :)

I have installed and seem to be getting a javascript error for some reason?

www.charmed-boards.com is my site if you want to see if there is any obvious reason for that happening?

TheCaver 11-03-2001 07:49 PM

Can't get this to work, it won't add the session and userid to the url correctly.........

Ver 2.2.0 :)

JC

bokhalifa 11-03-2001 07:51 PM

PPN

good hack:)

Scott MacVicar 11-03-2001 08:00 PM

whoops my bad

my bad change the Edit Sig bit to EditSig within the javascript function that you added to showthread. I added a space that shouldn't have been there.

updated documentation

TheCaver 11-03-2001 08:06 PM

That did it. Great hack!

JC

Scott MacVicar 11-03-2001 08:08 PM

TheCaver whats the url to a thread on your board.

Matt 11-03-2001 08:08 PM

Ok it works now but I have a few comments ;)

- I just suspended someones sig and (a) it didn't show the suspended message, (b) I had no way of unsuspending that sig

- It said "Blah blah blah's sig has been changed to" and then didn't show that it had been changed to suspended.

- A little "Close Window" link would be great too

If I think of anything else I will say ;)

TheCaver 11-03-2001 08:10 PM

PPN, it works now, thanks!

Matt, I would assume that it just changes the text of the sig to the message, it would be up to the user to correct the sig ?

JC

Scott MacVicar 11-03-2001 08:13 PM

you added the editsig_suspended template right??

Matt 11-03-2001 08:17 PM

Yup I added that :)

Scott MacVicar 11-03-2001 08:21 PM

are you able to edit the signature to have another value without any problems?

or is their problems with that also.

Matt to the editsig_done template add the following code after $signature

make sure to remove the space between java and script.

Code:

<br><br><a href="#" onClick="window.close();">Close Window</a>

Matt 11-03-2001 08:33 PM

I changed someones sig fine. It was just when I suspended another persons sig that it didn't show anything where their sig was.

Scott MacVicar 11-03-2001 08:41 PM

ok go check now that there is definately some text in the
editsig_suspend template and you added the template to the sets that are use on your board.

Thats the only thing that would cause the value of signature to be empty.

Matt 11-03-2001 08:46 PM

There is definately text in there.

Scott MacVicar 11-03-2001 08:54 PM

open up index.php and add
PHP Code:

echo gettemplate("editsig_suspend"); 

below the require("./global.php");

if your right then nothing should show up :p

i'll be hitting refresh on your board waiting for it.

Matt 11-03-2001 08:58 PM

Added it :)

And as far as I know I can't see anything :p

Matt 11-03-2001 09:01 PM

OH OH OH!

I have it as editsig_suspended for some reason.

Matt 11-03-2001 09:02 PM

Still doesn't do anything to the persons signature though :(

Scott MacVicar 11-03-2001 09:05 PM

you renamed the template to editsig_suspend then?

Matt 11-03-2001 09:11 PM

Yes, if I suspend someone now should it work?

Scott MacVicar 11-03-2001 09:17 PM

yeppers

Matt 11-03-2001 09:24 PM

YEP!! It works!

Now what do I do about unsuspending, I mean they can't edit their sig whilst it is suspended can they?

If they can thats the next thing that needs changing ;) and the ability to unsuspend :) If possible?

A huge thanks for what you have done so far! :D

Scott MacVicar 11-03-2001 09:29 PM

those options aren't really feasable as the unsuspend would involve adding another column to the user table to store the old sigs and that would probably take up alot of room on a large board like yours.

I could add them not being able to change it, but to sort it an admin would have to edit the signature to another value.

Matt 11-04-2001 03:39 PM

I just wanted to say a HUGE thankyou from all the staff at Charmed Boards! This new feature has really really helped us get the board loading much faster! And keeping it tidy! So thankyou!!!!

Scott MacVicar 11-04-2001 04:06 PM

thats cool to hear, seems a pretty cool way to save people from doing extra work, especially on large boards like your own.

Godzilla MR2 11-04-2001 10:21 PM

we have been looking for a hack like this. My admin installed this hack today.
But we get a JavaScript error. I downloaded the hack last night, and then made sure that I had the latest as I saw you updated some stuff.

website is- www.board.mr2faq.com

Godzilla MR2 11-05-2001 01:48 PM

Hello? any help here?

Scott MacVicar 11-05-2001 01:58 PM

you missed out this stage

PHP Code:

function aimwindow(aimid) {
    
window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,width=175,height=275,resizeable=yes,status=no")

}

add

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);



Godzilla MR2 11-05-2001 02:14 PM

Sorry, I had that JavaScript in and then I removed it for some reason.

But your version has a bit more in it than what I first used.

Thank you very much. It works like a dream now. Very Very nice

Godzilla MR2 11-05-2001 02:37 PM

It works great... but when the pages load I am still getting JavaScript errors.

The error is : script error...'add' is undefined

Scott MacVicar 11-05-2001 02:53 PM

your not meant to paste in the add bit between the two functions :)

you were meant to find the aol function then after it "add" the other function

Godzilla MR2 11-05-2001 03:04 PM

Cool... I see nowhere on this site that one had to actually be smart! :)

I really like this Hack.

Scott MacVicar 11-05-2001 03:07 PM

thanks, i use it for convience for people who have super long signatures or ones with lots of images.

Rose 11-07-2001 02:54 PM

This is a great hack to use. I don't have it installed on my board, yet, but it's on one I mod and I LOVE IT! Makes it a lot easier to fix problem sigs without having to bother the admin.

Thanks!

Prince 11-07-2001 06:19 PM

I do not see the point of the "Suspend Signature" feature.

The member can just go back into their profile and change their sig again.

:confused:

Scott MacVicar 11-07-2001 07:00 PM

It was just to enter some text to explain that it was suspended and maybe for them to get the idea.

I will start a continuation of this hack to allow signatures to be suspended for a user and unsuspended via the Admin Panel, this hack will then be able to make use of this feature.

Palmer ofShinra 11-11-2001 07:51 AM

I would really like that Suspending Sigs function... it would be just the thing.

If you could set it to last a certain amount of time and automatically end (and change the sig to something saying 'Sig re-enabled').

Bitmap 11-11-2001 07:32 PM

I am just wondering ... is there any way I (admin) can check which moderator changed a sig?


All times are GMT. The time now is 04:44 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.01313 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete