Module: Hide Signatures
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
hide_signatures-1.0.1.tar.gz | 3 KB | open | download | Maurice Makaay | 08/21/2006 | Read message |
hide_signatures-1.0.1.zip | 5.5 KB | open | download | Maurice Makaay | 08/21/2006 | Read message |
Module: Hide Signatures February 21, 2006 06:57PM |
Admin Registered: 20 years ago Posts: 8,532 |
This mod adds a configuration option for users that can be used
to disable viewing of user signatures. The option can be found in
the user's control center under the forum settings option.
For running this mod, you need Phorum 5.1.7-RC1 or later, because
of the features that are used. You could try to run the mod on an
earlier 5.1.x release, but then you will have to add the following
code to the cc_usersettings.tpl template manually, just before the
ending </table> of the settings table:
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 08/21/2006 05:48PM by mmakaay.
to disable viewing of user signatures. The option can be found in
the user's control center under the forum settings option.
For running this mod, you need Phorum 5.1.7-RC1 or later, because
of the features that are used. You could try to run the mod on an
earlier 5.1.x release, but then you will have to add the following
code to the cc_usersettings.tpl template manually, just before the
ending </table> of the settings table:
{HOOK tpl_cc_usersettings PROFILE} Install: -------- - Install this file in the directory "mods" within your Phorum installation; - Login as administrator in Phorum's administrative interface and go to the "Modules" section; - Enable the module "Hide Signatures". - At the first time that this module is run (by visiting the forums), the module will automatically create a custom profile field for storing the user setting for this module. You should be able to see the mod_hide_signatures field in the admin interface under "Custom Profile".
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 08/21/2006 05:48PM by mmakaay.
Re: Module: Hide Signatures March 30, 2006 11:48AM |
Registered: 20 years ago Posts: 14 |
Re: Module: Hide Signatures March 30, 2006 02:54PM |
Admin Registered: 20 years ago Posts: 8,532 |
You could change the code so it will always disable signatures. But it's not what the mod is intended to do. You would have to disable the part of the mod that adds an option to the user control center (since that option doesn't make sense anymore) and you would have to change the control center templates to not show the signature editor (doesn't make sense anymore as well).
IMO it's not what you should use this mod for, because you have to hack the mod to get to your goal. Instead, you could create a new simple mod that will always empty user signature when saving the user data (cc_save_user is the hook you're looking for). Next to that, remove the signature editor from the templates. That way you prevent users from entering a signature in the first place instead of hiding it afterwards for all viewers.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
IMO it's not what you should use this mod for, because you have to hack the mod to get to your goal. Instead, you could create a new simple mod that will always empty user signature when saving the user data (cc_save_user is the hook you're looking for). Next to that, remove the signature editor from the templates. That way you prevent users from entering a signature in the first place instead of hiding it afterwards for all viewers.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Hide Signatures January 07, 2007 02:13PM |
Registered: 18 years ago Posts: 12 |
Quote
mmakaay
...Instead, you could create a new simple mod that will always empty user signature when saving the user data (cc_save_user is the hook you're looking for). Next to that, remove the signature editor from the templates. That way you prevent users from entering a signature in the first place instead of hiding it afterwards for all viewers.
Maurice----
Do you have any such as a module? Have searched the Wiki but the emphasis is on tweaking or hacking various (sanctioned) signatures. My local problem is that off site image file links are being used...;~/ At the moment I have the current ones on hold by programming a packet-sniffing router for the target domain. As a new adopter of Phorum I was somewhat perturbed to find that there are little/no controls for whatever the user considers as being 'OK' in his/her signature file.
----best wishes, Robert
Re: Module: Hide Signatures January 07, 2007 03:13PM |
Admin Registered: 20 years ago Posts: 8,532 |
No, I never wrote such a module. All my modules are published here.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Hide Signatures January 07, 2007 03:21PM |
Registered: 18 years ago Posts: 12 |
Re: Module: Hide Signatures January 07, 2007 04:23PM |
Registered: 23 years ago Posts: 1,076 |
HOWTO disable signatures completely? January 07, 2007 04:47PM |
Registered: 18 years ago Posts: 12 |
Easier said than done, I'm not used to Phorum's code yet.
IMOH leaving the signature block open to this sort of
code abuse is tantamount to a security risk. In another
vein why am I metaphorically obliged to even consider
displaying or saving the darned contents of the signature
block when I'd very much rather NOT have anything to do
with these security risk zones! Not impressed;~/ Caught
me by surprise as I never use signature blocks in other
peoples' forums and so wasn't fully aware of just what
poeple put in them.
----best wishes, Robert
IMOH leaving the signature block open to this sort of
code abuse is tantamount to a security risk. In another
vein why am I metaphorically obliged to even consider
displaying or saving the darned contents of the signature
block when I'd very much rather NOT have anything to do
with these security risk zones! Not impressed;~/ Caught
me by surprise as I never use signature blocks in other
peoples' forums and so wasn't fully aware of just what
poeple put in them.
----best wishes, Robert
Re: HOWTO disable signatures completely? January 07, 2007 04:57PM |
Admin Registered: 22 years ago Posts: 9,240 |
remove the link in cc_menu.tpl, remove the template part in cc_usersettings.tpl and in the posting.tpl (for not showing the option to add the signature to the post).
I see no security risk in the signatures. if so, every forum-post is a security risk as the same rules apply to the signature as to the post itself.
Thomas Seifert
I see no security risk in the signatures. if so, every forum-post is a security risk as the same rules apply to the signature as to the post itself.
Thomas Seifert
Re: HOWTO disable signatures completely? January 07, 2007 05:06PM |
Registered: 18 years ago Posts: 12 |
Will get to work using your suggestion, my thanks.
There is a security risk for my forum as this sort of
off site image linking will destroy the parent club's
ability to apply and sustain 'Charter' (safe) status.
So I must expect the same code insertion attempts to
occur in the main body of their posts too? (hope not)
----best wishes, Robert
There is a security risk for my forum as this sort of
off site image linking will destroy the parent club's
ability to apply and sustain 'Charter' (safe) status.
So I must expect the same code insertion attempts to
occur in the main body of their posts too? (hope not)
----best wishes, Robert
Sorry, only registered users may post in this forum.