Team block

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Paul
Active Member
Posts: 3
Joined: 12. March 2014 21:51

Team block

Post by Paul »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://britishcelebrityfakers.co.uk/portal.php

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hello

I have been trying to alter the team block so it shows the staff on my forum.
Admin
Global moderators
Archive moderators

I did a search and found this https://www.phpbb.com/customise/db/mod/ ... 70#p247170
after following the instructions I get the admin and moderators showing but underneath I see the following text

Archive moderators
NO ARCHIVE MODERATORS



These are my edited files.

leaders_side.html:

Code: Select all

{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{$IMAGE_SRC}" width="{$IMAGE_WIDTH}" height="{$IMAGE_HEIGHT}" alt="" />&nbsp;<!-- ENDIF -->{$TITLE}{$LR_BLOCK_H_R}
	<strong<!-- IF S_CONTENT_DIRECTION eq 'rtl' --> style="float: right;"<!-- ENDIF -->>{L_ADMINISTRATORS}</strong><br />
	<!-- BEGIN admin -->
		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{admin.USERNAME_FULL}</strong></span><br style="clear:both" />
	<!-- BEGINELSE -->
		{L_NO_ADMINISTRATORS_P}<br /><br />
	<!-- END admin -->
	<br style="clear:both" />
	<strong<!-- IF S_CONTENT_DIRECTION eq 'rtl' --> style="float: right;"<!-- ENDIF -->>{L_MODERATORS}</strong><br />
	<!-- BEGIN mod -->
		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{mod.USERNAME_FULL}</strong></span><br style="clear:both" />
	<!-- BEGINELSE -->
		{L_NO_MODERATORS_P}
	<!-- END mod -->
   <br style="clear:both" />
   <strong>{L_ARCHIVE MODERATORS}</strong><br />
   <!-- BEGIN arc -->
      <span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;"><strong>{col.USERNAME_FULL}</strong></span><br style="clear:both" />
   <!-- BEGINELSE -->
      {L_NO_ARCHIVE MODERATORS_P}
   <!-- END arc -->
	
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
root/portal/modules/portal_leaders.php:

Code: Select all

'WHERE'        => 'u.group_id = g.group_id AND ' . $db->sql_in_set('g.group_name', array('ADMINISTRATORS', 'GLOBAL_MODERATORS', 'ARCHIVE_MODERATORS')), 
				'ORDER_BY'	=> 'g.group_name ASC, u.username_clean ASC'
			));
and

Code: Select all

 	while ($row = $db->sql_fetchrow($result))
			{
				if ($row['group_name'] == 'ADMINISTRATORS')
				{
					$which_row = 'admin';
				}
				elseif ($row['group_name'] == 'GLOBAL_MODERATORS')
				{
					$which_row = 'mod';
				}
				                elseif ($row['group_name'] == 'ARCHIVE_MODERATORS')
                {
                    $which_row = 'arc';
                } 
root/language/en/portal_leaders_module.php:

Code: Select all

'NO_ADMINISTRATORS_P'	    => 'No Administrators',
	'NO_MODERATORS_P'		    => 'No Moderators',
	'NO_ARCHIVE_MODERATORS_P'   => 'No Archive Moderators', 
	'NO_GROUPS_P'			    => 'No Groups',
	'ACP_PORTAL_LEADERS'	    => 'The Team',
and

Code: Select all

'PORTAL_LEADERS_EXT_EXP'	=> 'The standard block lists all admins/mods/Archive moderators, while the extended block includes all non-hidden groups with a legend.',
));
root/language/en/common.php:

Code: Select all

'AND'							=> 'And',
    'ARCHIVE_MODERATORS'            => 'Archive moderators', 
	'ARE_WATCHING_FORUM'			=> 'You have subscribed to be notified of new posts in this forum.',
and

Code: Select all

'G_ADMINISTRATORS'			=> 'Administrators',
	'G_ARCHIVE_MODERATORS'      => 'Archive moderators', 
	'G_BOTS'					=> 'Bots',
I think I have gone wrong with the Capitals and or shortening Archive moderator ?

Thanks in advance
Paul[/i]
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Team block

Post by Kirk »

Open: root/styles/your_style/template/portal/modules/leaders_side.html
Find;

Code: Select all

{L_NO_ARCHIVE MODERATORS_P}
Replace with:

Code: Select all

{L_NO_ARCHIVE_MODERATORS_P}
Open: root/language/en/common.php
Find:

Code: Select all

'ARCHIVE_MODERATORS'            => 'Archive moderators',
Replace with:

Code: Select all

'ARCHIVE_MODERATORS_P'            => 'Archive moderators',
Gruß Udo

Topic author
Paul
Active Member
Posts: 3
Joined: 12. March 2014 21:51

Re: Team block

Post by Paul »

Hi Kirk

Did those edits and now get this under the global moderators names....

No Archive Moderators
No Archive Moderators

Topic author
Paul
Active Member
Posts: 3
Joined: 12. March 2014 21:51

Re: Team block

Post by Paul »

Hi Kirk
I found I missed changing col to arc in the leaders_side.hmtl

Code: Select all

{col.USERNAME_FULL}
All is good now, many thanks for the help you have given.
Locked

Return to “Board3 Portal 2.0.x - English Support”