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
[Solved] Use current username and profil
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

Unknown User
2019-04-27 13:48:46
Hi guys,

I'd like to know how to include username and link in themes/header.php of logged user
2019-04-27 14:43:05
in header find

                        print (T_("LOGGED_IN_AS").": ".$CURUSER["username"]."");


replace with

                        print (T_("LOGGED_IN_AS").": <a href='account-details.php?id=$row[id]'>".$CURUSER["username"]."</a>");


or if you have colour function

                    print (T_("LOGGED_IN_AS").": <a href='account-details.php?id=$row[id]'>". class_user($CURUSER[username]) ."</a>");
Unknown User
2019-04-27 15:01:27
Great! Username working, but user id is empty with id=

Edit: fixed with [color=rgb(147, 101, 184)]account-details.php?id=".T_($CURUSER["id"])."'[/color]
2019-04-27 15:12:30
print (T_("LOGGED_IN_AS").": <a href='account-details.php?id=$CURUSER[id]'>".$CURUSER["username"]."</a>");

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
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