Module: Format Signatures
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
format_signatures-1.0.1.tar.gz | 1.9 KB | open | download | Maurice Makaay | 01/05/2011 | Read message |
format_signatures-1.0.1.zip | 3.2 KB | open | download | Maurice Makaay | 01/05/2011 | Read message |
format_signatures_BOB_HACK.php | 1.8 KB | open | download | Robert Angle | 05/05/2012 | Read message |
Module: Format Signatures January 29, 2008 09:28AM |
Admin Registered: 20 years ago Posts: 8,532 |
This module can be used to add formatting to signatures (e.g. showing signatures in a different color or adding a separator line between the body and the signature).
This can be done by defining an HTML prefix and postfix in the module's settings.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 01/05/2011 06:12PM by Maurice Makaay.
This can be done by defining an HTML prefix and postfix in the module's settings.
Changelog: ---------- 2011-01-05 1.0.1 - Do not prepare the signature formatting when on the control center page, so we won't break the signature editor there. 2008-01-29 1.0.0 - Initial release
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 01/05/2011 06:12PM by Maurice Makaay.
Re: Module: Format Signatures January 29, 2008 01:08PM |
Registered: 17 years ago Posts: 122 |
Re: Module: Format Signatures August 09, 2008 07:29PM |
Registered: 16 years ago Posts: 95 |
Re: Module: Format Signatures May 05, 2012 05:33PM |
Registered: 17 years ago Posts: 533 |
Attached to this post is an uploaded modification of this script that prevents the rendering of user signatures to forum guests who are not logged in. In other words, user signatures will only be visible to registered members who are logged in while perusing your forum.
Download the attached script and upload it to your /mods/format_signatures/ directory, delete the old format_signatures.php and rename this file to format_signatures.php instead.
This is a hack of Format_Signatures 1.0.1 in the Changelog. Thanks Maurice for the inspiration. Perhaps eventually I will make changes to the admin settings screen so this will be a full fledge feature of the module and not a hack.
Robert Angle
Phorum lover, nothing more.
Ruminations
Edited 1 time(s). Last edit at 05/05/2012 05:36PM by Robert Angle.
Download the attached script and upload it to your /mods/format_signatures/ directory, delete the old format_signatures.php and rename this file to format_signatures.php instead.
This is a hack of Format_Signatures 1.0.1 in the Changelog. Thanks Maurice for the inspiration. Perhaps eventually I will make changes to the admin settings screen so this will be a full fledge feature of the module and not a hack.
Robert Angle
Phorum lover, nothing more.
Ruminations
Edited 1 time(s). Last edit at 05/05/2012 05:36PM by Robert Angle.
Re: Module: Format Signatures May 21, 2012 05:33PM |
Registered: 15 years ago Posts: 160 |
Re: Module: Format Signatures May 21, 2012 05:51PM |
Admin Registered: 20 years ago Posts: 8,532 |
No, it's not usable for putting constraints on the signature, but luckily there is another module for that ;-)
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Format Signatures May 21, 2012 06:07PM |
Registered: 15 years ago Posts: 160 |
i tried and it was possible??
I will take a look at your link too:)
Language: PHPfunction phorum_mod_format_signatures_read_user_info($users) { // Do not handle this on the control center page. That is where // the user can edit his signature. If we would add the signature // markers here, they would show up verbatim in the signature editor. if (phorum_page === ';control';) return $users; foreach ($users as $id => $user) { $sig = trim($user[';signature';]); if ($sig != ';';) { // also possible: function isSignature_allowed($sig), should return true/false // showing error text depending on resulting true/false then if(strlen($sig) > 500) $sig = ';System Error: signature tekst meer dan 500 tekens!';; $users[$id][';signature';] = SIGNATURE_MARKER_PRE . $sig . SIGNATURE_MARKER_POST; } } return $users; }
I will take a look at your link too:)
Re: Module: Format Signatures May 21, 2012 06:31PM |
Registered: 15 years ago Posts: 160 |
Re: Module: Format Signatures May 22, 2012 02:44AM |
Admin Registered: 20 years ago Posts: 8,532 |
They have very different functions, so I say they don't belong together.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.