Page 1 of 1

Board team/leaders page duplicate entries

Posted: 15. January 2011 21:56
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?

Re: Board team/leaders page duplicate entries

Posted: 15. January 2011 22:40
by Marc
What version of Portalview are you using?


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

Re: Board team/leaders page duplicate entries

Posted: 15. January 2011 22:48
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

Re: Board team/leaders page duplicate entries

Posted: 19. April 2011 01:37
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 :-)

Re: Board team/leaders page duplicate entries

Posted: 3. May 2011 22:29
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.

Re: Board team/leaders page duplicate entries

Posted: 17. December 2011 19:09
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