Bravo List
Register
Go Back   > Bravo List > Sourcecode > Torrent Trader > Mods & Themes
Reply
  #1  
Old 08-03-14, 00:28
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Support
 
Join Date: Jul 2013
P2P
Posts: 229
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; 08-03-14 at 00:30. Reason: Added Image :D
Reply With Quote
The Following User Says Thank You to BamBam0077 For This Useful Post:
Marco (07-04-14)
  #2  
Old 01-06-14, 00:02
WhyMe's Avatar
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 161
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; 01-06-14 at 05:12. Reason: No need to Quote a post above you own.
Reply With Quote
  #3  
Old 13-01-15, 12:21
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Support
 
Join Date: Jul 2013
P2P
Posts: 229
Default
the sql query to access db is not required they could use the function dbconn(); so yeah it was a quick example ;)
__________________
"Iíve got a fire in me,
Thereís so much I have to see,
From where I was before,
To how far Iíve yet to go"
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 12:09. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.