Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader > Mods & Themes
Reply
  #1  
Old 8th March 2014, 00:28
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Smile New Member [TT-2.08 MOD]
Hello BvList Members,
I have been playing around with this source & seem to not of seen this mod created for TorrentTrader 2.08 so I created you a clean Mysqli New Member Mod!. Report any bugs to me directly or post here & I'll help you out. Added a example picture of what it does also

Remember to backup firstly!

Edit your index.php

Below:
Code:
 stdhead(T_("HOME")); 
ADD
Code:
 // New Member!
    $tt_sql = mysqli_connect("localhost", "root", "#passwordchangeme", "#databasechangeme");

    if ($CURUSER) {

    $new_member      = "./cache/newuser.txt";
    $new_member_life = 1 * 60 ; //1 min

    if (file_exists($new_member) && is_array(unserialize(file_get_contents($new_member))) && (time() - filemtime($new_member)) < $new_member_life) {

    $kittens         = unserialize(@file_get_contents($new_member));}
    else {

    $tt_security     = mysqli_query($tt_sql, "select id , username FROM users order by id desc limit 1");
    $variable        = mysqli_fetch_assoc($tt_security); // This line will teach you something unique.
    $handlef         = fopen($new_member, "w+");
    fwrite($handlef, serialize($kittens));
    fclose($handlef);}

    begin_frame(T_("{$site_config['SITENAME']} New Member"));

    $tt_new = "<!-- | Works like Echo ;) | -->";
    $tt_new = "<div id='newmember'>
                 Welcome to {$site_config['SITENAME']} <a href='/account-details.php?id={$variable["id"]}'>".htmlspecialchars($variable["username"])."</a>
               </div>\n";
                         echo $tt_new;

    end_frame();} // End! 
Add to your cache folder!
Code:
a:2:{s:2:"id";s:2:"65";s:8:"username";s:4:"test";}
Save As : newuser.txt

Click the image to open in full size.

Enjoy!,
BamBam

Last edited by BamBam0077; 8th March 2014 at 00:30. Reason: Added Image :D
Reply With Quote
The Following 2 Users Say Thank You to BamBam0077 For This Useful Post:
Marco (7th April 2014), Poland07 (26th February 2018)
  #2  
Old 1st June 2014, 00:02
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Talking
This looks nice ill keep my eyes open for this mod on sites
happy hacking love it thax very much

PHP Code:
 $tt_sql mysqli_connect("localhost""root""#passwordchangeme""#databasechangeme"); 

Last edited by Krypto; 1st June 2014 at 05:12. Reason: No need to Quote a post above you own.
Reply With Quote
  #3  
Old 13th January 2015, 12:21
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
the sql query to access db is not required they could use the function dbconn(); so yeah it was a quick example ;)
Reply With Quote
Reply

Tags
member , mod , tt208

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 15:09. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.