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
New Invite Tree for 2.08
Controls ·  Search New posts · Mark unread

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

Unknown User
2013-01-16 22:15:17
BigMax1 good to see your coding better with torrenttrader code them the tbv you tryed to code
Unknown User
2013-01-17 14:12:57
In my opinion you must have a very tangled mind to write a code like invitetree made by tbdev   :lol:   and worse, it looks ugly...
Unknown User
2013-01-19 09:56:14
Everything is beautiful but does not show anything, no errors. What could be the problem?

[url="http://postimage.org/image/fhgxs2bh7/"][/url]
Unknown User
2013-01-19 15:49:35
The problem is that this member has no confirmed invitees, so what do you want to see?
Unknown User
2013-01-20 11:06:26
Yes works nice,  there today already shows info.

Thanks you tjis code BigMax1
Unknown User
2013-01-20 15:47:44
update with languages

add-on pending invitees

staff can see all user's tree

curuser can  only see his tree

guest can see nothing

you need [url="https://www.torrenttrader.org/topic/17452-class-colors-function-for-208/"]Class Colors Function for 2.08 by BigMax1[/url]

or delete every class_user in the file

you also need [url="https://www.torrenttrader.org/topic/14270-prune-invites/"]Prune Invites[/url]

you also need function get_ratio_color()

if you don't have it, add this into function.php



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





english.php




//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";




http://devscorner.xyz/uploads/post-14929-0-42560900-1358698157.pnghttp://devscorner.xyz/uploads/post-14929-0-44429700-1358697321.pnghttp://devscorner.xyz/uploads/post-14929-0-59446700-1358697786.pnghttp://devscorner.xyz/uploads/post-14929-0-25552800-1358696765.png

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6496"]invitetree.php[/url]
invitetree_php.png
invitetree_php.png
invitetree.php
Download
invitetree_php2.png
invitetree_php2.png
invitetree_php4.png
invitetree_php4.png
invitetree_php3.png
invitetree_php3.png
2013-01-20 16:16:25
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 :(
Unknown User
2013-01-21 00:08:13
this looks ok.. but hate to tell people its really not an invite "tree" its more like an invited list.  An invite tree shows the people the person invites, then if that person invited someone it shows that too and so on and so on.  Yes the original tbdev was ugly but it showed an true tree and not just the people someone invited.
Unknown User
2013-01-21 09:41:51
"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  :(

what do you have in functions on line 736 ?
2013-01-21 11:52:31
"AzuriS, post: 88385":
what do you have in functions on line 736 ?

$date = new DateTime($timestamp, new DateTimeZone("UTC"));


Unknown User
2013-01-21 13:43:21
ok, found why you have this error

you updated a pending user directly in SQL but you forget to change last_access

if last_access is 0000-00-00 00:00:00 utc_to_tz($arr["last_access"]) can't be calculate so you have this error
Unknown User
2013-01-21 15:10:32
"ArcticWolf, post: 88381":
.................. the original tbdev was ugly but it showed an true tree and not just the people someone invited.
where can i find this code ?
Unknown User
2013-01-21 19:39:28
https://www.torrenttrader.org/topic/17529-old-style-true-invite-tree-for-208/
2013-01-22 00:17:40
"AzuriS, post: 88390":
ok, found why you have this error

you updated a pending user directly in SQL but you forget to change last_access

if last_access is 0000-00-00 00:00:00 utc_to_tz($arr["last_access"]) can't be calculate so you have this error

Cest Bon thank you there!  :)


Unknown User
2013-01-22 01:51:39
Les fautes d'orthographe
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