Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Showteam
#1
I have the following thoughts about the showteam page:

1) A joined date would be useful info to display - this is not captured when a user joins a group.

2) Also user avatar - like Invision.

3) the information that is displayed - last visit, email and pm buttons - is it really relevant to have it here ?

4) What about adding pagination to the groups (also like invision) - what if you have a group with 100+ members.

Lastly in showteam.php i see:

		$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
		$user['profilelink'] = get_profile_link($user['uid']);
  
How about replacing that with:

		$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
		$user['profilelink'] = build_profile_link($user['username'], $user['uid']);

Then in the showteam_moderators_mod & showteam_usergroup_user templates we replace


<a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a>


with:


{$user['profilelink']}
What goes around comes around
Reply
#2
It's actually nice suggestion, I feel that it should be default in MyBB 1.9 Smile
- MyBB Heart
Reply
#3
+1 I support it!
Reply
#4
Avatarizing is in core of 1.9. Its hard to get this agreed upon to be in 1.8. There are many plugins available to achieve that.
Pagination is a right suggestion. We don't have this? Really?
The last one provides more flexibility through templates for admins as they wish and I don't see any need of a change.
Reply
#5
adding avatar is an easy one.

just modify the query as follows:

$query = $db->simple_select("users", "uid, avatar, avatardimensions, username, displaygroup, usergroup, additionalgroups, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away", $query_part."displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));

all we are doing is adding avatar and avatardimensions to the query.

then after:

$user['profilelink'] = get_profile_link($user['uid']);

add

$avatar = format_avatar($user['avatar'], $user['avatardimensions'], '35x35');

Now we can have avatars in showteam. Put <img src="{$avatar['image']}" alt="" {$avatar['width_height']}> where you want to have the avatar.

(2019-07-04, 07:56 AM)effone Wrote: The last one provides more flexibility through templates for admins as they wish and I don't see any need of a change.

Yes, ok. I run a modified build_profile_link function, that is why i happened to notice that. Improving build_profile_link function is another story because it does not style the link of the formatted username.
What goes around comes around
Reply
#6
How about removing groups (with the exception of admins and moderators) from the showteam page, because they are not or may not be part of the forum team. Then have a groups page with a link to each group id, listing the group members of that group_id only, like Invision clubs ...
What goes around comes around
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)