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
[HACK] New User in Shoutbox
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-05-14 18:51:11
thx i have installed this one ;)
Unknown User
2008-11-18 20:22:53
Let's go for an update  :D

It correct Dodez code and date

It write the message in shoutbox with 3 way :

1- email confirmation is off ==> it write the message when user just registred

2- email confirmation is on==> it write the message when user confirm by following the link in the email sent (not before!!!)

3- pending status==> it write the message if status is confirmed in PCstaff

In account-signup.php, change:

}else{ //email confirmation is off

header("Refresh: 0; url=account-confirm-ok.php?type=noconf");

}
For:


}else{ //email confirmation is off

$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New User: [url=".$site_config['SITEURL']."/account-details.php?id=".$id."]".$wantusername."[/url]', '".get_date_time()."', '0')";

mysql_query($query);

header("Refresh: 0; url=account-confirm-ok.php?type=noconf");

}





In account-confirm.php, change:



$res = mysql_query("SELECT password, secret, status FROM users WHERE id = $id");





For:



$res = mysql_query("SELECT password, secret, status, username FROM users WHERE id = $id");





Change:



if (!mysql_affected_rows())

show_error_msg("Error","Unable to activate account please contact a admin",1);





For:



if (!mysql_affected_rows()) {

show_error_msg("Error","Unable to activate account please contact a admin",1);

}

else {

$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New User: [url=".$site_config['SITEURL']."/account-details.php?id=".$id."]".$row["username"]."[/url]', '".get_date_time()."', '0')";

mysql_query($query);

}





In admincp.php, find:



mysql_query("UPDATE users SET status='$ed_status' WHERE id=$id");





Add after:



$qq = MYSQL_QUERY("SELECT username FROM users WHERE id = $id");

$ee = MYSQL_FETCH_ARRAY($qq);

$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'SpiRiT', 'Bienvenue au nouveau membre : [url=".$site_config['SITEURL']."/account-details.php?id=".$id."]".$ee["username"]."[/url]', '".get_date_time()."', '0')";

mysql_query($query);



Thanks to The Phoenix_UK for his code, and to Dodez for his update code

Works perfectly on v2.05
Unknown User
2009-06-30 22:29:41
good job thanks
Unknown User
2009-12-03 14:23:44
i added this last update today , and sorry but still recieve in shoutbox .......System:  New User: [url="/account-details.php?id=8"]mackem[/url]   ;)

thats strange , on my site it doesn't show as a link ......any ideas please

all sorted , mistake by myself :blush:
Unknown User
2011-08-22 12:20:37
thnx
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728