STYLE MOST LIKED POST ON THE PAGE |
OverviewDescriptionWith this tutorial you will be able to change the look of most liked post so that it can stand out from the others. In the scope of this tutorial we will keep it simple as much as possible while you can add some additional styling that suits you best.DemonstrationTechnical limitations› This tutorial is dedicated to the forums powered by Forumotion free forum service› It only works with AwesomeBB Forumotion forums' versions InstallationIntroductionInstallation is quite simple and all you have to work with JS.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.
Javascript CustomizationIf there are no liked posts, none will be styled. If there are several with the same amount of likes, only the first occurance will be styled while others will be ignored.What can be changed in this script is style itself. This targets post body:
This targets post footer:
Final considerationsThe only limitation to this script is that it doesn't really take most liked post in the topic but on the page that is being browsed. Each page, different post will be styled.If there are two or more posts with same number of likes, script will chose first one. If you need different styling, please let me know. One last thing. In order for script to work, only likes must be enabled. 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. |