Advertisement:

Author Topic: AMSP - Add Member's Signature Permission (Partially Hook!)  (Read 5656 times)

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
AMSP - Add Member's Signature Permission (Partially Hook!)
« on: January 03, 2015, 02:16:01 PM »
Link to Mod

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

 

#Change Logs

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

@Version 1.0.0
- Initial release.
« Last Edit: January 08, 2015, 11:09:12 PM by ahrasis »

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #1 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.

Offline bosswhite

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #2 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?
I've been down so long now it's beginning to look like up..

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #3 on: February 14, 2015, 11:45:05 AM »
Make sure you are not in admin group when you are testing that.

Offline bosswhite

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #4 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.
I've been down so long now it's beginning to look like up..

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #5 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)?

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #6 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.

Offline bosswhite

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #7 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
I've been down so long now it's beginning to look like up..

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #8 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?

Offline bosswhite

  • Jr. Member
  • **
  • Posts: 204
  • Gender: Male
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #9 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.
I've been down so long now it's beginning to look like up..

Offline dekatria

  • Jr. Member
  • **
  • Posts: 105
  • Leave Nothing
    • roulette30 on Facebook
    • roulette30 on LinkedIn
    • @@roulette30 on Twitter
    • How to play Roulette
Re: AMSP - Add Member's Signature Permission (Partially Hook!)
« Reply #10 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?