Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on January 03, 2015, 02:16:01 PM

Title: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on January 03, 2015, 02:16:01 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=4014)

AMSP - Add Member's Signature Permission

- For SMF 2.0.x
- Partially using hook, modifications on three files.

1. Please do your own backup though every installation is backed up automatically.
2. By default, forum members are usually allowed to have their own signatures (to advertise).
3. These signatures are shown at display (post), personal messsage, profile summary etc (are there any more?).
4. Some signatures are anoying and forum admins / owners dislike this (or they want to charge some payment for them :P).
5. Using this mod added permission, forum admins / owners can decide which groups are allowed to have their signatures.
6. This mod will automatically stop displaying all members' signatures (other than admin groups), until permission is given.
7. You can test it in all lower SMF 2.0.x version too as IMO it should work just fine. ;)


Thank you for using/testing it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep original and current authors' link(s) if it is in there somewhere. ;)

Github link: ahrasis/AMSP-Add-Members-Signature-Permission-Mod (https://github.com/ahrasis/AMSP-Add-Members-Signature-Permission-Mod)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Fvalid_icons%2Fvalid-xhtml10&hash=74d037fd7425e2c0d44d8170f9a8da0b)  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fjigsaw.w3.org%2Fcss-validator%2Fimages%2Fvcss&hash=4520ecf0ebdbb8b0fa30d018890712b9)

#Change Logs

@Version 1.0.1
- Fix display in both classic and simple view in permission page.

@Version 1.0.0
- Initial release.
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on January 08, 2015, 11:09:32 PM
Updated...

#Change Logs

@Version 1.0.1
- Fix display in both classic and simple view in permission page.
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: bosswhite on February 11, 2015, 05:55:21 PM
This mod installs successfully on my forum (SMF 2.0.9).

However, if I set it so that signatures are not allowed in a particular member group, the option to add a signature is still displayed in a user's profile within that group.

Has anybody else experienced any problems with this mod?
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 14, 2015, 11:45:05 AM
Make sure you are not in admin group when you are testing that.
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: bosswhite on February 14, 2015, 12:10:18 PM
I logged in as a user with no admin rights.

The user was a member of a test group with signatures disabled, but it still allowed him to create a signature.
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 14, 2015, 09:50:55 PM
Strange indeed. I will try to look into it. You are using version 1.0.1 right? Is that member's signature being displayed (or not)?
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 14, 2015, 10:27:51 PM
I have created a fresh 2.0.9 forum and installed 1.0.1 version of this mod directy from SMF but I cannot reproduce your reported issue. The mod simply work upon its installation. Only admin and group with permission can add, edit, show and see signature.
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: bosswhite on February 15, 2015, 11:27:35 AM
I tried again.
I created a new group called NoSignatures and added a member to it who has no administrative privileges (one that I registered for testing purposes).
I installed the mod and then went into Permissions for the group NoSignatures and made sure the signatures box was unchecked and saved.

I then logged out and logged back in as the test member.

In the test member's profile the signatures box displays and I was able to add a signature. Something is not working right!

AMSP.partiallyhooks.v.101 | SMF 2.0.9 | SimplePortal 2.3.6
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: Hj Ahmad Rasyid Hj Ismail on February 15, 2015, 09:16:38 PM
I did the same as yours but I cannot reproduce it on a freshly installed forum. I tried both on regular group as well as unique permission group. Did your group has unique permission or inherited it from regular group? Do check that as well.

Edited: Anybody else facing the same problem /  issue?
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: bosswhite on February 16, 2015, 06:22:23 AM
The group I created was based off regular members and then set to have unique permissions, private and invisible.
Title: Re: AMSP - Add Member's Signature Permission (Partially Hook!)
Post by: dekatria on March 16, 2016, 08:19:35 PM
Since I am very much interested in this, it would be nice if we had more feedback.
Also what does "Partially Hook" mean?