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] Invited By
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-07-17 14:38:19
ok ive been working on this it works fine on my site, this is my first mod so please be nice!

this will show a link like this





Open account-details.php

and find

http://yoursite.comaccount-details.php?id=99
which will take you to the person who invited them!

$modcomment = htmlspecialchars($user["modcomment"]);



and Underadd



$invited_by = $user["invited_by"];





then find



print("<tr><td>Invites</td><td align=left><input type=text size=4 name=invites value=".$user["invites"]."></tr>\n");





and Under it add



print("<tr><td>Invited By</td><td><a href=account-details.php?id=".$user["invited_by"].">".$user["invited_by"]."</a></td></tr>");



and thats it!

hope this is used by someone and if anyone knows how to mkae it display the username with hyperlink plesae post it here! this is the best i could do with my very limited knowledge!

thnx Tengo

btw the sql should already be in the database if not let me no and il try and work it out :mellow:
Unknown User
2008-07-17 14:49:54
ok i will be partly nice lmfao. hyperlinks are basic html style so read up on it a bit. also you could have copied a hyperlink from elsewhere and adapteded it. but here you go. try this i hope it works but if it doesn't then just rememeber that i probably fried the last part of my brain the other that is why there are so many typos.

print("<tr><td>Invited By</td><td align=left><a http://piratescove.ismywebs.com//account-details.php?id=".$user["invited_by"].">$user[invited_by]</a><tr>\n");
Unknown User
2008-07-17 14:53:31
i have tried it i no how to do hyperlinks but i couldnt get it to work  :mellow:  i tried your way and got this error

Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/pirateco/public_html/account-details.php on line 254

lol
Unknown User
2008-07-17 17:16:17
ok sorry about that try it now. i have a problem with converting things from the echo to the print i always get that error at least once. but i will tell you if you ever get that error then it is a punctuation problem somewhere in the code. if it does not work then you could try this making the last $user[invited_by] either this way ".$user['invited_by']." or this way ".$user["invited_by"]."
Unknown User
2008-07-17 20:38:53
okie i have codeed a link to make it work as a hyperlink  :mellow:  however will only she as

invited by: 8

as in invited by user number 8 and 8 is a hyperlink :o
Unknown User
2008-11-15 01:26:51
I've change a bit the code so it works more properly:

find

$modcomment = htmlspecialchars($user["modcomment"]);

after add:

$invited_by = mysql_query("SELECT username FROM users WHERE id=$user[invited_by]");

$invited_by2 = mysql_fetch_array($invited_by);

find :

print("<tr><td>Invites</td><td align=left><input type=text size=4 name=invites value=".$user["invites"]."></tr>\n");

after add:

print("<tr><td class=rowhead>Invited by: </td><td align=left><a href=account-details.php?id=$user[invited_by]>$invited_by2[username]</a></td></tr>\n");
Unknown User
2010-04-22 16:09:20
thanks locau work fine
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