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.
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)
array('check', 'allow_editDisplayName'),
array('check', 'allow_guestAccess'),
array('check', 'enable_buddylist'),
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.
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?
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
array('check', 'allow_editDisplayName'),
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.
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.
All changes are in place and now both permissions simply say "edit display name" without explanation.
Please attach a screen shot for me.
Of the code or...?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpuu.sh%2F7crsL.png&hash=c80fb1a5598dd84899c731fb99af00d9494a6c24)
Nice mod. I using this on my new forum.
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.
Quote from: Joker™ on March 01, 2014, 10:20:49 PM
Lol really, nearly after 10 months :PQuote 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.
I triple checked and nothing changed. :c
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.
So, which files do you want? All the mod edits?
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.
I will do that as soon as I'm not sick anymore.
Here are the requested files.
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.
I see. Aight. Glad to have caught a bug ;3
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.
Upgraded.
#Change Logs
@Version 1.2.1
- Change of author and license.
- Mod upgraded to partially hook.
Have you looked into the bug I reported?
Yes NekoJonez. I think I have it fixed already. Please do try and report.