Log in Latest topics » Forumactif Edge - Releases by Ange Tuteur Tue 03 Sep 2019, 11:49 » GIFActif - Giphy Button for the Editor by Ange Tuteur Wed 08 May 2019, 17:21 » Forum Closure by Ange Tuteur Mon 01 Jan 2018, 01:28 » Chit Chat Thread by Valoish Sun 31 Dec 2017, 19:15 » Font/Text background color. by Valoish Sun 31 Dec 2017, 19:11 » Forumactif Messenger - Instant Message Application for Forumotion by Wolfuryo Sun 31 Dec 2017, 18:24 » [GAME] Count to One Million! by brandon_g Fri 29 Dec 2017, 18:58 » Post Cards by manikbiradar Wed 20 Dec 2017, 07:50 » [GAME] Countdown from 200,000 by Valoish Wed 13 Dec 2017, 23:22 » GeekPolice Tech Support Forums - GeekPolice.net by Dr Jay Mon 11 Dec 2017, 19:12 » Asking about some plugin for Forumotion by Dr Jay Mon 11 Dec 2017, 19:10 » [GAME] What are you thinking right now? by Van-Helsing Sat 09 Dec 2017, 14:51 » Widget : Similar topics by ranbac Wed 06 Dec 2017, 18:11 » Change the Background of the Forum and put an image and how to make prefixs? by Clement Wed 06 Dec 2017, 15:19 » Hello from Western Australia by SarkZKalie Wed 06 Dec 2017, 05:34 Recent Tutorials Top posters Useful links and info Who is online? In total there are 30 users online :: 0 Registered, 0 Hidden and 30 Guests :: 1 Bot None Most users ever online was 515 on Tue 14 Sep 2021, 15:24 | Nicknames for @Mentions Fri 12 Aug 2016, 13:18 by Ange Tuteur This is a silly little plugin that will allow your members to personalize their mention @handle with the nickname that they prefer, without having to change their username on the forum. For example ; Mentioning @'Ange Tuteur' would display @CoffeeFiend instead, along with an optional tag that shows the member's original @handle.
Notes : - Mentioning @CoffeeFiend will not tag @'Ange Tuteur'. You must use the member's default @handle to tag them. - This will not work in the chatbox 1. Creating the profile fieldBefore we install this plugin we first need to create a new profile field for our members. Go to Admin Panel > Users & Groups > Profiles and create a new profile field with the following settings. Type : Text zone ( DO NOT PICK text field ) Name : Nickname Description : Personalize your @handle with a unique nickname URL icon : None Necessarily filled ? : You choose Display : Profile, and messages if you want nicknames shown in the post profile Display type : Text Who can modify the profile field value ? : Members, Moderators ( in case of questionable nicknames ) Display this field for users that are at least : You choose Separator : Back to the line Down below there should be additional information under text zone. Default content : Paste the following content as the default value for the field.
You can set the max length as you like. When you're finished, your field should look similar to this : If everything looks okay to you click the save button. Then edit the newly created field and click the "Replace the content" button at the very bottom to force the default value. Once you've done this you're ready to move onto the installation of the script. 2. Installing the JavaScriptSo that the new profile field functions properly and our members @handles are personalized, we need to install a script. Go to Admin Panel > Modules > JavaScript codes management and create a new script with the following settings. Title : @Handle Nicknames Placement : In all the pages
Modifications Before you save the script, here are some modifications that you may make : 1. cache_time By default, nicknames are stored for 1 hour to speed up the script and prevent multiple requests to the server. This time can be changed by modifying this line :
Each set of digits represents an hour, minute, second, etc.. Use the comment as a guide, and modify the caching time as you like. 2. show_original By default, the original @handle is shown after mentions that are disguised with a nickname. This is to help prevent confusion and show who's who. However, if you don't like this feature, you can disable it by finding this line of code :
and changing "true" to "false". 3. original_tooltip This variable determines the texts shown when you hover over a member's original @handle. If you want to translate or change these texts, find this line of code :
Once you're finished making modifications, save the script and the plugin will be installed ! See the final section for information on how it works ! 3. NotesInputting your nickname To input your own nickname for your @handles go to the edit profile page which should be accessible from the navbar. Find the field and insert your nickname. If JavaScript is enabled, your nickname will automatically be wrapped with the necessary tags. Otherwise, you should type your nickname between the table tags manually. Why should my nickname be between table tags ? It's necessary for your nickname to be between table tags so that the script can quickly identify your nickname and place it in your @handle. Removing the table tags will prevent your nickname from being displayed in your @handle. I changed my nickname, but it's still the same !! Don't worry, nicknames are cached for *1 hour to prevent repeated requests to the server. You can force your new nickname on your end by clearing your cache. *This time can be changed by an administrator. If you have any questions or comments feel free to leave a reply below. Go make some silly @handles !
Comments: 8 |
|
|