MyBB Community Forums
Only display usergroup showing in profiles - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Only display usergroup showing in profiles (/thread-223427.html)



Only display usergroup showing in profiles - makpaolo - 06-13-2019

Hi there. I am having a problem where only one usergroup will show in member profile, even if member is in 2+ groups. Seems like only DISPLAY group will only show, and nothing else.

How to tackle this problem?

Member_profile:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1820"></script>
</head>
<body>
{$header}
<div class="profile-btns mobile-show" style="margin-bottom: 15px;"><a href="private.php?action=send&uid={$memprofile['uid']}" class="button">Message</a></div>
<div class="profile-bg trow1">
<div class="profile-bg-cover" style="background: url(https://i.imgur.com/d9tdDI4.jpg)"></div>
	<div class="profile-bg-cover-inner d-flex align-items-center">
	<div class="mobile-hide profile-buttons"><a href="private.php?action=send&uid={$memprofile['uid']}" class="button">Message</a></div>
		<div class="d-flex justify-content-center fullwidth" style="padding: 1rem;">
			<div class="text-center">
				{$avatar}<br>
				<div class="text-center grey" style="margin-top: 1rem;">
					<span class="x-largetext"><strong>{$formattedname}</strong></span><br>
					<span class="smalltext text-white"><strong>{$usertitle}</strong><br>
					<span style="-webkit-filter: hue-rotate(deg); filter: hue-rotate(deg);"></span>
					</span>
				</div>
			</div>
		</div>
	</div>
	</div></br>
<div class="d-flex mobile-noflex">
<div class="whole">
	<table border="0" cellspacing="0" cellpadding="5" class="tborder profile-icons">
	<tbody>
		<tr>
			<td colspan="4" class="thead"><strong>Statistics</strong></td>
		</tr>
		<tr class="d-flex text-center">
			<td class="trow1 flex-one">
				<a href="search.php?action=finduserthreads&amp;uid={$uid}" class="x-largetext" title="View Threads">{$memprofile['threadnum']}</a><br>Threads
			</td>
			<td class="trow1 flex-one">
				<a href="search.php?action=finduser&amp;uid={$uid}" class="x-largetext" title="View Posts">{$memprofile['postnum']}</a><br>Posts
			</td>
			<td class="trow1 flex-one">
				<a href="{$mybb->settings['bburl']}/misc.php?action=post_likes_received_by_user&amp;user_id={$memprofile['uid']}" class="x-largetext" title="View Likes">{$likesReceived}</a><br>Likes
			</td>
			<td class="trow1 flex-one">
				<a href="{$mybb->settings['bburl']}/newpoints.php" class="x-largetext" title="View BX">{$newpoints_profile}</a><br>BX
			</td>
		</tr>
	</tbody>
</table><br>
		<table border="0" cellspacing="0" cellpadding="5" class="tborder">
			<tbody><tr>
				<td colspan="2" class="thead"><strong>Information</strong></td>
			</tr>
			
			<tr>
				<td class="trow1" colspan="2">{$online_status}</td>
			</tr>
			<tr>
				<td class="trow1" colspan="2">UID:<span class="right">{$memprofile['uid']}</span></td>
			</tr>
			<tr>
				<td class="trow1" colspan="2">Registration Date:<span class="right">{$memregdate}</span></td>
			</tr>
			<tr>
				<td class="trow1" colspan="2">Last Visit:<span class="right"><span title="05-30-2019, 04:45 PM">{$memlastvisitdate}</span></span></td>
			</tr>{$reputation}

			<tr>
				<td class="trow1" colspan="2">Online Time:<span class="right">{$timeonline}</span></td>
			</tr>
				{$referrals}{$warning_level}
		</tbody></table>
		<br>
		
</div>
<div class="sidebar">
{$profilefields}
<table border="0" cellspacing="0" cellpadding="5" class="tborder tfixed" style="margin-top: 20px;"><tbody>
<tr>
	<td class="thead"><strong>Awards</strong></td>
</tr>
<tr>
	<td class="trow1">{$memprofile['ougc_awards']}</td>
</tr>
</tbody></table>
<br>
<table border="0" cellspacing="0" cellpadding="5" class="tborder profile-icons"><tbody>
<tr>
	<td class="thead"><strong>Usergroups</strong></td>
</tr>
<tr>
	<td class="trow1 scaleimages">{$groupimage}</td>
</tr>
</tbody></table>
</div>
</div>
{$footer}
</body>
</html>



RE: Only one usergroup showing in profiles - WallBB - 06-13-2019

There is no problem in showing on usergroup on profile and if usergroup are selectable to show on profile than it will be available option in group settings.

However you can use plugin like these
https://community.mybb.com/mods.php?action=view&pid=133


RE: Only one usergroup showing in profiles - makpaolo - 06-13-2019

(06-13-2019, 12:29 PM)WallBB Wrote: There is no problem in showing on usergroup on profile and if usergroup are selectable to show on profile than it will be available option in group settings.

However you can use plugin like these
https://community.mybb.com/mods.php?action=view&pid=133

Yes, so if i use plugin like this:
https://community.mybb.com/mods.php?action=view&pid=402

And choose which groups to show, it will show in both postbit and profile. But if i dont highlight the groups, it wont show in postbit or profile. But i just want to wear one userbar, and have other userbars show in profile.

First time i see this problem. Using right variable too


RE: Only display usergroup showing in profiles - makpaolo - 06-16-2019

Bump.. anyone know the problem?

Bump.. anyone know the problem?