Support Forum
H
Yellow Swordfish said
Well - there is a question we have most certainly never been asked before!
And currently - I am afraid not. The best I can point you to is to disallow users the right to create and use signatures which is a standard permission you can grant and revoke.
Huh that's a pretty standard feature on a lot of boards.
Wonder if I could create a custom profile field for users to set and then use some logic in the post display to turn off that section based on the custom profile field?
sorry, you want users to be able to selectively hide other user signatures? user by user? never seen that before... not even sure what that UI would look like... for large user systems, could be quite cumbersome...
a bit messy, but you could use the filter on display of signatures, 'sph_PostIndexUserSignature', to remove it when you like... so yes, you could use a custom profile field, and check that field using the above signature and remove it if you like... but that will only allow a user to turn off display of all signatures, not each user by user..
Visit Cruise Talk Central and Mr Papa's World
Mr Papa said
sorry, you want users to be able to selectively hide other user signatures? user by user? never seen that before... not even sure what that UI would look like... for large user systems, could be quite cumbersome...a bit messy, but you could use the filter on display of signatures, 'sph_PostIndexUserSignature', to remove it when you like... so yes, you could use a custom profile field, and check that field using the above signature and remove it if you like... but that will only allow a user to turn off display of all signatures, not each user by user..
Yes on ip.board you can do it on a user by user basis and some other software as well. However I'd settle for all sigs or nothing.
If you wanted to go down that route you can access the user who made the post (in the spTopicView template) using the global variable:
$spThisPostUser
so... that would be:
$spThisPostUser->yourCustomnFieldName
If you go to the forum admin > toolbox > data inspector - look over on the right at the Topic View Data section you will see the checkbox to show the thisPostUser data. If you check it, save and then open a topic page it will display all the data that is available for use which includes custom fields. Only you will see this by the way. But it is useful to check what data is available and can be used.
if you prefer to just not show signaures then just turn off the permissions to use them.
YELLOW
SWORDFISH
|
Ok so I see where the custom profile field for the person viewing can be seen by ticking the spGlobals box in the data inspector.
here is what it outputs:
[customProfileFields] => Array ( [data] => Array ( [0] => Array ( [name] => Hide Signatures [slug] => hidesignatures [type] => checkbox [values] => [form] => edit-profile ) ) )
1 Guest(s)