Customize your forum based on groups |
OverviewDescriptionThis trick is meant to present an option to customize the display of your forum based on your group membership.Technical limitations› This tutorial is dedicated to the forums powered by Forumotion free forum service› 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.PhpBB2
All other versions
Script settingsHOW DOES IT WORK?This script allows you to browse the / groups page of your forum and check if the member belongs to the group designated by the script or not. If the latter belongs to a group designated by said script then the exécutions will apply .DESIGNATION OF THE GROUPIn the script given in step 1 of this tutorial (depending on the version of your forum), you should indicate the group name in the variable /
DESIGNATION OF PERFORMANCESNow it is necessary to inform the executions based on the membership of the group of members. To illustrate the many possibilities available to you, we offer the following illustrations.Display a link in the menu toolbar Let's take the following context: a user has registered and his submission has been validated by the forum administration. I add it to the "Members" group of the forum. Now that he's in this group, I want to allow him access to my forum's Discord. The Discord link will appear in the menu toolbar. For a forum in PhpBB3, the script will be: Then replace
Customize the display of an item in your forum Let's take the following context: I want to color the toolbar according to the color of the "Members" group. On a forum in PhpBB3, the script will be: Replace
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. |