|SET IMAGE FOR LOCKED ANNOUNCEMENTS|
DescriptionIn this tutorial you will learn how to change image for locked announcement because by default Forumotion CP doesn't provide image for that.
Technical limitations› This tutorial is dedicated to the forums powered by Forumotion free forum service
› Requires to be the Founder of the #Forumotion Forum
› It only works with PhpBB2 Forumotion forums' versions
IntroductionThis tutorial is focused on locked announcement images but it can be modified to fit any other topic image depending on what you need.
HTML Content & Templates ModificationFor the last step you need to go towards Administration Control Panel (ACP) Display Templates General - topics_list_box and modify its content:
Scroll down to the bottom of template and paste this code (after all the code in template):
Final considerationsNow, to understand the script above, let's see what we have. imageSrc variable takes the current image of any topic image. Thanks to loop, it will slowly go over each topic icon avaliable there. Now, inside if statement, we ask if the image is equal to announcement image and is the title of that image equal to "This topic is locked: you cannot edit posts or make replies.". If that's true, then we can change the image to locked announcement. Of course, image of your own will.
In this tutorial I used my own images, you will have to change for those you use on your forum, that's the only way it will work.
|This resource belong to this community unless differently stated.|
No reproduction possible without our agreement, in accordance with article L122-1 of the CPI.
by Sir Chivas Sat May 27, 2023 8:32 pm
by H3RO Fri May 26, 2023 1:19 pm
by Niko Fri May 26, 2023 11:53 am
by Sir Chivas Sun May 21, 2023 1:13 am
by Maul Thu May 18, 2023 11:57 pm
by Beyonder Tue May 16, 2023 6:50 pm
by YoshiGM Tue May 16, 2023 4:22 pm
by Lucky Sat May 13, 2023 3:25 pm