Friends show up twice in UCP!
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!
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!
-
Topic author - Active Member
- Posts: 12
- Joined: 15. February 2009 03:04
Friends show up twice in UCP!
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.
-
- Site Admin
- Posts: 2989
- Joined: 7. January 2006 20:11
- phpBB.de User: Saint
- phpBB.com User: Saint_hh
- Location: Hamburg
- Contact:
Re: Friends show up twice in UCP!
Just to clarify:luminosity wrote:they appear twice in the list of friends in the UCP
They appear twice in the UCP or in the list of the portal?
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~
Kein Support per PN / No support via PM!
Kein Support per PN / No support via PM!
-
Topic author - Active Member
- Posts: 12
- Joined: 15. February 2009 03:04
Re: Friends show up twice in UCP!
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.
Last edited by luminosity on 1. March 2009 23:51, edited 1 time in total.
-
Topic author - Active Member
- Posts: 12
- Joined: 15. February 2009 03:04
Re: Friends show up twice in UCP!
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 -->
-
Topic author - Active Member
- Posts: 12
- Joined: 15. February 2009 03:04
Re: Friends show up twice in UCP!
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 -->
-
Topic author - Active Member
- Posts: 12
- Joined: 15. February 2009 03:04
Re: Friends show up twice in UCP!
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>
-
- Site Admin
- Posts: 2989
- Joined: 7. January 2006 20:11
- phpBB.de User: Saint
- phpBB.com User: Saint_hh
- Location: Hamburg
- Contact:
Re: Friends show up twice in UCP!
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.
The same template vars processed double.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~
Kein Support per PN / No support via PM!
Kein Support per PN / No support via PM!