"Tiloup, post: 88367":Thanks you AjuriS :)
..error >>
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() [<a href='datetime.--construct'>datetime.--construct</a>]: Failed to parse time string (---) at position 0 (-): Unexpected character' in /home/xxxx/xxx/backend/functions.php:736 Stack trace: #0 /home/xxxx/xxxx/backend/functions.php(736): DateTime->__construct('---', Object(DateTimeZone)) #1 /home/xxx/xxxx/invitetree.php(125): utc_to_tz('---') #2 {main} thrown in /home/xxxx/xxxxx/backend/functions.php on line 736 :(
function get_ratio_color($ratio) {
if ($ratio < 0.1) return "#ff0000";
if ($ratio < 0.2) return "#ee0000";
if ($ratio < 0.3) return "#dd0000";
if ($ratio < 0.4) return "#cc0000";
if ($ratio < 0.5) return "#bb0000";
if ($ratio < 0.6) return "#aa0000";
if ($ratio < 0.7) return "#990000";
if ($ratio < 0.8) return "#880000";
if ($ratio < 0.9) return "#770000";
if ($ratio < 1) return "#660000";
return "#000000";
}
you can change colors as you like
//Invite Tree
$LANG["NOT_ALLOW"] = "You are not allow to see other user's trees!";
$LANG["NO_INVITEES_FOUND"] = "This member doesn't have invitee.";
$LANG["NO_INVITEES_CURUSER"] = "You don't have invitee.";
$LANG["INVITE_TREE_FOR"] = "Invite Tree for ";
$LANG["MY_INVITE_TREE"] = "My Invitees";
$LANG["PENDING_ACCOUNT[0]"] = " account";
$LANG["PENDING_ACCOUNT[1]"] = " accounts";
$LANG["WAIT_VALID"] = " waiting for confirmation";
$LANG["EMAIL_SENT_TO"] = "Email Addressee";
$LANG["INVITE_DATE"] = "Date Invitation";
$LANG["AVAILABLE_TO"] = "Valid until";
$LANG["TIME_REMAINDER"] = "Remaining Time";
$LANG["INVITED"] = " invited ";
$LANG["YOU_INVITE"] = "You invited ";
$LANG["PERSON[0]"] = " Person";
$LANG["PERSON[1]"] = " Persons";
$LANG["INSCRIPTION"] = "Inscription";
$LANG["BACK_TO_PROFIL"] = "Back to User Profile";
french.php
//Invite Tree
$LANG["NOT_ALLOW"] = "Vous n'avez pas la permission de voir les invités des autres!";
$LANG["NO_INVITEES_FOUND"] = "Ce membre n'a aucun invité.";
$LANG["NO_INVITEES_CURUSER"] = "Vous n'avez aucun invité.";
$LANG["INVITE_TREE_FOR"] = "Invités de ";
$LANG["MY_INVITE_TREE"] = "Mes invités";
$LANG["PENDING_ACCOUNT[0]"] = " compte";
$LANG["PENDING_ACCOUNT[1]"] = " comptes";
$LANG["WAIT_VALID"] = " en attente de validation";
$LANG["EMAIL_SENT_TO"] = "Email destinataire";
$LANG["INVITE_DATE"] = "Date d'invitation";
$LANG["AVAILABLE_TO"] = "Valable jusqu'au";
$LANG["TIME_REMAINDER"] = "Temps restant";
$LANG["INVITED"] = " a invité ";
$LANG["YOU_INVITE"] = "Vous avez invité ";
$LANG["PERSON[0]"] = " personne";
$LANG["PERSON[1]"] = " personnes";
$LANG["INSCRIPTION"] = "Inscription";
$LANG["BACK_TO_PROFIL"] = "Retour au profil du membre";
if($classy[3]=="no"){
$warn="<img src='".$site_config[sITEURL]."/images/disabled.png' alt='disabled' border=0>";
}else{ $disabled=""; }
change for
if($classy[3]=="no"){
$disabled="<img src='".$site_config[sITEURL]."/images/disabled.png' alt='disabled' border=0>";
}else{ $disabled=""; }
$CURUSER["control_panel"] == "yes"
"Romano1, post: 88154":add to english.phpAzuriS an "1" appears in the end. Dont now why, great code thank you.
$LANG["ALL1"] = "ALL";
add to french.php
$LANG["ALL1"] = "TOUTES";
also change in english.php
$LANG["MSG_ADD"] = "Hey, we have added %s GB upload to your account!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";
;
for
$LANG["MSG_ADD"] = "Hey, we have added %s upload to your account!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";
and
$LANG["MSG_DED"] = "Hey, we have deducte %s GB upload to your account!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";
for
$LANG["MSG_DED"] = "Hey, we have deducte %s upload to your account!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";
//Upload Manager
$LANG["UP_MANAGER"] = "Upload Manager";
$LANG["UP_UPDATED"] = "Done.OK.";
$LANG["UP_ADD"] = "<b>ADD</b> to upload";
$LANG["UP_DED"] = "<b>DEDUCT</b> from upload";
$LANG["UP_MUL"] = "<b>MULTIPLY</b> current upload";
$LANG["UP_DIV"] = "<b>DIVIDE</b> current upload";
$LANG["UP_ADDED"] ="%s added %s GB Upoad to all members from classe: %s";
$LANG["UP_DEDUCTED"] ="%s deducted %s GB Upoad to all members from classe: %s";
$LANG["UP_MULTIPLIED"] ="%s multiplied by %s Upoad to all members from classe: %s";
$LANG["UP_DIVIDED"] ="%s divided by %s Upoad to all members from classe: %s";
$LANG["TO_ALL_MEMBERS"] = "To All Members";
$LANG["INFO_UP_BONUS"] = "<p style='margin-top:10px; margin-bottom:20px' align='center'>Choose the class at you want to modify the upload or preserves <i>To all members</i><br />
then click at one of the values listed below, which you have chosen for this action.<br />
Marks <i>System</i> if you want that it be the sender of messages.</p>";
$LANG["SUBJECT_ADD"] = "We have added GB Upload to your account";
$LANG["MSG_ADD"] = "Hey, we have added %s upload to your account!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";
$LANG["SUBJECT_DED"] = "We have deducte GB Upload to your account";
$LANG["MSG_DED"] = "Hey, we have deducte %s upload to your account!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s.";
$LANG["SUBJECT_MUL"] = "We have MULTIPLIED your upload";
$LANG["MSG_MUL"] = "Hey, we have MULTIPLIED your upload by %s!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";
$LANG["SUBJECT_DIV"] = "We have DIVIDED your upload";
$LANG["MSG_DIV"] = "[size=2][color=#FF2500]Hey, we have DIVIDED your upload by %s!
Please do not think this is a time to not seed. The same rules as always apply and we hate leechers...
So, if you're not a leecher, download something nice and enjoy!nClass Concerned: %s";
$LANG["ALL1"] = "ALL";
i'm not english so if something wrong change it!!!
//Upload Manager
$LANG["UP_MANAGER"] = "Gestion Upload des membres";
$LANG["UP_UPDATED"] = "Opération effectuée.";
$LANG["UP_ADD"] = "<b>Ajouter</b> à l'Upload";
$LANG["UP_DED"] = "<b>Déduire</b> de l'Upload";
$LANG["UP_MUL"] = "<b>Multiplier</b> l'Upload";
$LANG["UP_DIV"] = "<b>Diviser</b> l'Upload";
$LANG["UP_ADDED"] ="%s a ajouté %s d'Upoad aux membres de la classe: %s";
$LANG["UP_DEDUCTED"] ="%s a déduit %s d'Upoad aux membres de la classe: %s";
$LANG["UP_MULTIPLIED"] ="%s a multiplié par %s l'Upoad des membres de la classe: %s";
$LANG["UP_DIVIDED"] ="%s a divisé par %s l'Upoad des membres de la classe: %s";
$LANG["TO_ALL_MEMBERS"] = "A tous les membres";
$LANG["INFO_UP_BONUS"] = "<p style='margin-top:10px; margin-bottom:20px' align='center'>Choisissez la classe dont vous voulez modifier l'Upload,<br /><br />(par défaut, tous les membres sont sélectionnés).<br /><br />Cochez <i>System</i> si vous voulez que le message associé soit envoyé par lui.<br /><br />Choississez ensuite une des options listées ci-dessous.</p>";
$LANG["SUBJECT_ADD"] = "Vous avez reçu un crédit d'Upload";
$LANG["MSG_ADD"] = "[size=2][color=#FF2500]Bonjour, votre Upload a été crédité de %s.nCe n'est pas une raison pour ne pas seeder!nLes règles ne changent pas et nous détestons toujours autant les leecheurs!!!nDonc, si vous n'êtes pas un leecheur, profitez-en pour télécharger quelque chose et vous faire plaisir.nCette mesure est appliquée à la classe suivante : %s.";
$LANG["SUBJECT_DED"] = "Votre Upload a été débité";
$LANG["MSG_DED"] = "Bonjour, votre Upload a été débité de %s.nCe n'est pas une raison pour ne pas seeder!nLes règles ne changent pas et nous détestons toujours autant les leecheurs!!!nCette mesure est appliquée à la classe suivante : %s.";
$LANG["SUBJECT_MUL"] = "Votre Upload a été multiplié";
$LANG["MSG_MUL"] = "Bonjour, votre Upload a été multiplié par %s.nCe n'est pas une raison pour ne pas seeder!nLes règles ne changent pas et nous détestons toujours autant les leecheurs!!!nCette mesure est appliquée à la classe suivante : %s.";
$LANG["SUBJECT_DIV"] = "Votre Upload a été divisé";
$LANG["MSG_DIV"] = "Bonjour, votre Upload a été divisé par %s.nCe n'est pas une raison pour ne pas seeder!nLes règles ne changent pas et nous détestons toujours autant les leecheurs!!!nCette mesure est appliquée à la classe suivante : %s.";
$LANG["ALL1"] = "TOUTES";
little update for class translation in messages and log
find 4 times
$arr1 = mysql_fetch_row($res1);
add after everyone
$arr1[0] = T_("$arr1[0]");
add to languages if you don't have yet
english.php
$LANG["Member"] = "Member";
$LANG["Power User"] = "Power User";
$LANG["VIP"] = "VIP";
$LANG["Uploader"] = "Uploador";
$LANG["Moderator"] = "Moderator";
$LANG["Super Moderator"] = "Super Moderator";
$LANG["Administrator"] = "Administrator";
french.php
$LANG["Member"] = "Membre";
$LANG["Power User"] = "Power User";
$LANG["VIP"] = "VIP";
$LANG["Uploader"] = "Uploadeur";
$LANG["Moderator"] = "Modérateur";
$LANG["Super Moderator"] = "Super Modérateur";
$LANG["Administrator"] = "Administrateur";
"Mythos, post: 87843":very nice but i have 1 small problem
in DEDUCT from upload and DIVIDE current upload dont take message the member
"ArcticWolf, post: 87933":TY but i already did this ;)I dont have an iphone to test it LOL but the main site of QapTcha says to use the attached file, upload it to jquery then after
add<script type="text/javascript" src="jquery/jquery-ui.js"></script>
<script type="text/javascript" src="jquery/jquery.ui.touch.js"></script>
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6454"]jquery.ui.touch.js[/url]
"BigMax1, post: 87836":Sorry AzuriS, your code does not work...
bark("Not logged in");
is for old 1st version TT
you have to change it for
show_error_msg(T_("ERROR"), "Not logged in", 1);
and i change
if (get_user_class() >= 5) {
print("<div style='margin-bottom:3px'>");
print("<table><tr><td><font size=2>[<a href="javascript:void(0);" onclick="window.open('/ratings.php?id=$id', 'mywindow4', 'width=300, height=580, menubar=no, toolbar=no, scrollbars=yes');"><b>See Votes</b></a>]</font></td></tr></table>");
print("</div>");
}
for
$numrat = mysql_num_rows($xres);
if (($numrat > 0) && (get_user_class() >= 5 )) {
print("<div style='margin-bottom:3px'>");
print("<table><tr><td><font size=2>[<a href="javascript:void(0);" onclick="window.open('/ratings.php?id=$id', 'mywindow4', 'width=300, height=580, menubar=no, toolbar=no, scrollbars=yes');"><b>See Votes</b></a>]</font></td></tr></table>");
print("</div>");
}
"Tiloup, post: 87276":Faîtes un crédit d'UploadFrançais
$LANG["DONATE_UPLOAD_CREDITS"] = "Faites un Crédits Upload";
$LANG["EMAIL_BANS_ADD"] = "Email %sbanni %s ajouté par (%s)";
for
$LANG["EMAIL_BANS_ADD"] = "Email %s banni ajouté par (%s)";