View Full Version : Sig Editor
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.
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.
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??
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.
<br><br><a href="#" onClick="window.close();">Close Window</a>
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.
There is definately text in there.
Scott MacVicar
11-03-2001, 08:54 PM
open up index.php and add
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.
Added it :)
And as far as I know I can't see anything :p
OH OH OH!
I have it as editsig_suspended for some reason.
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?
Yes, if I suspend someone now should it work?
Scott MacVicar
11-03-2001, 09:17 PM
yeppers
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.
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
function aimwindow(aimid) {
window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=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.
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?
Scott MacVicar
11-12-2001, 06:21 AM
No it doesn't log what moderator did it as I trust all my moderators and therefore don't mind them changing the sig of a normal user.
If you use Overgrows Mod logging hack then this could be easily modified to include editing sigs.
Bitmap
11-12-2001, 03:34 PM
hmm ... can this hack be modified so that only admins and supermods can change the sig?
Scott MacVicar
11-12-2001, 03:56 PM
you'll see
if ($permissions[ismoderator] || $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) {
mentioned twice in the cost you have to paste in to moderator.php simply change that to
if ($permissions[ismoderator]) {
Bitmap
11-12-2001, 06:10 PM
thanks :)
it works great
Radon3k
11-19-2001, 06:51 AM
Nice, thanks man! :)
Edit: When you suspend the sig, for how long is it suspended? Just for that post? Just for that thread? Or until you allow it again? Or does that just make it to where the user can't change it after you have changed it? Thanks man! :)
Scott MacVicar
11-19-2001, 02:29 PM
it just changes the content of their sig within their profile to whatever you have the value of the template.
They can simply re-edit it again but most users take the hint when you change their signature :P
jam583
11-25-2001, 09:32 PM
I'm just getting a white screen when I click edit sig.. I followed it step by step and double checked my work to see if I missed anything. Any ideas?
Godzilla MR2
11-26-2001, 12:20 PM
I am getting the same blank pop up window... I have tried everything... I gave up for the Holiday weekend... but it is killing me seeing only a white screen. It worked fine before we updated to 2.2.1. After the update it did not work. So we reinstalled the hack and still does not work.
jam583
11-26-2001, 01:37 PM
I'm running the same version of the board as you. I installed several other hacks with no problems. However, I am still getting this white screen. I guess it's not compatible with my board :stupid:
Scott MacVicar
11-26-2001, 03:06 PM
check the templates and make sure the adjustments to moderator.php wasn't removed as this was pretty much the hack.
Scott
Godzilla MR2
11-26-2001, 03:21 PM
We reinstalled the code after the upgrade. There was no change. Still a white screen
Scott MacVicar
11-26-2001, 07:21 PM
verify the template exist in all the styles that are use on your board, you may be using a template set with the added template.
This is the only reason you would get white screen and thats no template being shown.
Scott
Godzilla MR2
11-26-2001, 08:40 PM
we only use the default style... but I will check to make sure
TheComputerGuy
11-27-2001, 12:08 AM
Umm I get Java Errors on my page any ideas
Sunmoon
12-12-2001, 05:15 PM
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? :)
Scott MacVicar
12-12-2001, 09:21 PM
i'll presume that the person is not an admin or a moderator who you are trying to apply this hack to...
Great hack!, thanks! only thing is in the preview where it says close window how can I make that to preview the sig and not show me the code again?
Also how can I make the link Edit Sig not be shown to anyone but Mods Super Mods and Admins. Basically I have alot of this on my site where they don't see stuff I think it helps clean up the site. Chen helped me with all the other code so any help ASAP would be great on making that link disapear to members and appear for admins mods etc etc. THANKS!
Also noticed when you suspend a sig it actually deletes it, maybe we could work something out so you can unsuspend a sig or edit what it was or atleast give them a chance to edit what it was..? So atleast it's not gone forever the second we suspend it.
Also maybe we could add smilies to this in some way.
Great hack!
I use it at a couple board I am a part of, and recently installed it on mine.
However, is there anyway we can allow admins to change moderator/admins signatures? As admin, I can't edit my own, or other moderators. While I'm not worried about the other moderators, is there a way I can edit my own quickly like this?
Again, kudos on the great job! Thanks for suggesting it, Matt. ;)
Bedhead
12-29-2001, 09:55 PM
Great hack buddy.
Loving it.
Just a suggestion but could this be altered so that admins can change all signatures including mods and admins?
Sunmoon
01-02-2002, 06:11 PM
Sorry for the delay PPN.. yes, I tried it (logged in as Administrator) on both moderators, admins and normal registered users.
None of them worked with the same message I put above.
Thanks for the assistance!
Palmer ofShinra
01-03-2002, 02:39 AM
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.
Sunmoon
01-03-2002, 03:22 PM
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!
Palmer ofShinra
01-03-2002, 09:46 PM
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.
Scott MacVicar
01-04-2002, 12:05 AM
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
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?
Scott MacVicar
01-04-2002, 09:28 AM
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.
Sunmoon
01-07-2002, 03:03 PM
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.
Warlord
01-12-2002, 02:56 AM
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! :D
kc5uyw
01-12-2002, 02:39 PM
Very nice ... definately a good admin tool.
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.
Xelation
01-17-2002, 11:37 PM
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="javascript:openeditsigwindow(490,320,'$session[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="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=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);
}
Scott MacVicar
01-18-2002, 02:17 PM
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.
Bedhead
01-19-2002, 04:08 AM
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!
Lucky
01-19-2002, 04:12 AM
I agree,
That would be great!
Xelation
01-19-2002, 02:52 PM
That would be great! You think you can make the addon to your hack ppn?
Scott MacVicar
01-19-2002, 03:02 PM
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
$getuser=$DB_site->query_first("SELECT username FROM user WHERE userid='$userid'");
above it add
if($bbuserinfo[userid] != 1) {
then below
eval("dooutput(\"".gettemplate("editsig_done")."\");");
}
add
}
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 -
$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?
Shenlong
01-19-2002, 07:09 PM
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
Shenlong
01-19-2002, 07:24 PM
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:
//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
Scott MacVicar
01-19-2002, 07:26 PM
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
Shenlong
01-19-2002, 07:58 PM
hey PPN, im havin a problem, when I click Suspend and submit the page just turns white and nothing happens
ermmm..for that matter, even when I try to edit it, the link looks like its just going to moderator.php
I installed the hack like 5min ago, any ideas?
Scott MacVicar
01-19-2002, 08:08 PM
theres a bracket at the wrong point remove one of the brackets after
eval("dooutput(\"".gettemplate("editsig_error")."\");");
and place it below
eval("dooutput(\"".gettemplate("editsig_done")."\");");
Shenlong
01-19-2002, 08:14 PM
where?
:up: :up:
Works like a charm. :D
Scott MacVicar
01-19-2002, 08:23 PM
in moderator.php
Shenlong
01-19-2002, 08:52 PM
works like a charm now! great hack PPN!
Lucky
01-20-2002, 12:45 PM
theres a bracket at the wrong point remove one of the brackets after
Ok.
You got me!
Can you please specify exactly what goes where.
I have tried moving the brackets ")" and "}" and am not sure what brackets you are referring to.
Please be specific.
I have been screwing around with this for the last 10 hrs at least and am at a stand still!
I have tried just about every different combination there is.
I need help.
TIA!
Scott MacVicar
01-20-2002, 01:10 PM
the file at the start was updated, simply download that again.
Shenlong
01-20-2002, 01:41 PM
Originally posted by Lucky
Ok.
You got me!
Can you please specify exactly what goes where.
I have tried moving the brackets ")" and "}" and am not sure what brackets you are referring to.
Please be specific.
I have been screwing around with this for the last 10 hrs at least and am at a stand still!
I have tried just about every different combination there is.
I need help.
TIA!
k say u got the first eval code, it has 2 brackets
it goes like this
eval("dooutput(\"".gettemplate("editsig_error")."\");");
}
} <--CUT THIS ONE (delete and copy)
Put it under the 2nd eval one he mentioned
so
eval("dooutput(\"".gettemplate("editsig_done")."\");");
}
} <---HERE YOU ADD THE 2nd BRACKET
hope that helps
Lucky
01-20-2002, 08:52 PM
Still at this.
Scott MacVicar
01-20-2002, 09:13 PM
post the entire hack why don't you :(
unliscenced users can still view threads so you've just given them the hack.
just take the entire bit of code from the text file at the first post and replace it, that will solve any problems.
Remove the php code from your last post as well
Lucky
01-20-2002, 10:25 PM
Sorry.
I have removed the php code.
I have been at this for over 2 days now.
If I use the original that you had I can edit users and moderators, but if I try to use the new code I can get to the page to edit anyone, but once I try to edit I get a blank white screen.
I have tried everything as you have stated and am still at a standstill.
Any help you can offer me would be greatly appreciated.
I got to get this up and running.
Please help.
TIA
Lucky
01-20-2002, 10:26 PM
I just want to be able to edit signatures of everyone including administrators.
Scott MacVicar
01-21-2002, 06:32 AM
email your moderator.php file to software@pp-network.com
I'll apply the hack and send it back to you, don't want you to waste another 2 days :)
Lucky
01-21-2002, 09:23 AM
I have sent you my moderator.php file to your email address as requested. The file I have sent you is the working version that I have no errors with, but won't give permission to admins to edit admins.
I have since uninstalled the newer version of edit sig.
Right now I am able to edit sigs of mods, and regular users without errors.
I have been able to get the newer one working for looking at sigs of all users including admin's, but not editing and saving. All I get is a white blank screen.
Here it is, and I thank you kindly for taking the time.
Xelation
01-21-2002, 01:23 PM
Hey ppn, I have an image of the edit sig text I want deleted, how would I go about doing this?
Scott MacVicar
01-21-2002, 02:16 PM
you inserted the edit sig text twice??
just do a search through the templates
its an option in the templates
Xelation
01-21-2002, 02:49 PM
as I keep saying, I'm very new to vb... what should I search for? and what ever I find... what should I delete?
Lucky
01-21-2002, 04:27 PM
Thank you very much PPN.
I thought it was a bug as I ussually have a hack installed in less than 10 minutes.
Your the man.
All is now fine and dandy. :)
Sunmoon
01-22-2002, 06:16 PM
Well, I uploaded and rehacked your newest version and I still get that confounded error: Unable to edit xxxxx because xxxxx is an admin. Yes, I was logged in as admin and by looking at the last few posts here that my user ID is not 1.. it's like 607. Could that be the problem?
Any other ideas before I have to not be able to use this great hack? :(
Thanks!
Sunmoon
01-22-2002, 06:21 PM
Actually, I just found out that user ID 1 was Admin, so I logged in as Admin and tried again... same error.
What am I doing wrong? :D
Scott MacVicar
01-22-2002, 07:17 PM
point me to the url of your forums please and i'll have a look
Xelation
01-23-2002, 05:32 PM
Hey PPN, I know your probably fed up with me by now... but here goes... I reinstalled my entire board because I found out that there was an easier method of doing things... So I reinstalled this hack and it works fine... The only annoying thing is there are two edit sig texts again... but this time its in a different spot... I would appreciate it if you could help me out here... Oh and I didn't add anything twice this time, I made sure. Take a look at what I'm talking about...
Sunmoon
01-30-2002, 05:22 PM
PPN, the URL for my boards is:
http://forums.interealms.com/ranger
Thanks and let me know if I can do anything else to assist!
Scott MacVicar
01-30-2002, 07:02 PM
Can you send me your /moderator.php and I'll have a look at it just to confirm that you have the code correct.
Send it to software@pp-network.com
Sunmoon
02-04-2002, 03:45 PM
I just wanted to publicly thank PPN. Not only is this a very useful script; he went well out of his way to help me get it working on my server.
Thanks PPN!
Lucky
02-05-2002, 02:53 AM
Got vbp3.0pr7 and vb2.2.2 and all is working great!
Thanks. :p
Is the code in the attached text file
https://vborg.vbsupport.ru/attachment.php?s=&postid=198158
kind of jumbled up? It looks like the code is partly rendered or something, with no formatting. Or is it just me? :)
Scott MacVicar
02-07-2002, 02:09 PM
thats cause your viewing it in IE and its opening it. Either save the file to disc or click View then source.
*doink* <hitting hand on forehead> Thank you.
Jawelin
02-07-2002, 05:12 PM
PPN, just a foo question !! :p
What about a small icon instead the hyperlink, for example between the 'report' and 'ip' buttons just like this forum ???
:)
Lucky
02-07-2002, 07:46 PM
I just added this and works good.
<img src="images/edit.gif" border="0" alt="Edit Signature"></a>
Jawelin
02-07-2002, 08:25 PM
Originally posted by Lucky
I just added this and works good.
<img src="images/edit.gif" border="0" alt="Edit Signature"></a> Of course... :pleased:
I just wondering for some nice button .... As an Admin, I already got the [Edit] (post) button everywhere... Eheheh!
Thnx
mondaynightmike
02-18-2002, 03:24 PM
Ok so is there a way to get rid of the "Edit Sig" text or button if you are not an admin or mod. So then only admins and mods can view it?
ptbyjason
03-06-2002, 07:33 PM
Thank you, it works great. :)
cditty
03-07-2002, 01:34 AM
Is there anyway that I can limit the display of this to mods and admins? I'd rather not have to explain this over and over to our users and tell them ignore it.
Chris
Me2Be
03-07-2002, 06:43 AM
Originally posted by cditty
Is there anyway that I can limit the display of this to mods and admins? I'd rather not have to explain this over and over to our users and tell them ignore it.
Chris Great question - I was just on my way to ask it too! :)
Scott MacVicar
03-07-2002, 02:54 PM
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig.
Legacy
04-07-2002, 02:19 AM
Anyone have this running on 2.2.5?
scsa20
04-07-2002, 03:17 AM
I do
ZiRu$
04-19-2002, 12:47 PM
i wish this was re-made so that only ADMINS could change the sigs
Scott MacVicar
04-19-2002, 02:18 PM
If it was an admin then he can just go into the admin panel....
This hack was designed to let mods who don't have access to the admin panel to be able to edit the signatures of users with abusive sigs.
Scott
Jawelin
04-19-2002, 03:17 PM
Originally posted by PPN
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig. ... and as ip.gif you could kindly give us (all of us who used that link in postbit_ip_hidden template) some nice icon for 'edit signature' ... :laugh:
Couldn't you ?
:bandit:
Takara
05-07-2002, 06:13 AM
Thanks verra much for the hack ^_^
I kinda, hid the hack behind the foldericon. In functions.php find:
if ($post[dateline]>$bbuserinfo[lastvisit]) {
$post[foldericon]="<img src=\"https://vborg.vbsupport.ru/images/posticonnew.gif\" border=\"0\" alt=\"New Post\">";
} else {
$post[foldericon]="<img src=\"https://vborg.vbsupport.ru/images/posticon.gif\" border=\"0\" alt=\"Old Post\">";
}
and replace by
if ($post[dateline]>$bbuserinfo[lastvisit]) {
$post[foldericon]="<a href=\"javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\"><img src=\"https://vborg.vbsupport.ru/images/posticonnew.gif\" border=\"0\" alt=\"New Post\"></a>";
} else {
$post[foldericon]="<a href=\"javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\"><img src=\"https://vborg.vbsupport.ru/images/posticon.gif\" border=\"0\" alt=\"Old Post\"></a>";
}
works nicely ^_^
Jawelin
05-07-2002, 06:56 AM
Yeh, but what's the relationship between [Newpost] and Edit signature, to use that button ? ;)
Thnx
PPN - I'm having problems with this hack, royally! I think I finally have it so two of the three admins can edit members posts, but not the third admin. Mods, it seems, can't edit anything. And no one can edit admin posts (admin, I mean). Could you maybe look at my moderator.php to see how badly I seem to have messed it up? I have it working on one board, but not on this one. I'd give you a url, but the domain isn't set up yet and the boards not open (maybe by Thursday).
Elentari
05-14-2002, 01:03 AM
Hi :)
Ive installed this hack this evening, and it seems to be working ok, except that I'm getting an IE error on the page now!!
The address where I'm getting this error is
http://www.christiansurvivors.com/forums/showthread.php?s=&threadid=4
Hope someone can help ;) Its probably something stupid and all my fault! *sigh* :nervous:
Scott MacVicar
05-14-2002, 06:03 AM
its looking fine for me, no javascript errors or anything.
Elentari
05-14-2002, 11:35 AM
Its not a javascript error. Its an IE error, that comes up on every thread ... you know, the small yellow warning sign that IE pops up every now and then?
The exact warning is as follow :
Line : 1198
Char : 63
Error : Undetermined String Constant
Code : 0
Url : http://www.christiansurvivors.com/forums/showthread.php?s=&threadid=4
Hope that helps some?
Just one more question - in the downloadable file, it says you need to create 3 templates, then appears to tell you 4 templates that you need to make. Am I right in having all 4?? (editsig; editsig_done; editsig_error; & editsig_suspend)
Scott MacVicar
05-14-2002, 04:03 PM
I'm looking at the board now and i'm getting no javascript error at all.
Elentari
05-14-2002, 09:24 PM
Lol like I said. it wasnt a java error .... but I uninstalled and installed it all again this afternoon and it was a problem with one of the templates. Its ok now.
Thanks for your time!! :)
Keyser S?ze
06-01-2002, 01:42 AM
[QUOTE]Originally posted by PPN
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig.
talon3dhq
06-13-2002, 05:29 PM
Ok, I have installed this hack, and something wierd happens. When I click on the link, all I see what I have attached to this post. Other members have this same problem, but other members have no problems and can use the sig editor. Any suggestions?
talon3dhq
06-22-2002, 02:13 PM
Has anyone updated the instructions for 2.2.5 yet?
Originally posted by PPN
Hmm I guess I can do this it follows the principles of the hideing the IP link from normal users which is in my sig.
Any progress? I hate that text in the lower right corner of every post - and my users are REAL nosy and obnoxious. :D
Scott MacVicar
06-26-2002, 07:19 AM
Open functions.php look for
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
ABOVE it add
if ($bbuserinfo[usergroupid]==6 || ismoderator($forum[forumid])) {
$sigedit = "<a href=\"javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
}
Now in the postbit template change
<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
to
<p align="right"><smallfont>$editsig<a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
Massiel
07-18-2002, 01:06 PM
I installed it and all seemed to be going okay until I tested it as a registered member and it was letting me edit signatures too, I tested it as a mod and admin and it was letting me edit them too, so I took it out, any ideas why? Pretty scary if everyone can go changing everyone's signatures around!! I followed all instructions too... :(
Is there anyway in which only admins can use this?
Massiel
07-18-2002, 10:35 PM
Anyone? Please help :(
Massiel
07-19-2002, 05:08 AM
bump
cerebro
07-19-2002, 06:58 PM
i just install in vb 2.2.6 and work really fine!!
Nice hack!
Brianna
07-25-2002, 01:26 AM
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:
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:
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* :)
Scott MacVicar
07-25-2002, 04:38 AM
Im not sure why your chaging the location but you are right there should be another "=" after the s
Brianna
07-25-2002, 10:28 AM
Ah, so the location does not matter? Just the = does?
Scott MacVicar
07-25-2002, 11:45 AM
yep location doesnt matter the variables will still be read before the script is executed, just the = missing
Dean C
07-25-2002, 03:10 PM
is there anyway to have this so only admins can see the link to the sig editor directly from the postbit :D?
Thanks in Advance
Dean C
07-26-2002, 10:14 AM
[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 :D?
Thanks in Advance
Dean C
07-29-2002, 04:16 PM
:(....
if ($bbuserinfo[usergroupid]==6 || 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 ???
Chris M
07-29-2002, 06:38 PM
Presumably :
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
Chris M
07-29-2002, 06:46 PM
Hmm...
Guess not...
The only other thing I can suggest is :
if ($bbuserinfo[usergroupid]==6 || $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
Dean C
07-29-2002, 06:59 PM
none of these work :(...
Chris M
07-29-2002, 07:23 PM
:(
Satan
Dean C
07-30-2002, 09:19 AM
so can anyone figure a way around this ?
It would be cool if instead of suspending the sig it would just allow the user with the sig to see it and everyone else doesn't moohaha
Learner29
09-02-2002, 08:44 PM
thank you once again PPN
I tried this hack on the new vb2.2.7 and it works perfect.
this hack is really wonderful....
Hey PPN, how do I make it so user Id 1, 3, 4 can edit ALL sigs and not just userid1?
PHiXTiT
09-10-2002, 08:16 AM
Great hack!
5 minutes to install!
Everything works as stated!
Thanks for the great hack 5 stars :)
if ($bbuserinfo[usergroupid]==6 || ismoderator($forum[forumid])) {
$sigedit = "<a href=\"javascript : openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')\">Edit Sig</a> | ";
}
..in functions.php. Then place $sigedit where you want it to appear. It works for me.
REMOVE the spaces from the left and right of ":".
yaser2003
09-21-2002, 03:07 AM
hi every one...
can we make somthing cool like every user can edit thire sig with this hack......it will be nice
Tailfeathers
09-29-2002, 10:07 PM
If I click on Edit Sig in a post, I get a JavaScript error:
IE says:
Line: 1
Char: 1
Error: Object expected
Code: 0
URL: http://www.tailfeathersnetwork.com/showthread.php?s=&threadid=14
Any ideas?
Thanks. :)
Scott MacVicar
09-29-2002, 11:38 PM
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")
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);
}
}
// -->
</script>
should be
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")
}
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);
}
// -->
</script>
you've pasted it before the last } and not after.
Tailfeathers
09-29-2002, 11:46 PM
It's working perfectly now. Thanks! :banana:
Areku
10-07-2002, 11:16 AM
Not sure if any1 has asked this before...
Can you make that EDIT SIGNATURE is displayed ONLY if you're an admin?
So others don't have even the idea of such option does exist...
Dean C
10-07-2002, 05:41 PM
i would like to know how to do that too :D ^
- miSt
Anyone found a way to only display the link to those of authority?
Medivith
11-12-2002, 08:36 PM
Well... I made a major screw up.
I need to allow only Admins / Super Moderators (both standard groups) and one non standard (groupid=31) to use this feature, and not all moderators.
I tried to do this myself, however my... less than skillful bodgeing wound up allowing registerd users to use the feature.
Having messed that one up badly, I decided to ask for help in doing so, seeing as how no one has requested it or someting similar enough that I can adapt.
Regards, and thanks for the great hack PPN,
Medivith
Cool hack, PPN. :)
To those of you still fighting over how to hide the "Edit Sig" link from regular members, or to limit it to Admins only, all you need to do is install Logicians genius "Dynamic Templates" hack and you can easily accomplish this.
Get his hack here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=43325
Also, I added a tiny JavaScript onClose event to this hack so that after you edit a users sig, the parent window reloads and shows the updated sig.
Anyone who wants to do this, just open your editsig_done template and replace <body> with
<body onClose="opener.location.reload(true);">
Thanks for the hack, PPN.
MarkL
01-15-2003, 08:03 PM
Yes, I just added this hack, and since I am a newbie, I was wondering if anyone could help me and tell me how I could edit it to use the custom replacement tags instead of using the author's own site's colors. :$
Scott MacVicar
01-15-2003, 11:27 PM
this is a bug here at vB.org the replacements are being replaced. I'll mention it to chen.
S1R1US
02-10-2003, 02:56 AM
can this be made to work with 2.2.9 or does it already?
Erwin
02-10-2003, 03:32 AM
It works for 2.2.9.
ImportPassion
03-05-2003, 12:50 PM
i have a little problem.
When I suspend a sig I get this
<!-- BEGIN TEMPLATE: editsig_suspend -->
Signature Suspended as it is in violation with signature rules.
<!-- END TEMPLATE: editsig_suspend -->
ImportPassion
03-05-2003, 02:42 PM
I have done the Sig Suspended hack. The real one that does NOT allow the user to go in and change their signature back again.
It is pretty easy. But, you MUST have Logicians genius "Dynamic Templates" hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=43325).
See the instructions attached.
ImportPassion
03-05-2003, 02:43 PM
Here is a screenshot in the users profile.
larryd
03-22-2003, 04:17 AM
Hey PPN first off I wanted to say thanks for the great hack. Ive been using it for quite some time now and its truly a great hack. Ive run into one problem thats not with your code but my moderating staff and I was wondering if there was an easy fix for this.
I have had a few signatures suspended from moderators that will not come forth and tell me that they suspended the signature. For this reason I would either like to put a log file on this function or limit it to only admins and some moderators. I saw above how to limit it to admins and super mods but that would almost defeat the purpose of the hack. Is there anything you can do for me?
Thanks,
Larry Dougherty
www.newcelica.org
ImportPassion
05-04-2003, 02:09 AM
that is a Javascript error. If you show me what is on that line and one b4 and after, I might be able to fix it.
D
WEForums
05-11-2003, 05:41 AM
Hmm... 6thgenCivic, is there a way to enable the user's signatures back? If so, how? I was testing on a mod of mine and...well...yeah.
Or does a query need to be run?
azork
05-11-2003, 04:55 PM
i have a real problem with this hack:
in the postbit, the names have disappeared. i thought that imade a mistake during the installation, so i re-installed it again. same. i've deleted the modifications, the templates... and it is still the same.
i have the 2.2.3 version and the names of the mods have disapeared in the postbit in every thread :(
WEForums
05-11-2003, 08:13 PM
Are you sure $post[username] is in your postbit hack?
azork
05-11-2003, 09:41 PM
yes. only the name of the mods has been removed. as i have installed lesane store hack, the code in the postbit is not excatly $post[username]
WEForums
05-11-2003, 10:13 PM
$storeextraglow
Well...I don't see how this hack would even affect usernames......
ImportPassion
05-12-2003, 10:10 PM
Yesterday at 02:41 AM WEForums said this in Post #177 (https://vborg.vbsupport.ru/showthread.php?postid=393551#post393551)
Hmm... 6thgenCivic, is there a way to enable the user's signatures back? If so, how? I was testing on a mod of mine and...well...yeah.
Or does a query need to be run?
just go in an edit the sig again. make sure the checkbox is not checked and save. all done.
azork
05-13-2003, 09:53 PM
Yesterday at 12:13 AM WEForums said this in Post #181 (https://vborg.vbsupport.ru/showthread.php?postid=393921#post393921)
$storeextraglow
Well...I don't see how this hack would even affect usernames......
i agree but it's what happened. actually only the mods who have a glow have their name disappeared
Learner29
05-27-2003, 06:01 AM
hi
this hack is constantly telling my mods and supermods that userX is a moderator and thus you cannot edit his signature.....
but userX is NOT a moderator......
any help ?????
ChrisMJ
05-29-2003, 11:45 AM
hey guys i cant get this hack to work? any ideas y?
http://www.pcgamesonline.com/forums/
if someone decent cud help me sort this our woudl be kool thanks
Erwin
05-30-2003, 05:46 AM
This hack is working very well. I just installed it for my own private forums. :)
Morgalis
07-12-2003, 06:11 AM
hmmm
love this hack.. but what might have happened to cause this? just happened o.O
when signatures are suspended it looks like
<!-- BEGIN TEMPLATE: editsig_suspend -->
Signature Suspended as it is in violation with signature rules.
<!-- END TEMPLATE: editsig_suspend -->
thanks in advance
clamcrusher
08-01-2003, 04:42 AM
in my postbit template i tried to follow the text instructions and where to place the java. i run 2.2.8
in his example it supposed to look like this:
<p align="right"><smallfont><a href="javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
but mine looks like this:
<TD align="right"><smallfont><a href="javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit Sig</a> | <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
my code doesnt start and and with <p and </p> it starts with <TD and ends with </td>
everything looks good in the postbit but when i click on edit sig, nothing happens. ive tried opera and ie6. ie sais error on page. if i click propeties in ie6 on the edit sig link it lists the url of the link as this: javascript:openeditsigwindow(490,320,'','15')
can the code be changed to work w/ mine?
PurpleCow
08-05-2003, 11:58 AM
does this hack work fine on 2.3.0 ??
Thank you
msimplay
08-07-2003, 04:56 AM
works great on Vb 2.3.0 :D
MaDCaT75
08-07-2003, 07:43 AM
Mine works great but why is the 3 links (edit sig, report post, IP logged) to the left and above quickedit? What do I do to make those 3 links parallel to quickedit button?
zsmom
10-03-2003, 11:11 PM
Works most excellently on 2.3.2. Great hack, saves me a lot of time!
cerebro
11-21-2003, 01:33 PM
Re install in 2.3.3...works Fine.
index
12-29-2003, 07:52 AM
Hi guyz,
I tried my best to let the hack work in my forum which is version 2.3.0 and I couldn't let it work :(
and also, I have another hack, which let the member fix his signture and it works fine without any problem
so, can anyone help me out of this problem !
Thanks a lot
David Coutts
03-06-2004, 11:30 PM
Thanks, good hack.
/me presses install.
David Coutts
03-17-2004, 10:07 PM
For some reason, I get the following:
Parse error: parse error in /home/telb/public_html/moderator.php on line 10
Whenever I open the Edit Sig box. Any help, please? :ermm:
ludachris
04-26-2004, 07:25 PM
VB3 version??
Edison Chen
06-11-2004, 02:05 PM
Installed and working beautifully.
Hmm, I tried to install this hack, everything works fine but one thing doesn't.
If I edit someone's sig and I click 'Update Signature', I see this:
'The signature for has been changed to the following.'
Somehow the $getuser[username] between for and has doesn't work for me. Does anybody know how to fix this?
larryd
05-03-2005, 08:32 PM
This worked great for VB2; does anyone make a version of it for VB3?
larryd
02-08-2006, 09:22 PM
Well I asked a year ago and received no response so Ill ask again, does anyone make a version of this hack for VB3?
Well I asked a year ago and received no response so Ill ask again, does anyone make a version of this hack for VB3?
No vb3 version of this great hack?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.