Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on May 20, 2011, 07:44:29 PM

Title: DNEP - Display Name Edit Permission (Partially Hook)
Post by: Hj Ahmad Rasyid Hj Ismail on May 20, 2011, 07:44:29 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2999)

DNEP - Display Name Edit Permission

- For SMF 2.0.x
- Partially using hook, modifications on two 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 display name.
3. It can be turned on or off via admin feature settings page.
4. However, some forum admins / owners may want to control this based via group permission.
5. Using this mod, forum admins / owners can decide which group members are allowed to edit their display name.
6. 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. ;)

Original Author: Joker™ (http://www.simplemachines.org/community/index.php?action=profile;u=226111)
Alternative Support Site: BurkeKnight Enterprises (http://www.burkeknight.com/)

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

#Change Logs

@Version 1.2.1
- Change of author and license.
- Mod upgraded to partially hook.

@Version 1.0.0
- Initial release.
Title: Re: Edit Display Name
Post by: Joker™ on June 17, 2011, 06:13:10 AM
There was a major bug while uninstalling the mod which has been resolved now.

For users who want to install the new package (Version 1.2), have to uninstall the older version(version 1.1). After uninstalling it(Version 1.1) the mod is going to place a code randomly in Sources/ManageSettings.php.

To solve the issue raised after uninstallation of mod open


Sources/ManageSettings.php (Make backup of file before editing it)

Code (Find and Remove:) Select
array('check', 'allow_editDisplayName'),


Code (Find:) Select
array('check', 'allow_guestAccess'),
array('check', 'enable_buddylist'),


Code (Add after) Select
array('check', 'allow_editDisplayName'),



The whole issue occurred due to this code in Modification.xml (has been resolved now)
<file name="$sourcedir/ManageSettings.php">
<operation>
<search position="remove"><![CDATA[ array('check', 'allow_editDisplayName'),
]]></search>
</operation>
</file>


Sorry for the inconvenience.
Title: Re: Edit Display Name
Post by: Richardgm on July 29, 2011, 06:53:28 PM
Hello!

Thanks for this mod. I realized when trying to install it, that I get "test failed" for ManageSettings.php.

I looked up the file, and realized that the reason why it failed was (see snapshot).

I realize this is a small issue which I could simply overwrite the text myself.  How should I proceed?
Title: Re: Edit Display Name
Post by: Joker™ on July 31, 2011, 06:09:42 AM
Hmm, make a backup of your forum first, as I've seen a lot of users breaking there fourms while doing manual edits.

Install the mod

after that go to ManageSettings.php
Code (Find and Remove:) Select
array('check', 'allow_editDisplayName'),
Title: Re: Edit Display Name
Post by: NekoJonez on April 29, 2013, 08:58:09 AM
I have a weird issue with this mod in 2.0.4

It doesn't display the help at the permissions and it also gives only the option for only editing the OWN display name, twice.
Title: Re: Edit Display Name
Post by: Joker™ on April 30, 2013, 11:48:29 AM
Make sure all the edits (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2999;attach=189964;smf_version=2.0.4) are there.
Title: Re: Edit Display Name
Post by: NekoJonez on May 01, 2013, 06:37:59 AM
All changes are in place and now both permissions simply say "edit display name" without explanation.
Title: Re: Edit Display Name
Post by: Joker™ on May 03, 2013, 09:14:20 AM
Please attach a screen shot for me.
Title: Re: Edit Display Name
Post by: NekoJonez on February 26, 2014, 01:58:01 PM
Of the code or...?
Title: Re: Edit Display Name
Post by: NekoJonez on February 27, 2014, 10:58:12 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpuu.sh%2F7crsL.png&hash=c80fb1a5598dd84899c731fb99af00d9494a6c24)
Title: Re: Edit Display Name
Post by: rower on February 27, 2014, 03:12:43 PM
Nice mod. I using this on my new forum.
Title: Re: Edit Display Name
Post by: Joker™ on March 01, 2014, 10:20:49 PM
Lol really, nearly after 10 months :P
Quote from: NekoJonez on February 26, 2014, 01:58:01 PM
Of the code or...?

Make sure all the edits (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2999;attach=189964;smf_version=2.0.4) are there (go through each file manually), placed correctly and only once, not twice or thrice.
Title: Re: Edit Display Name
Post by: NekoJonez on March 02, 2014, 08:08:46 AM
Quote from: Joker™ on March 01, 2014, 10:20:49 PM
Lol really, nearly after 10 months :P
Quote from: NekoJonez on February 26, 2014, 01:58:01 PM
Of the code or...?

Make sure all the edits (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2999;attach=189964;smf_version=2.0.4) are there (go through each file manually), placed correctly and only once, not twice or thrice.
I am so sorry, I simply forgot to do it. I will keep you posted.
Title: Re: Edit Display Name
Post by: NekoJonez on March 02, 2014, 08:29:39 AM
I triple checked and nothing changed. :c
Title: Re: Edit Display Name
Post by: Joker™ on March 06, 2014, 10:05:14 AM
Quote from: NekoJonez on March 02, 2014, 08:29:39 AM
I triple checked and nothing changed. :c
Lol, I can only comment after looking at the files then.
Title: Re: Edit Display Name
Post by: NekoJonez on March 07, 2014, 05:11:49 AM
So, which files do you want? All the mod edits?
Title: Re: Edit Display Name
Post by: Joker™ on April 06, 2014, 02:10:06 AM
Quote from: NekoJonez on March 07, 2014, 05:11:49 AM
So, which files do you want? All the mod edits?
You still looking for a fix, if yes then attach all the files which are edited by the mod.
Title: Re: Edit Display Name
Post by: NekoJonez on April 06, 2014, 11:11:47 AM
I will do that as soon as I'm not sick anymore.
Title: Re: Edit Display Name
Post by: NekoJonez on April 07, 2014, 10:35:00 AM
Here are the requested files.
Title: Re: Edit Display Name
Post by: Joker™ on April 08, 2014, 06:13:16 AM
My bad, I never saw that you are using the "Simple" layout for editing permissions. This is a mod bug, thanks for reporting it, soon I'll be rolling a new version with a fix.

In the mean time you can switch to "Classic" view to understand and change the permissions related to the mod.
Title: Re: Edit Display Name
Post by: NekoJonez on April 08, 2014, 07:31:52 AM
I see. Aight. Glad to have caught a bug ;3
Title: Re: Edit Display Name
Post by: Hj Ahmad Rasyid Hj Ismail on October 08, 2014, 06:02:29 AM
Hiya all.

I am entrusted with this mod now but I haven't have time to look into it deeply yet. I also believe that my brother Joker is a better coder than I am. I will try to do my best in handling this mod.

Thank you for supporting this mod and do feel free to ask for support.
Title: Re: DNEP - Display Name Edit Permission (Partially Hook)
Post by: Hj Ahmad Rasyid Hj Ismail on January 02, 2015, 12:33:58 PM
Upgraded.

#Change Logs

@Version 1.2.1
- Change of author and license.
- Mod upgraded to partially hook.
Title: Re: DNEP - Display Name Edit Permission (Partially Hook)
Post by: NekoJonez on January 02, 2015, 01:36:40 PM
Have you looked into the bug I reported?
Title: Re: DNEP - Display Name Edit Permission (Partially Hook)
Post by: Hj Ahmad Rasyid Hj Ismail on January 02, 2015, 01:51:13 PM
Yes NekoJonez. I think I have it fixed already. Please do try and report.