Added the slots item from the Login block to the topnavbar file:
Around line 17, under:
Add the following 3 lines >>
Next,
Around line 44, replace this >>
With this, to add the Used Slots >>
Note that I also changed a couple of "nbsp" to "nbsp;" at the end of some lines. Do not know if this is required.
[ATTACH type="full" alt="1601655295785.png"]5912[/ATTACH]
[ATTACH type="full" alt="1601655320441.png"]5913[/ATTACH]
Maybe for some of the items, the text can be replaced by an icon to save some space. Attaching a title (label) to those icons should do the trick
Around line 17, under:
$privacylevel = T_($_SESSION["privacy"]);Add the following 3 lines >>
$countslot = DB::run("SELECT DISTINCT torrent FROM peers WHERE userid =? AND seeder=?", [$_SESSION['id'], 'yes']);
$maxslotdownload = $countslot->rowCount();
$slots = number_format($_SESSION["maxslots"]) . "/" . number_format($maxslotdownload);Next,
Around line 44, replace this >>
print("!  // 
<img src='$config[SITEURL]/images/seed.gif' border='none' height='20' width='20' alt='Downloaded' title='Downloaded'><font color='#FFCC66'><b>$userdownloaded</b></font>
<img src='$config[SITEURL]/images/up.gif' border='none' height='20' width='20' alt='Uploaded' title='Uploaded'> <font color='#33CCCC'><b>$useruploaded</b></font>
<img src='$config[SITEURL]/images/button_online.png' border='none' height='20' width='20' alt='Ratio' title='Ratio'> (<b><font color='#FFF'>$userratio</font></b>) 
// Bonus points: <a href='" . $config["SITEURL"] . "/bonus' title='Seed Bonus Points'><font color=#00cc00>$_SESSION[seedbonus]</font></a> 
// Donated: <a href='" . $config["SITEURL"] . "/donate' title='Donated Amount'><font color=#ffff00> $_SESSION[donated]</font></a> ");
With this, to add the Used Slots >>
print("!  // 
<img src='$config[SITEURL]/images/seed.gif' border='none' height='20' width='20' alt='Downloaded' title='Downloaded'><font color='#FFCC66'><b>$userdownloaded</b></font>
<img src='$config[SITEURL]/images/up.gif' border='none' height='20' width='20' alt='Uploaded' title='Uploaded'> <font color='#33CCCC'><b>$useruploaded</b></font>
<img src='$config[SITEURL]/images/button_online.png' border='none' height='20' width='20' alt='Ratio' title='Ratio'> (<b><font color='#FFF'>$userratio</font></b>)
// Used Slots: $slots</a> // Bonus points: <a href='" . $config["SITEURL"] . "/bonus' title='Seed Bonus Points'><font color=#00cc00>$_SESSION[seedbonus]</font></a>
// Donated: <a href='" . $config["SITEURL"] . "/donate' title='Donated Amount'><font color=#ffff00> $_SESSION[donated]</font></a> ");
Note that I also changed a couple of "nbsp" to "nbsp;" at the end of some lines. Do not know if this is required.
[ATTACH type="full" alt="1601655295785.png"]5912[/ATTACH]
[ATTACH type="full" alt="1601655320441.png"]5913[/ATTACH]
Maybe for some of the items, the text can be replaced by an icon to save some space. Attaching a title (label) to those icons should do the trick
If It Ain't Dutch, It Ain't Much!!
