Make the mentioning system easier to use
3 posters
Page 1 of 1
Make the mentioning system easier to use
Make the mentioning system easier to use |
By default, the mentioning system relies on the user to type out the name of the person you want to mention, sometimes causing errors and mistakenly tagging other members. This tutorial will provide you with three different ways to make mentioning your members more user friendly ! InformationThe method of installation will be via JavaScript, so make sure to navigate to JavaScript codes management in your Administration Panel. ( Administration Panel > Modules > JavaScript codes management ) If you've recently created a forum, be sure that you enabled JS codes management by choosing Yes. The first two scripts provided are optimized for all forum versions, provided you have not heavily modified your templates. You will see a variable at the top of these scripts titled version. Be sure to change the number to the one that corresponds to your forum version. The options are : 0 : PHPBB2 1 : PHPBB3 2 : PUNBB 3 : INVISION 4 : MODERNBB 5 : AWESOMEBB ( See this topic to find out your version ) Now, feel free to choose the features you want to install.
@ before the username in the profileThis modification will allow you to add the @ sign before the usernames in the posting profile. Clicking the @ sign will instantly insert that member's name into the editor ! Create a new script with the following settings. Title : Postprofile Mention Placement : In all the pages
Modifications : At the top of the script you will see a version variable. Make sure that the number corresponds to your forum version. If you want to style the @ sign, you can use the following CSS style rules. ( Display > Colors > CSS stylesheet )
If you want to change the @ to something else, then find b.innerHTML = '@'; and change the @ sign to whatever you want ! When you're finished, go ahead and save the script. Button for mentioning membersThis modification will allow you to add a button to the existing post options for mentioning members. Clicking the button will add the username of that member to the editor. Create a new script with the following settings. Title : Mention button Placement : In all the pages
Modifications : At the top of the script you will see a version variable. Make sure that the number corresponds to your forum version. Additionally you will also see an image variable. This is the image for the button, you can changes this with the URL of your own button if you like. When you're finished, go ahead and save the script. SCEditor button for mentioning membersThis modification will allow you to add a new button to your editor for mentioning members and friends. You can either type the name of the user, or if you have friends, select them from a predefined list. Once you're finish, you can click insert to add the mention into the editor. Go to JavaScript codes management, and create a new script with the following settings. Title : SCEditor Mention Button Placement : In all the pages
Now, let's add some styles to the stylesheet so our button has the correct image. Go to Administration Panel > Display > Colors > CSS stylesheet paste the following rules and submit.
Click submit and you're ready to mention your members and friends ! |
This tutorial was written by Ange Tuteur. Updated: 04.09.2020 to add version : MODERNBB and AWESOMEBB By @APE Coded by @Ange Tuteur |
SarkZKalie, TonnyKamper and AngelM like this post
Re: Make the mentioning system easier to use
This Tutorial was updated to add the following 2 Forum version : MODERNBB and AWESOMEBB
With thanks to our great Friend @Ange Tuteur
With thanks to our great Friend @Ange Tuteur
TonnyKamper and trajce like this post
Re: Make the mentioning system easier to use
This code was updated to fit in with the new HTTPS address
updated 13.03.2022 by skouliki
updated 13.03.2022 by skouliki
TonnyKamper likes this post
Similar topics
» Make the mentioning system easier to use
» Want to install mentioning system.
» How to make a thanks system like here?
» How can i make a shop system?
» How do I make an automated quiz system
» Want to install mentioning system.
» How to make a thanks system like here?
» How can i make a shop system?
» How do I make an automated quiz system
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum