Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Status: Online (Viewing x)
#1
Not Solved
How can I get the Viewing to show on member profiles? Unsure what the code is.

So far, it only shows the status of the online user, but not what they're viewing:

https://onecrypto.net/member.php?action=profile&uid=1
[Image: sHTSI7U.png]
Reply
#2
Not Solved
Add this code in your member_profile template depending on your theme
<strong>{$lang->postbit_status}</strong> {$online_status}

Regards
WallBB
Reply
#3
Not Solved
(09-22-2016, 10:13 AM)WallBB Wrote: Add this code in your member_profile template depending on your theme
<strong>{$lang->postbit_status}</strong> {$online_status}

Regards
WallBB

It's added already:

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1800"></script>
</head>
<body>
{$header}
<div class="profile_header">
	<div class="profile-bg">
			<div class="profile_star"></div>
			<div class="profile_header_info clearbb">
				<div class="profile_avatar col-sm-3"> 
					<div class="profile_avatar_a">
					  <div class="ih-item circle effect6 scale_up"><a href="usercp.php?action=avatar">
						  <div class="img">{$avatar}</div>
       						<div class="info">
          						<p>Change Avatar</p>
							</div></a>
						</div>	
					   <br /><br class="clear" />
						<div class="profile_button_pm">
							<a href="private.php?action=send&amp;uid={$memprofile['uid']}"><i class="fa fa-envelope"></i> Send Message</a>
						</div>
					</div>
				</div>
				<div class="profile-bar col-sm-9">
			<div class="profile_name">
				<span>{$formattedname}</span><br />
				<span class="profile_ustitle">
					{$usertitle}
				</span>
			</div>
			<div class="profile_stats">
				<div class="profile_ref">
					<p class="num">{$memprofile['postnum']}</p>
					<p>Posts</p>
				</div>
				<div class="profile_ref">
					<p class="num">{$memprofile['threadnum']}</p>
					<p>Threads</p>
				</div>
				<div class="profile_rep">
					<p class="num">{$memprofile['reputation']}</p>
					<p>Reputation</p>
				</div>
				<div class="profile_ref">
					<p class="num">{$memprofile['referrals']}</p>
					<p>Referrals</p>
				</div>
			</div>
		 </div>
    	</div>		
   </div>
</div>
<br />
{$awaybit}{$bannedbit}
<div class="profile_content">
<div class="col-sm-3"> 
	<div class="profile_sbar">
		<div class="profile_about trow1">
		<div class="nav-separator">
					  Basic Information
		</div>
		<div class="profile_contents">
			<div class="profile_about_content_info">
				<i class="fa fa-calendar-minus-o"></i>&nbsp; {$lang->registration_date} 
				<span>{$memregdate}</span>
			</div>
			<div class="profile_about_content_info">
				<i class="fa fa-birthday-cake"></i>&nbsp; {$lang->date_of_birth}
				<span>{$membday}</span>
			</div>
			<div class="profile_about_content_info">
				<i class="fa fa-clock-o"></i>&nbsp; {$lang->local_time}
				<span>{$localtime}</span>
			</div>
			<div class="profile_about_content_info">
				<i class="fa fa-eye"></i>&nbsp; {$lang->postbit_status}
				<span>{$online_status}</span>
			</div>
		</div>
	</div>
	</div>
	<div class="profile_sbar">
		<div class="profile_share trow1">
		<div class="nav-separator">
					  Share
		</div>
		<div class="profile_contents">
			<div class="profile_about_content_info">
				Plain link:
				<br/>
				<input style="width: 100%;" type="text" value="{$mybb->asset_url}/member.php?action=profile&amp;uid={$uid}" class="textbox" onclick="select()"/>
			</div>
			<div class="profile_about_content_info">
				BBCode:
				<br/>
				<input style="width: 100%;" type="text" value="[url={$mybb->asset_url}/member.php?action=profile&amp;uid={$uid}]{$memprofile['username']}[/url]" class="textbox" onclick="select()"/>
			</div>
			<div class="profile_about_content_info">
				HTML Code:
				<br/>
				<input style="width: 100%;" type="text" value="<a href=\'{$mybb->asset_url}/member.php?action=profile&amp;uid={$uid}\'>{$memprofile['username']}</a>" class="textbox" onclick="select()"/>
			</div>			
		</div>
	</div>
	</div>
	
	<br />	
</div>
<div class="col-sm-9"> 	
	<div class="profile_tabss">
		<ul class="tabs-menu">
					<li class="active"><a href="#tab-1" class="tabs-data" title=""><i class="fa fa-user"></i> <span>About</span></a></li>
					<li><a href="#tab-2" title="" class="tabs-data"><i class="fa fa-envelope"></i> <span>Contact</span></a></li>
					<li><a href="#tab-3" class="tabs-data" title=""><i class="fa fa-futbol-o"></i> <span>Other</span></a></li>
					<li id="lavamod_{$mybb->user['usergroup']}" class="float_right"><a href="#tab-4" class="tabs-data" title=""><i class="fa fa-expeditedssl"></i> <span>Mod Options</span></a></li>
				</ul>
	</div>
   <div id="tabs-container">
	<div id="tab-1" class="tab-content">
			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
				<tr>
					<td colspan="2" class="thead-new"><strong>{$lang->users_forum_info}</strong></td>
				</tr>
				<tr>
					<td class="trow1">
						<div class="col-sm-3"><strong>{$lang->joined}</strong></div>
						<div class="col-sm-9">{$memregdate}</div>
					</td>
				</tr>
				<tr>
					<td class="trow2">
						<div class="col-sm-3"><strong>{$lang->lastvisit}</strong></div>
						<div class="col-sm-9">{$memlastvisitdate}</div>
					</td>
				</tr>
				<tr>
					<td class="trow1">
						<div class="col-sm-3"><strong>{$lang->total_posts}</strong></div>
						<div class="col-sm-9">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></div>
					</td>
				</tr>
				<tr>
					<td class="trow2">
						<div class="col-sm-3"><strong>{$lang->total_threads}</strong></div>
						<div class="col-sm-9">{$memprofile['threadnum']} ({$lang->tpd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a>)</span></div>
					</td>
				</tr>
				<tr>
					<td class="trow1">
						<div class="col-sm-3"><strong>{$lang->timeonline}</strong></div>
						<div class="col-sm-9">{$timeonline}</div>
					</td>
				</tr>
				<tr>
					<td class="trow2">
						<div class="col-sm-3"><strong>{$referrals}{$showreferral_profile}</strong></div>
						<div class="col-sm-9"></div>
					</td>
				</tr>
				{$reputation}
				{$warning_level}{$newpoints_shop_profile}{$newpoints_profile}
			</table><br />
		</div>
		<div id="tab-2" class="tab-content">
			{$contact_details}
	   </div>
		<div id="tab-3" class="tab-content">
			{$profilefields}
			{$signature}{$memprofile['ougc_awards']}						
		<div style="text-align: center">{$buddy_options}{$ignore_options}{$report_options}</div>
        </div>
		<div id="tab-4" class="tab-content">
			{$modoptions}
			{$adminoptions}
		</div>
</div></div></div>
{$footer}
</body>
</html>
[Image: sHTSI7U.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)