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
[REQ] Auto Medal and new class_user func
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2013-07-15 22:50:58
yo " ArcticWolf,  :)

j'ai 8 classe, ici vous avez mis 7 par defaut LOLL

&&&&&&&&&&&&&&&&&&&&&&&&&&&&

I have 8 class, here you put seven default LOLL
2013-07-15 22:54:32
et dit moi si se mode fonctionne par classe ou par ratio?
SVP

:::::::::::::::::::::

and said to me if mode works by class or ratio?
Please

...merci de votre aide ,toujours apprécier!

````````````````````````````````````````````````````````````````

thank you ... for your help, always appreciated!
Unknown User
2013-07-16 04:09:42
Those are just uploader ranks.. Nothing to do with site classes.................................

And its both ratio and uploaded...

nothing at all to do with site classes
2013-07-16 10:17:56
"ArcticWolf, post: 91266":

Those are just uploader ranks.. Nothing to do with site classes.................................

And its both ratio and uploaded...

nothing at all to do with site classes
hA! ok  thanks! lol
2013-07-16 10:28:38
si j'utilise votre code je voie aucune image?

************************************************

if I use your code I see no picture?

V2.08
2013-07-16 11:25:53
Change this :

$uprankr = "<img src="/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";

To this:


$uprankr = "<img src="images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";
Unknown User
2013-07-16 15:42:51
.. that is exactly the same!!!!!!!! anyway mine works fine I took it from an live site!
Unknown User
2013-07-16 16:02:14
"Tiloup, post: 91274":
si j'utilise votre code je voie aucune image?

************************************************

if I use your code I see no picture?

V2.08
my guess is your class_user is not passing along the uploaded and downloaded...those 2 are prob not called in the query..

function auto_rank_icon dont make any extra db querys its lame and stupid to make another query when the function you got calling auto_rank_icon can do it..
2013-07-20 15:47:01
"UFFENO1, post: 91277":


Change this :

$uprankr = "<img src="/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";

To this:

$uprankr = "<img src="images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";


même çà! ne fonctionne pas!

<~~~~~~~~~~~~~~~~~~~~~>

even its not working!

$uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";


 :unsure:

//start class colors function
function class_user($name)
{
   global $site_config;
   $a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
   //    echo "Query a".$a."<br />";
   $res = SQL_Query_exec($a);
   $classy = @mysql_fetch_array($res);
   $gcolor = $classy['Color'];
   if ($classy['donated'] > 0) {
       $star = "<img src='" . $site_config[SITEURL] . "/images/icons/star.gif' alt='donated' border='0'>";
   } else {
       $star = "";
   }
   if ($classy['warned'] == "yes") {
       $warn = "<img src='" . $site_config[SITEURL] . "/images/icons/warn.gif' alt='warned' border='0'>";
   } else {
       $warn = "";
   }
   $rang = auto_rank_icon($classy['uploaded'], $classy['downloaded'], $classy['level']);
   return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "" . $rang . "</font>");
}
//end class colors function

// Auto Uploader rank function (Author: ArcticWolf)
function auto_rank_icon($uploaded, $downloaded, $level)
{
   $tb = 1024 * 1024 * 1024 * 1024;
   // Config
   $minup0 = .5 * $tb;
   $minup1 = 1 * $tb;
   $minup2 = 2 * $tb;
   $minup3 = 3.5 * $tb;
   $minup4 = 5.5 * $tb;
   $minup5 = 8 * $tb;
   $minup6 = 15 * $tb;
   // Config End
   $icon1 = "legend_stjarna_brons.png";
   $icon2 = "legend_stjarna_silver.png";
   $icon3 = "legend_stjarna_guld.png";
   $icon4 = "krona_brons.png";
   $icon5 = "krona_silver.png";
   $icon6 = "krona_guld.png";
   $icon7 = "diamant.png";
   
   if ($uploaded >= $minup6 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup5 && $uploaded < $minup6 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon6 . "" alt='$icon6' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup4 && $uploaded < $minup5 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon5 . "" alt='$icon5' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup3 && $uploaded < $minup4 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon4 . "" alt='$icon4' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup2 && $uploaded < $minup3 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon3 . "" alt='$icon3' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup1 && $uploaded < $minup2 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon2 . "" alt='$icon2' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup0 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon1 . "" alt='$icon1' border="0"/>";
       return $uprankr;
   }
   return "";
}
// End Auto Uploader rank function (Author: ArcticWolf)


Unknown User
2013-07-20 16:14:21
.. i dont see the issue anyway Tiloup above one does work fine on dev site..

2013-07-20 16:43:56
woww mon chanceux toi sa fonctionne bien, mais sur mon site j'ai rien
&&&&&&&&&&&&&&&&&&&&
woww my lucky you his works, but on my site I have nothing

:unsure:  :wacko:  :(



Capture.PNG
Capture.PNG
Captffure.PNG
Captffure.PNG

2013-07-20 17:11:55
Stupid question maybe, but have you enough uploaded.  :)
Unknown User
2013-07-20 17:50:19
Ya big thing I would check is if you have enough uploaded to get an medal... You could temp change the

$minup0 = .5 * $tb;
   $minup1 = 1 * $tb;
   $minup2 = 2 * $tb;
   $minup3 = 3.5 * $tb;
   $minup4 = 5.5 * $tb;
   $minup5 = 8 * $tb;
   $minup6 = 15 * $tb;
to see if it triggers..
like

$minup0 = .05 * $tb;
   $minup1 = .1 * $tb;
   $minup2 = .2 * $tb;
   $minup3 = .35 * $tb;
   $minup4 = .55 * $tb;
   $minup5 = .8 * $tb;
   $minup6 = 1.5 * $tb;

lol
2013-07-20 19:22:40
[size=18px]Yessss!!!!! #1[/size] ActicWolf  :D :Thanks  :D  you  :D [Resolute]
2013-07-20 19:24:33
"UFFENO1, post: 91392":

Stupid question maybe, but have you enough uploaded.  :)
yes! lol
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