Customizing SMF > Modifications and Packages

Advanced Signature

(1/14) > >>

emanuele:
Link to Mod

This mod provides few new features to the signature mechanism.

With this mod active it is possible to have multiple signatures per user (the maximum number can be defined by the admin panel), choose a different signatures per each post or personal message, choose to use a random signature (for each single post/PM, from the post page, or for all the posts/PMs, from the profile page) or to not show signature at all (for each single post/PM, from the post page, or for all the posts/PMs, from the profile page). Admins can define a default signature for all the users without one. Please note that if you need only the default signature feature a better choice would be (Ha)²'s mod Signature Prompt.

SMF 2.0 only
Possibility to show/hide signatures on a per board and/or per topic level.


Uninstall instructions for SMF 2.0
Before uninstall the mod please go to Admin > Configuration > Features and Options > Signatures, set the maximum number of signature to 1 and use SMF tool to apply rules to all existing signatures.

Uninstall instructions for SMF 1.1.x
Before uninstall the mod use the maintenance action provided by the mod to reset all the signatures for all the users to the SMF-original single signature per user in: admin > forum maitenance and then select Reset to single signature per user.
Additionally, to completely remove any trace of the mod (including database entries), please use the uninstall script provided. Please before use the uninstall script, uninstall the mod as usual and delete the package from the server, then upload the uninstall script and run it.

Change log

* 0.3.0 - beta several things including a bit of redesign, removed useless queries, moved from implode/explode to un/serialize, added license, other
* 0.2.0:
* stopped development for SMF 1.1.x series, all new features available only for SMF 2.0
* added support for hiding signatures at board level
* added support for show/hide signatures at topic level
* added permission to allow show/hide signatures in topics
* logging of action hide/show signatures in topics
* possibility to disable logging
* 0.1.10: fixed utf8 files
* 0.1.9:
* updated version compatibility (SMF 1.1.14 and 2.0)
* added UTF8 translations...hope they work
* 0.1.8: fixed an error log in SMF 2
* 0.1.7:
* bug fixed - reported by Kcmartz, the characters remaining was not working properly in SMF 2.0
* fixed a php syntax error in Admin.php for SMF 1.1.x
* 0.1.6: added a couple of notes during the uninstall to remind about maintenance.
* 0.1.5: several improvements (thanks to the Customizer Team for the suggestions!)
* 0.1.4:
* bug fixed - reported by Kindred (thanks!) it was possible to use HTML in signatures.
* fixed several errors reported in the log reported in the same post by Kindred
* 0.1.3:
* fixed some errors in the log a couple reported by Kindred few others found by myself
* drop down box for the signature choice not showed on new topics
* the signatures were not shown at all in personal messages
* BBC not parsed (reported by warezjasz)
* 0.1.2: added support for default signature (in case the user doesn't set one) and update to SMF 1.1.13 and SMF 2.0 RC5
* 0.1.1: bug fixed - reported by DownloadPs3 (thanks Arantor) Call to undefined function in the profile page
* 0.1.0: initial release.

DownloadPs3:
Please help.

If i try to update my profile and dont have something in the signature box it takes me to a white page and says:

Fatal error: Call to undefined function preparsecode() in /home/a5104797/public_html/Sources/Profile.php on line 705

line 704:

   $_POST['signature'] = strtr($_POST['signature'], array('"' => '\\"', ''' => '\\'', ''' => '\\''));

line 705:

   preparsecode($_POST['signature']);



Is it possible to make is so by defult a users signature is their user name untill they change it?

DownloadPs3:
I am also getting this error:

Admin    Today at 05:02:47 AM
IP address xx.xx.xxx.xxx      session 607cf3af46dbeb860c551315ad2c0924
URL http://myfreespeach.co.cc/index.php?topic=7.0
8: Undefined offset: 0
File: /home/a5104797/public_html/Sources/Subs.php
Line: 3840

Arantor:

--- Quote from: DownloadPs3 on February 09, 2011, 08:16:42 PM ---Fatal error: Call to undefined function preparsecode() in /home/a5104797/public_html/Sources/Profile.php on line 705

line 704:

   $_POST['signature'] = strtr($_POST['signature'], array('"' => '\\"', ''' => '\\'', ''' => '\\''));

line 705:

   preparsecode($_POST['signature']);

--- End quote ---

Add this line before line 705:

--- Code: ---require_once($GLOBALS['sourcedir'] . '/Subs-Post.php');
--- End code ---


--- Quote ---Is it possible to make is so by defult a users signature is their user name untill they change it?
--- End quote ---

Not easily, but you might try looking at the Signature Prompt mod which will do basically the same thing.

DownloadPs3:

--- Quote from: Arantor on February 10, 2011, 05:42:31 AM ---
--- Quote from: DownloadPs3 on February 09, 2011, 08:16:42 PM ---Fatal error: Call to undefined function preparsecode() in /home/a5104797/public_html/Sources/Profile.php on line 705

line 704:

   $_POST['signature'] = strtr($_POST['signature'], array('"' => '\\"', ''' => '\\'', ''' => '\\''));

line 705:

   preparsecode($_POST['signature']);

--- End quote ---

Add this line before line 705:

--- Code: ---require_once($GLOBALS['sourcedir'] . '/Subs-Post.php');
--- End code ---


--- Quote ---Is it possible to make is so by defult a users signature is their user name untill they change it?
--- End quote ---

Not easily, but you might try looking at the Signature Prompt mod which will do basically the same thing.

--- End quote ---

Thank You for your help that did fix the error. Do you have any idea about this part:


--- Quote from: DownloadPs3 on February 10, 2011, 05:10:39 AM ---I am also getting this error:

Admin    Today at 05:02:47 AM
IP address xx.xx.xxx.xxx      session 607cf3af46dbeb860c551315ad2c0924
URL http://myfreespeach.co.cc/index.php?topic=7.0
8: Undefined offset: 0
File: /home/a5104797/public_html/Sources/Subs.php
Line: 3840

--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version