Not Solved Member block help
#1
Not Solved
This user has been denied support. This user has been denied support.
Okay so i have been making a new member block and this is the code
<div id="panel">
 <!-- start: header_welcomeblock_member -->
<strong>Welcome back, <a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a></strong>. {$mybb->user['lastvisit']} (<a href="http://www.fadeforums.com/usercp.php"><strong>User CP</strong></a> — <a href="http://www.fadeforums.com/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" onclick="return confirm('Are you sure you want to logout?');">Log Out</a>)<br>
 <a href="http://www.fadeforums.com/search.php?action=getnew">View New Posts</a> | <a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}">Your Threads</a> | <a href="search.php?action=finduser&uid={$mybb->user['uid']}">Your Posts</a> | <a href="http://fadeforums.com/private.php">Private Messages</a> {$mybb->user['totalpms']}
<!-- end: header_welcomeblock_member -->
 </div>
Now when i use that this is what i get http://prntscr.com/907l44 everything works but the messages and last visit i want it to say "Unread #, Total #" and then for last visit "You last visited: The day, (time here)"
Thanks
Reply
#2
Not Solved
The variables that you might need are: {$mybb->user['pms_unread']}, {$mybb->user['pms_total']}, {$lastvisit}
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#3
Not Solved
This user has been denied support. This user has been denied support.
Where do i place them? Can you give me a example in the code?
Reply
#4
Not Solved
try this...

<div id="panel">
<!-- start: header_welcomeblock_member -->
<strong>Welcome back, <a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a></strong>. You last visited: {$lastvisit} (<a href="http://www.fadeforums.com/usercp.php"><strong>User CP</strong></a> — <a href="http://www.fadeforums.com/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" onclick="return confirm('Are you sure you want to logout?');">Log Out</a>)<br>
<a href="http://www.fadeforums.com/search.php?action=getnew">View New Posts</a> | <a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}">Your Threads</a> | <a href="search.php?action=finduser&uid={$mybb->user['uid']}">Your Posts</a> | <a href="http://fadeforums.com/private.php">Private Messages</a> Unread: {$mybb->user['pms_unread']}, Total: {$mybb->user['pms_total']}
<!-- end: header_welcomeblock_member -->
</div>
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#5
Not Solved
This user has been denied support. This user has been denied support.
(2015-11-08, 07:50 AM)mmadhankumar Wrote: try this...

<div id="panel">
<!-- start: header_welcomeblock_member -->
<strong>Welcome back, <a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a></strong>. You last visited: {$lastvisit} (<a href="http://www.fadeforums.com/usercp.php"><strong>User CP</strong></a> — <a href="http://www.fadeforums.com/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" onclick="return confirm('Are you sure you want to logout?');">Log Out</a>)<br>
<a href="http://www.fadeforums.com/search.php?action=getnew">View New Posts</a> | <a href="search.php?action=finduserthreads&uid={$mybb->user['uid']}">Your Threads</a> | <a href="search.php?action=finduser&uid={$mybb->user['uid']}">Your Posts</a> | <a href="http://fadeforums.com/private.php">Private Messages</a> Unread: {$mybb->user['pms_unread']}, Total: {$mybb->user['pms_total']}
<!-- end: header_welcomeblock_member -->
</div>

Thanks it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)