Option to Hide signatures by default |
OverviewDescriptionThis tutorial allows to add a new preference setting in the edit profile page, which allows to automatically hide all signatures from all users.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 with all Forumotion forums' versions InstallationJavascript & 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 CustomizationProvide information (if relevant) about what can be changed and used variablesHTML Content & Templates ModificationThen, you need to go towards Administration Control Panel (ACP) Display Templates Profile - profile_add_body and modify its content:
Finally, go towards Administration Control Panel (ACP) Display Templates General - viewtopic_body and modify its content:
It will end up looking something like this You need to reply to the topic in order to see the code resources Final considerationsPlease note that you do not need to save on the profile preferences, the preference is automatically updated once you change the checkbox.The settings relies on localstorage, so the preference will be different for each device that you use. By default it is set to "No". 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. |