Firefox PHP

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/06/2011 Read message
format_signatures-1.0.1.zip 3.2 KB open | download Maurice Makaay 01/06/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 03:28PM
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.

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/06/2011 12:12AM by Maurice Makaay.
Attachments:
open | download - format_signatures-1.0.1.tar.gz (1.9 KB)
open | download - format_signatures-1.0.1.zip (3.2 KB)
Re: Module: Format Signatures
January 29, 2008 07:08PM
Hey,

Installed it and it works great, thanks.

--
Bert Garcia - When all you have is a keyboard
Re: Module: Format Signatures
August 10, 2008 01:29AM
Thanks! Just what I needed!
Re: Module: Format Signatures
May 05, 2012 11:33PM
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 11:36PM by Robert Angle.
Attachments:
open | download - format_signatures_BOB_HACK.php (1.8 KB)
Re: Module: Format Signatures
May 21, 2012 11:33PM
Hi,
can this module also be used to set a limit on amount of characters in a signature?
i want to try just allow a certain amount of characters.
We have a few users whoms signaturers are much bigger then their messages......

<hr />
usually manuals are written by experts,
so.....that's the reason why i do not understand the manuals)
Re: Module: Format Signatures
May 21, 2012 11:51PM
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
Re: Module: Format Signatures
May 22, 2012 12:07AM
i tried and it was possible??

Language: PHP
function 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:)

<hr />
usually manuals are written by experts,
so.....that's the reason why i do not understand the manuals)
Re: Module: Format Signatures
May 22, 2012 12:31AM
maurice, thank you and your team!
that "another module" is working perfectly!

For existing signatures i do need my extra check on string length, so i will leave this tiny little piece of extra code in this module

Shouldn't be these both signature add-ons glued together??

<hr />
usually manuals are written by experts,
so.....that's the reason why i do not understand the manuals)
Re: Module: Format Signatures
May 22, 2012 08:44AM
They have very different functions, so I say they don't belong together.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login