Preview:
Author: @zest_n
Version: AwesomeBB (Another version just requires changing the 'class name' in the code, but I don't have time to do it)
Step 1: Add all the staff members you want to display on the 'The Team' page to a usergroup of your choice, and remember the ID of that group (/g1-, g2-...)
In the future, if there are new staff members, the administrator needs to add them to this group if they want to display their names on the 'The Team' page.
This group must be either a open group or a closed group; it cannot be a hidden group.
If you want guests to see this page: ACP >> Users & Groups >> Special rights >> View the profile & Usergroups >> Guest >> Save.
Step 2: ACP >> Modules >> HTML & Javascript >> HTML pages management >> Create in advanced mode (HTML)
Title: The team
Do you wish to use your forum header and footer ? Yes
Content:
NOTE:
- Replace the number
in
with the ID of the group (step 1)
Author: @zest_n
Version: AwesomeBB (Another version just requires changing the 'class name' in the code, but I don't have time to do it)
Description wrote:- Automatically update your staff list through a usergroup.
- Display information such as rank, usergroups automatically.
- Includes 4 columns: Username, Usergroups, Posts, From, and E-mail.
Step 1: Add all the staff members you want to display on the 'The Team' page to a usergroup of your choice, and remember the ID of that group (/g1-, g2-...)
In the future, if there are new staff members, the administrator needs to add them to this group if they want to display their names on the 'The Team' page.
This group must be either a open group or a closed group; it cannot be a hidden group.
If you want guests to see this page: ACP >> Users & Groups >> Special rights >> View the profile & Usergroups >> Guest >> Save.
Step 2: ACP >> Modules >> HTML & Javascript >> HTML pages management >> Create in advanced mode (HTML)
Title: The team
Do you wish to use your forum header and footer ? Yes
Content:
- Spoiler:
- Code:
<div class="page-header"><h1>The team</h1></div>
<script>/* staff list by zest_n */
$(document).ready(function(){$.get('/g1-',function(url){$('#team').html($('.table1',url));$('#team').find('a[href^="/u"]').each(function(){var rank=$(this).attr('href');$(this).after('<div class="rank"></div>');$(this).next().load(rank+' .mod-login-rank img').before('<br />')});$('#team').find('a[href^="/privmsg?mode=post&u="]').each(function(){var usergroup=$(this).attr('href').match(/[0-9]+/g);$(this).load('/u'+usergroup+'groups .group-header').removeAttr('href').css('color','#000')})})})
</script><div id="team"></div>
<style>table th:nth-child(7),table td:nth-child(7),table td:nth-child(6),table th:nth-child(6){display:none}td[colspan="8"]{display:none}th[class="pm"]{font-size:0}th[class="pm"]:after{content:"Usergroups";font-size:13px}#team img:not(#team .rank img){float:left;margin:0 7px 0 0}</style>
NOTE:
- Replace the number
|
|
Last edited by zest_n on September 27th 2024, 12:29 am; edited 2 times in total