![]() |
Signatures on/off per member
I really need this hack. Anyone else need to restrict signature use on a per member level?
Please!!! |
wouldn't be such a problem
add a new field to the usertable called isallowedsig default='1' then just add an editfield in your admin-cp to change it from 0/1 nowhere else, just in admincp. then in newreply.php find this: PHP Code:
PHP Code:
i haven't tested, but it should work. it just disables new signatures, signatures in old posts aren't infected ;) run a query if you want to do it for old posts to ;) |
Smoothie, is you get it all figured out, I'd like to have it. I'm still not sure enough with myself to do the adding of the table or the admin cp. :)
|
Great Xenon!:)
Satan |
Xenon-
Thanks. What is the exact command to: "add a new field to the usertable called isallowedsig default='1' And how do I add an editfield in my admin-cp? |
[SQL]ALTER TABLE `user` ADD `isallowedsig` SMALLINT(6) DEFAULT '1' NOT NULL;[/sql]
open admin/user.php find in edit section: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Xenon, than you for the update. How and what do I change in the editpost.php? I couldn't find anything that even resembled the code I changed for the newthread.php and the newreply.php. And what would I need to add this to the private messages, too? :)
|
in editpost you have to find this:
PHP Code:
PHP Code:
you have to do the same thing as in editpost.php ;) i think this should be all, test it if it works ok, if not ask more ;) |
Thank you. I will test it out and let you know. :)
|
Xenon-
1 is for yes allow, 0 is for no, right? This just has an affect on img signatures, right? BTW, anyone know the querie to set all users to no signatures? |
didn't work. img sig shows for a user that isn't allowed, and didn't have one before.
|
the query:
[sql]UPDATE user SET isallowedsig=0[/sql] no it has an effect on using signatures complete! you didn't say anything about just disable img use in sigs |
Is there a way to make it not allow ANY signature if enabled, no matter what is in it?
Quote:
|
that's what i said.
it just enebles or disables signatureuse for users completly Quote:
|
Oh, Ok, I'm sorry. I guess I misunderstood what Smoothie was talking about with the images then. :) This is what I wanted anyway. :)
Quote:
|
Xenon-
Sorry about that! But, i just tried again, and with the allow sig set to 0 in the admin cp under edite user, the user is still able to use a signature. I think I have understood what this does, but as far as i can tell, it still allows any kind of signature, text, or img code. |
@smoothie: try to apply the changes i told boofo for editpost to to also at newreply.php:
after PHP Code:
PHP Code:
|
Does this go in WITH the change you told me or instead of the changes?
Quote:
|
As well as...
Satan |
I added the code to newthread.php, also. :)
|
yes ;)
i hope it works now ;) |
Xenon-
Seems to be working fine. Now, if there would be some way to allow text, and not the img tag, that would be the best. Like this in the edit user: Signature text: on Signature text: off Signature img code: on Signature img code: off |
i think it'll be doable, too ;)
add another field to user table called is isallowedimgsig in your admin/user.php do the same changes as you've done for allow sigs in general, just replace all isallowedsig with isallowedimgsig then open member.php find: PHP Code:
PHP Code:
|
If you have this set to no, that would do it, without adding the code above, right?
Quote:
|
yes, if this is set to no img use in sigs is generally off ;)
but if you want to allow it to some users you had to set this setting to yes and apply my changes :) |
Quote:
PHP Code:
|
Quote:
PHP Code:
|
I'm not to sure about this part, admin/user.php
PHP Code:
|
yes correct both ;)
PHP Code:
|
Xenon-
Many thanks. I will let ya know how it goes! |
Is this supposed to affect posts that already have signatures in them? I tested it on a user with a signature and the signatures still show in her posts.
|
Quote:
|
Can someone release a hack for this that will work on all posts (old/new)?
|
Ok I put in all the changes u guys mentioned here - however when I set allow sig to 0 in the user profile in acp - and then go back to the same user the sig is back to 1 again ...
any idea someone ... |
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|