|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.