• Administrator
  •  
    Information: Choosing social login option will register your account automatically without the need for email confirmation.
     

[HTML] Personalized Legend & Statistics

A place for codes and tutorials which will improve the functionality of your board.
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
User avatar
Shadow
Administrator
Posts: 21
Joined: Sat Jan 06, 2018 4:56 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Sun Jan 07, 2018 1:10 am

Description:
A new design for minimalist statistics on your forums.

Preview:
Image

Installation steps:
Go to index_body template and find the following code:

Code: Select all

<!-- BEGIN disable_viewonline -->
....
<!-- END disable_viewonline -->
Replace with:

Code: Select all

 <!-- BEGIN disable_viewonline -->
  <div class="stat-block">
    <div class="box_shadow">
      <h3><span style="font-size: 20px; color: #00a5cd;"><i class="fa fa-users"></i></span>&nbsp;&nbsp; <a href="/viewonline">Who is online?</a></h3><img class="img-whois" alt="Who is online?" id="i_whosonline" src="http://illiweb.com/fa/empty.gif">
        {TOTAL_USERS_ONLINE}
      
      <br><br>{LOGGED_IN_USER_LIST}
 {L_ONLINE_USERS}
 
        
        <br> {L_CONNECTED_MEMBERS}<br />
          
 <br>{LEGEND}&nbsp;:&nbsp;  <a style="color: #FF0000" href="/g1-administrator" > Administrator </a></b>
 • <b> <a style="color: #34B1C2" href="/g11-staff-supervisor" > Staff Supervisor </a></b>
 • <b> <a style="color: #691F67" href="/g12-forum-staff" > Moderator </a></b>
 • <b> <a style="color: #CC66CC" href="/g7-graphics-designer" > Graphics Designer </a></b>
 • <b> <a style="color: #C29200" href="/g4-premium" > Premium </a></b>
</div><div class="clear123"></div>
        <h3><span style="font-size: 20px; color: #00a5cd;"><i class="fa fa-bar-chart"></i></span>&nbsp;&nbsp; Statistics</h3>
        <div class="Type_center"><span class="ipsType_large statsCount"><span class="FORUMCOUNTOPIC"></span></span><br><span class="ipsType_light ipsType_medium">Total Topics</span></div>
        <div class="Type_center"><span class="ipsType_large statsCount"><span class="FORUMCOUNTPOST"></span></span><br><span class="ipsType_light ipsType_medium">Total Posts</span></div>
        <div class="Type_center"><span class="ipsType_large statsCount"><span class="FORUMCOUNTUSER"></span></span><br><span class="ipsType_light ipsType_medium">Total Members</span></div>
        <div class="Type_center"><span class="ipsType_large statsCount"><span class="FORUMONLINEUSER"></span></span><br><span class="ipsType_light ipsType_medium">Most Online</span></div>
     <div class="Type_center">
<span class="statsCount">
<span class="FORUMLASTUSERLINK">
</span>
</span>
<br/>
<span class="ipsType_light ipsType_medium">Our Newest Member</span>
</div>
    
  
  
  <style>
    .information {
    background: none repeat scroll 0% 0% #EBFCDF;
    padding: 10px;
    border: 1px solid #A4CFA4;
    color: #0E440E;
    line-height: 1.6;
    font-size: 12px;
}
  
    stat-block {
    background: white none repeat scroll 0 0;
    border-color: #e5e5e5;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px 1px 2px;
    padding: 5px;
}
.box_shadow {
    background: transparent none repeat scroll 0 0;
    padding: 5px;
}
.Type_center {
    display: inline-block;
    line-height: 20px;
    margin: 0 40px;
    text-align: center;
}
.statsCount {
    color: #00a5cd;
    font-family: "Roboto",sans-serif;
    font-size: 18px;
}
.stat-block h3 {
    border-bottom: 3px double #00a5cd;
    color: #555;
    font-family: "PT Sans",Verdana,Helvetica,Arial,sans-serif;
    font-size: 130%;
    margin-bottom: 13px;
    margin-top: 0;
    padding-bottom: 8px;
    padding-left: 13px;
    padding-top: 1px;
}
.clear123 {
    background: rgba(0, 0, 0, 0) url("http://i.imgur.com/azy4QRc.png") no-repeat scroll 0 0;
    margin-top: 20px;
    padding: 10px;
}
.stat-block p {
    padding-left: 33px;
}
#new-mes {
    background: rgb(107, 166, 94) none repeat scroll 0 0;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) inset;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    padding: 2px 5px;
    text-transform: uppercase;
}
#new1-mes {
    background: #59b329 none repeat scroll 0 0;
    border-radius: 100%;
    color: white;
    display: inline-block;
    font-size: 20px;
    height: 35px;
    left: 20px;
    position: absolute;
    text-align: center;
    width: 35px;
}
#new1-mes i, #old-mes i {
    line-height: 35px;
}
#old-mes {
    background: #20aae5 none repeat scroll 0 0;
    border-radius: 100%;
    color: white;
    display: inline-block;
    font-size: 20px;
    height: 35px;
    left: 20px;
    position: absolute;
    text-align: center;
    text-shadow: 0 1px rgba(0, 0, 0, 0.1);
    width: 35px;
}</style><!-- END disable_viewonline -->
Closing Notes:

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest