Show the first post reminder in specific topics |
OverviewDescriptionWith this trick you will be able to show the first post reminder in only specific topics.DemonstrationTechnical limitations› This tutorial is dedicated to the forums powered by Forumotion free forum service› Requires to be the Founder of the #Forumotion Forum › It works in phpBB3, punBB, Invision and modernBB. › It doesn't work in phpBB2 InstallationIntroductionIn order for this to work, you will need to Enable the first post option.To do that you have to go to Administration control panel (ACP) ► General ► Configuration ► Messages ► Always show the first post in the topics Yes HTML Content & Templates ModificationFor the last step you need to go towards Administration Control Panel (ACP) Display Templates General - viewtopic_body and modify its content:PhpBB3 and ModernBB
PunBB
Invision
CSSIn order to design the style of the resource, you need to go towards Administration Control Panel (ACP) Display CSS & Colors CSS Style Sheet and add append the following code:You need to reply to the topic in order to see the code resources Javascript & jQueryFor the next step you need to go towards Administration Control Panel (ACP) Modules HTML & Javascript Javascript codes management and create a new code - upon verifying that Javascript codes management is enabled.
Final considerationsThe first post will not be displayed by default in other pages.To display it you have to add
Install a button to add it automaticallyYou may want to add a SCEditor button to insert that text automatically for you in your post.To do that, add this in the same javascript, after the code I posted before. You need to reply to the topic in order to see the code resources And add this in your CSS:
Notes
|
This resource belong to this community unless differently stated. No reproduction possible without our agreement, in accordance with article L122-1 of the CPI. |