[For 1.8] How can i Create Horizontal Newest User Panel ?
#1
Hi,  I used https://community.mybb.com/mods.php?action=view&pid=269

My Newest Users Panel under boardstats >>>> https://imgur.com/X4LMorO

Question : How can i change this code to Horizontal Newest Users without Data & avatar ???


            <tr><td class="trow1">
            {$tpl['avatar']}
	    {$tpl['profilelink']}<br />{$lang->topStats_NewestUsersJoin}: {$tpl['date']}
            </td></tr>  
            

Like this >>>> https://imgur.com/TqQVlVk

I'm waiting for response Smile
Want to Support Me? +Rep Me
Reply
#2
<tr>
 <td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
 <td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>

use default MyBB code?

Other than that

<tr>
 <td class="trow1">
 {$tpl['avatar']} <-- User avatar
 {$tpl['profilelink']} <-- user link
 <br />{$lang->topStats_NewestUsersJoin}: {$tpl['date']} <-- default language for "Joined:" and the join date
 </td>
</tr>

use the one below if you only want to display the user without avatar and join date.

<tr>
 <td class="trow1">
 {$tpl['profilelink']}
 </td>
</tr>

/////////////////////////////

[Image: 6bUWgmm.png]

This is how my sidebar forum stats look.

and this is the
{$newestmember}
code piece i use.
Reply
#3
Top Stats plugin is designed for a table list, so you can't display users string together separated by comma by default.
But you can feel free to edit the templates of the plugin to fit your own needs.
If you are fine with a string of users without comma, then you have to remove the table structure and remove <table> + <tr> + <td>

Instead of comma, you can achieve a virtual separation of users with padding to the left and right, e.g.:
Template: "topStats_NewestUsersRow"
<span style="padding: 0 10px">{$tpl['profilelink']}</span>

This needs a change in
Template: "topStats_NewestUsers"
to get rid of the <table>...

[ExiTuS]
New Forum / MyBB 1.8.26 + innovative full-responsive Theme
Live-Escape-Game-Forum
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)