Add a message to thanked posts
3 posters
Page 1 of 1
Add a message to thanked posts
Add a message to thanked posts |
This tutorial will help you add a small message below posts that have been thanked by the topic starter using the "thanks" button, such as in the example below. This modification is for any version so long as you meet the following conditions :
If you meet all the above conditions then you should have no problems with this tutorial. Installing the CSSFirstly you will need to add some CSS to your stylesheet for the thanked message display properly. Go to Administration Panel > Display > Colors > CSS stylesheet and paste the following codes.
Installing the JavaScriptNext to install this plugin go to Administration Panel > Modules > JavaScript codes management and create a script with the following settings. Title : Thank you message Placement : In the topics
Modifications : If you want to change the structure of the thank you message, feel free to modify the message function at the top of the script. Inside this function are three parts you can modify : 1. pseudo is a variable which contains the name of the user who was thanked. You can modify the contents to be something else, or leave it as is. 2. icon is a variable which contains the image element of the star, which displays on both sides of the thank you message. If you want to change this, feel free to replace the URL in the src attribute, or change it to something completely different such as a font awesome icon. 3. Lastly is the return value which is the message itself. If you want to change around the wording or move some of the variables around, you can do this here. Just make sure not to delete the return keyword, otherwise the message will not display. Remember to save the script, once you've done what you wanted. After this, find a thanked post and there should now be a message underneath it. If the message is not displaying, please open a topic into the script and coding problems forum, and our staff will assist you. |
This tutorial was written by Ange Tuteur. |
TonnyKamper likes this post
Re: Add a message to thanked posts
The JavaScript has been updated.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
TonnyKamper likes this post
Re: Add a message to thanked posts
This code was updated to fit in with the new HTTPS address
updated 13.03.2022 by skouliki
updated 13.03.2022 by skouliki
EmmaSP and TonnyKamper like this post
Similar topics
» Add a message to thanked posts (without java codes)
» Thanked post message position
» Thanked Message - Code issue
» tutorial ad a message to thanked no working
» How can I edit the Thanked Message in Forumactif Edge
» Thanked post message position
» Thanked Message - Code issue
» tutorial ad a message to thanked no working
» How can I edit the Thanked Message in Forumactif Edge
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum