Board team/leaders page duplicate entries

Dyos MOD Portalview - to show up Portal blocks in the whole forum.
Dyos MOD Portalview - um Portal Blöcke im gesamten Forum anzeigen zu lassen.

Moderator: Dyo

Forum rules
Please note that this modification is not a official part of the Board3 Portal!
Bitte beachten das diese Modifikation kein offizieller Bestandteil des Board3 Portal ist!
Locked

Topic author
Jedis
Active Member
Posts: 7
Joined: 22. December 2010 11:09

Board team/leaders page duplicate entries

Post by Jedis »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Advanced Knowledge
Boardlink: http://www.eqmagetower.com/forums/membe ... de=leaders

What have you done before the problem was there?
Never viewed that page since installing board3.

What have you already tryed to solve the problem?
Nothing yet.

Description and Message
The leaders page is showing everyone twice, as well as the widget on the right side that shows admins/mods.

If I load the main forum page, the widget duplicates will go away, but they're back if you view the team page again.

Any ideas?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Board team/leaders page duplicate entries

Post by Marc »

What version of Portalview are you using?


Moved to the Portalview forum as this does not concern the Portal itself.

Topic author
Jedis
Active Member
Posts: 7
Joined: 22. December 2010 11:09

Re: Board team/leaders page duplicate entries

Post by Jedis »

Portalview version 1.0.0RC3

The regular team phpBB page is messed up too, showing duplicates, as linked on the leaders page.

When I try to view the details in AutoMOD, I get this error:
Cannot locate File: ./../store/mods/portalview_100rc3/contrib/update_100rc1_to_100rc2/update.xml

Dutch_com_freak
Active Member
Posts: 5
Joined: 26. January 2010 20:39

Re: Board team/leaders page duplicate entries

Post by Dutch_com_freak »

This issue is caused by the block "The Team"

I suggest you set the following settings:

Leaders / Team block: Yes
Extended Leaders / Team: Yes

Then the "error" is gone :-) someone should fix the standard block though :-)

Topic author
Jedis
Active Member
Posts: 7
Joined: 22. December 2010 11:09

Re: Board team/leaders page duplicate entries

Post by Jedis »

Thanks, that fixed the display. Though I did have to go through and remove myself as leader for the groups showing, otherwise I showed up multiple times in the extended leaders block.

Balint
Active Member
Posts: 1
Joined: 10. September 2008 14:15

Re: Board team/leaders page duplicate entries

Post by Balint »

Hello,

I found this thread after facing the same problem. Here's the fix:

Open portal/block/leaders.php

FIND:

Code: Select all

	$which_row = (in_array($row['user_id'], $admin_id_ary)) ? 'admin' : 'mod';
REPLACE WITH:

Code: Select all

	$which_row = (in_array($row['user_id'], $admin_id_ary)) ? 'admin_p' : 'mod_p';
FIND:

Code: Select all

	if ($which_row == 'admin' && $row['default_group'] != $admin_group_id)
REPLACE WITH:

Code: Select all

	if ($which_row == 'admin_p' && $row['default_group'] != $admin_group_id)
FIND:

Code: Select all

			$which_row = 'mod';
REPLACE WITH:

Code: Select all

			$which_row = 'mod_p';
Open styles/prosilver/template/portal/block/leaders.html

FIND:

Code: Select all

	<!-- BEGIN admin -->
		<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>{admin.USERNAME_FULL}</strong></span><br style="clear:both" />
	<!-- BEGINELSE -->
		{L_NO_ADMINISTRATORS_P}<br /><br />
	<!-- END admin -->
	<br style="clear:both" />
	<strong>{L_MODERATORS}</strong><br />
	<!-- BEGIN mod -->
		<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>{mod.USERNAME_FULL}</strong></span><br style="clear:both" />
	<!-- BEGINELSE -->
		{L_NO_MODERATORS_P}
	<!-- END mod -->
REPLACE WITH:

Code: Select all

	<!-- BEGIN admin_p -->
		<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>{admin_p.USERNAME_FULL}</strong></span><br style="clear:both" />
	<!-- BEGINELSE -->
		{L_NO_ADMINISTRATORS_P}<br /><br />
	<!-- END admin_p -->
	<br style="clear:both" />
	<strong>{L_MODERATORS}</strong><br />
	<!-- BEGIN mod_p -->
		<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>{mod_p.USERNAME_FULL}</strong></span><br style="clear:both" />
	<!-- BEGINELSE -->
		{L_NO_MODERATORS_P}
	<!-- END mod_p -->



Upload the files and don't forget to purge the cache.

Regards,
Bálint
Locked

Return to “MOD Portalview - Portal blocks in whole forum”