Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[mod] User class in login_block.php
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2012-07-31 18:17:23
sorry but I tried your code for he does not show me the image of the class where I can see me are wrong

thank you[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5913"]login_block.php[/url]
login_block.php
Download
logo.jpg
logo.jpg
Unknown User
2012-07-31 18:34:34
You didnt ask for no image you asked for



can you tell me how to put the invitations in block someone tell me


Do not think you can ask for everything you need to be created as its not tolerated here.
Unknown User
2012-07-31 19:22:06
yes but not like I was wanting to tell you was talking to chris-team like I post the code that he posted here on the topic I tested to see how the code was but it kind of bug or I simply do not line shows image

but if tou asking for more help just want to take the excuse that I have doubts
Unknown User
2013-04-18 09:08:17
"wiipt, post: 84473":

sorry but I tried your code for he does not show me the image of the class where I can see me are wrong

thank you[url="https://www.torrenttrader.org/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=5913"]login_block.php[/url][url="https://www.torrenttrader.org/index.php?app=core&module=attach&section=attach&attach_rel_module=post&attach_id=5914"]logo.jpg[/url]


cause you need to print out the levelimg..

in same file find

. T_("DOWNLOADED") . ": $userdownloaded

before add


. " $levelimg<br />"
2013-07-24 14:21:15
Thanks! I tryed with class image and it worked fine.

Namnl.png
Namnl.png
Unknown User
2013-07-25 04:31:51
At the moment my login block looks like this:



Here is my code :

begin_block("".class_user($CURUSER[username])."");^M
^M
       $avatar = htmlspecialchars($CURUSER["avatar"]);^M
       if (!$avatar)^M
               $avatar = $site_config["SITEURL"]."/images/default_avatar.gif";^M
^M

       $userdownloaded = mksize($CURUSER["downloaded"]);^M
       $useruploaded = mksize($CURUSER["uploaded"]);^M
       $privacylevel = T_($CURUSER["privacy"]);^M
^M
       if ($CURUSER["uploaded"] > 0 && $CURUSER["downloaded"] == 0)^M
               $userratio = "Inf.";^M
       elseif ($CURUSER["downloaded"] > 0)^M
               $userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);^M
       else^M
               $userratio = "---";^M
^M
$seedbonus = $CURUSER["seedbonus"];
       print ("<center><img width='80' height='80' src='$avatar' alt='' /></center><br />" . T_("DOWNLOADED") . ": <font color=#ff0000><b>&darr;&nbsp;$userdownloaded</b></font><br />" . T_("UPLOADED") . ": <font color=#00cc00><b>&uarr;&nbsp;$useruploaded</b></font><br />".T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio<br /> " . "Seed Bonus:<a href=seedbonus.php>". " $seedbonus");^M
^M
?>^M
^M
^M

<center><a href="account.php"><?php echo T_("ACCOUNT"); ?></a> <br /> ^M
<center><a href="http://torrenttop100.nl/go-in/52/26675a5e7d55e06ee147ea36003fffd7db11da4b2dd5ef57936fe12fe68438b72684ebae4" target="_new"><img src="images/top100/banner.gif" /></a>
<center><a href="http://torrenttop100.nl/home/52/26675a5e7d55e06ee147ea36003fffd7db11da4b2dd5ef57936fe12fe68438b72684ebae4/<?=$CURUSER['id']?>/<?=$CURUSER['username']?>"></a>
<?php if($CURUSER["level"]=="VIP") {print("<a href=reqall.php?Section=Request><b>Add New Request</b></a>");}?> <br />
<?php if($CURUSER["level"]=="VIP") {print("<a href=reqall.php?Section=View_Requests&requestorid=$CURUSER[id]><b>View my requests<b></a>");}?> <br />
       <?php if($CURUSER["level"]=="Uploader") {print("<a href=reqall.php?Section=Request><b>Add New Request</b></a>");}?> <br />
       <?php if($CURUSER["level"]=="Uploader") {print("<a href=reqall.php?Section=View_Requests&requestorid=$CURUSER[id]><b>View my requests<b></a>");}?> <br />
               <?php if($CURUSER["level"]=="Moderator") {print("<a href=reqall.php?Section=Request><b>Add New Request</b></a>");}?> <br />
               <?php if($CURUSER["level"]=="Moderator") {print("<a href=reqall.php?Section=View_Requests&requestorid=$CURUSER[id]><b>View my requests<b></a>");}?> <br />
       <?php if($CURUSER["level"]=="Super Moderator") {print("<a href=reqall.php?Section=Request><b>Add New Request</b></a>");}?> <br />
       <?php if($CURUSER["level"]=="Super Moderator") {print("<a href=reqall.php?Section=View_Requests&requestorid=$CURUSER[id]><b>View my requests<b></a>");}?> <br />
               <?php if($CURUSER["level"]=="Spec Support") {print("<a href=reqall.php?Section=Request><b>Add New Request</b></a>");}?> <br />
               <?php if($CURUSER["level"]=="Spec Support") {print("<a href=reqall.php?Section=View_Requests&requestorid=$CURUSER[id]><b>View my requests<b></a>");}?> <br />
       <?php if($CURUSER["control_panel"]=="yes") {print("<a href=reqall.php?Section=Request><b>Add New Request</b></a>");}?> <br />
       <?php if($CURUSER["control_panel"]=="yes") {print("<a href=reqall.php?Section=View_Requests&requestorid=$CURUSER[id]><b>View my requests<b></a>");}?> <br />
<center><a href="blackjack.php"><b>Play Blackjack</b></a> <br />
<?php if ($CURUSER["control_panel"]=="yes") {print("<a href="admincp.php">".T_("STAFFCP")."</a>");}?><br />
<?php if($CURUSER["level"]=="Super Moderator") {print("<a href=supermodcp.php>".T_("MODO_CP")."</a>");}?> <br />
<?php if($CURUSER["level"]=="Moderator") {print("<a href=modcp.php>".T_("MOD_CP")."</a>");}?>
</center>


<?php^M
end_block();^M
}^M
?>


Can someone advise as to how I get rid of the spaces that are between "Your Account" and the "Add New Request" ?

Thnks
2013-07-25 07:38:15
It's all junk you have with "Request level".I have modified your file a bit. I think you have to have something like that.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6857"]login_block.php[/url]
login_block.php
Download
Unknown User
2013-07-25 15:59:00
Very cool, thanks, this is how one learns - from yr mistakes... lol   Just one small thing, Requests are accessible to everyone? I tried and changed the line

<?php if (get_user_class() <= 5)?>
to this

<?php if (get_user_class() >= 3)?>
but everyone can still do Requests, and only VIP up should be able to?
2013-07-25 17:34:37
try this: [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6859"]login_block.php[/url]

In reqall.php under :

if($CURUSER["view_torrents"]=="no")
show_error_msg(T_("ERROR")."!","You do not have the proper rights to view requests!",1);

put in :


if (get_user_class() <= 3)
show_error_msg(T_("ERROR")."!","You do not have the proper rights to view requests!",1);
login_block.php
Download
Unknown User
2013-07-26 04:30:55
YEP the code in login_block worked perfect thanks very very much for this, I have learnt quite a lot just seeing the way you did the code here, thanks again mate !!!!
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728