Page 1 of 1
Friends show up twice in UCP!
Posted: 1. March 2009 22:44
by luminosity
I just enabled the Friends module and every time a user adds a friend, they appear twice in the list of friends in the UCP. How can I fix this? I am using the mod Board3 Portal with Portalview.
Re: Friends show up twice in UCP!
Posted: 1. March 2009 23:17
by Kevin
luminosity wrote:they appear twice in the list of friends in the UCP
Just to clarify:
They appear twice in the UCP or in the list of the portal?
Re: Friends show up twice in UCP!
Posted: 1. March 2009 23:41
by luminosity
They appear only ONCE EACH in online_friends.html block. They appear TWICE EACH in the friends tab in the UCP. However, the online_friends.html block will also show the friends twice when a user is in any tab in the UCP. When on other forum pages, the online_friends.html block displays correctly.
Re: Friends show up twice in UCP!
Posted: 1. March 2009 23:45
by luminosity
I think I found something related in the memberlist_view.html
Code: Select all
<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
<!-- IF U_ADD_FRIEND -->
<dt> </dt> <dd><a href="{U_ADD_FRIEND}">Collaborate: Add Friend</a></dd>
<dt> </dt>
<!-- ELSE -->
<!-- IF U_REMOVE_FRIEND -->
<dt> </dt> <dd><a href="{U_REMOVE_FRIEND}"><strong>{L_REMOVE_FRIEND}</strong></a></dd>
<!-- ELSE -->
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
Re: Friends show up twice in UCP!
Posted: 1. March 2009 23:49
by luminosity
Here's what my ucp_zebra_friends.html looks like.
Code: Select all
<!-- INCLUDE ucp_header.html -->
<form id="ucp" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}>
<h2>{L_TITLE}</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<p>{L_FRIENDS_EXPLAIN}</p>
<fieldset class="fields2">
<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
<dl>
<dt><label <!-- IF S_USERNAME_OPTIONS -->for="usernames"<!-- ENDIF -->>{L_YOUR_FRIENDS}:</label><br /><span>{L_YOUR_FRIENDS_EXPLAIN}</span></dt>
<dd>
<!-- IF S_USERNAME_OPTIONS -->
<select name="usernames[]" id="usernames" multiple="multiple" size="5">{S_USERNAME_OPTIONS}</select>
<!-- ELSE -->
<strong>{L_NO_FRIENDS}</strong>
<!-- ENDIF -->
</dd>
</dl>
<dl>
<dt><label for="add">{L_ADD_FRIENDS}:</label><br /><span>{L_ADD_FRIENDS_EXPLAIN}</span></dt>
<dd><textarea name="add" id="add" rows="3" cols="30" class="inputbox">{USERNAMES}</textarea></dd>
<dd><strong><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></strong></dd>
</dl>
</fieldset>
<span class="corners-bottom"><span></span></span></div>
</div>
<fieldset class="submit-buttons">
{S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" name="reset" class="button2" />
<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
{S_FORM_TOKEN}
</fieldset>
</form>
<!-- INCLUDE ucp_footer.html -->
Re: Friends show up twice in UCP!
Posted: 1. March 2009 23:52
by luminosity
and this is what my online_friends.html block looks like:
Code: Select all
<div class="forabg">
<div class="inner">
<span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header"><dl><dt><a href="/ucp.php?i=168">Collaborate</a></dt></dl></li>
</ul>
<ul class="topiclist forums">
<li><dl>
<dd class="posts_portal" style="border-left:0px;width:100%">
<table width="100%">
<tr>
<a href="/ucp.php?i=168"><em>{L_FRIENDS_ONLINE}</em></a>
<!-- BEGIN friends_online -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/member.gif" height="15" width="15" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;">{friends_online.USERNAME_FULL}</span><br style="clear:both" />
<!-- BEGINELSE -->
<span style="float:left; padding-left:5px; padding-top:2px;"><a href="/ucp.php?i=168"><strong>{L_NO_FRIENDS_ONLINE}</strong></a></span>
<br style="clear:both" />
<!-- END friends_online -->
<br style="clear:both" />
<a href="/ucp.php?i=168"><em>{L_FRIENDS_OFFLINE}</em></a><br />
<!-- BEGIN friends_offline -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/member.gif" height="15" width="15" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;">{friends_offline.USERNAME_FULL}</span><br style="clear:both" />
<!-- BEGINELSE -->
<span style="float:left; padding-left:5px; padding-top:2px;"><a href="/ucp.php?i=168"><strong>{L_NO_FRIENDS_OFFLINE}</strong></a></span>
<!-- END friends_offline -->
<span class="portal-corners-bottom"><span></span></span>
</tr>
</table>
</dd>
</dl></li>
</ul>
<span class="corners-bottom"><span></span></span>
</div>
</div>
Re: Friends show up twice in UCP!
Posted: 2. March 2009 06:49
by Kevin
I guess that will basically be the same thing as we had with the changing user menu:
viewtopic.php?p=11937#p11937
The same template vars processed double.