Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
HabboPHP - user_info FIX
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="thewicard" data-source="post: 190335" data-attributes="member: 8814"><p><span style="font-size: 14px"><span style="font-family: 'helvetica'"><span style="color: #282828">Add code just below "require 'init.php';" in me.php</span></span></span></p><p> </p><p>[CODE]$my_id = $user->id;</p><p>$regdate = $user->account_created;</p><p>$regstamp = strtotime($regdate);</p><p>$userinfo = mysql_query("SELECT user_id FROM user_info WHERE user_id = '".$my_id."'") or die(mysql_error());</p><p>$userinfo_num = mysql_num_rows($userinfo);</p><p>if($userinfo_num == 0){</p><p>mysql_query("INSERT INTO user_info (user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive) VALUES ('".$my_id."',0,0,'".$regstamp."',0,0,0)");</p><p>}[/CODE]</p><p> </p><p><span style="font-size: 14px"><span style="font-family: 'helvetica'"><span style="color: #282828">Q: What's the point of fixing user_info?</span></span></span></p><p> </p><p><span style="font-size: 14px"><span style="font-family: 'helvetica'"><span style="color: #282828">A: It makes the 'my page' in client work. (For BcStorm, and other?)</span></span></span></p><p> </p><p><span style="font-size: 14px"><span style="font-family: 'helvetica'"><span style="color: #282828"><img src="http://s3.postimg.org/nk9qlssc3/Untitled.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></span></p></blockquote><p></p>
[QUOTE="thewicard, post: 190335, member: 8814"] [SIZE=14px][FONT=helvetica][COLOR=#282828]Add code just below "require 'init.php';" in me.php[/COLOR][/FONT][/SIZE] [CODE]$my_id = $user->id; $regdate = $user->account_created; $regstamp = strtotime($regdate); $userinfo = mysql_query("SELECT user_id FROM user_info WHERE user_id = '".$my_id."'") or die(mysql_error()); $userinfo_num = mysql_num_rows($userinfo); if($userinfo_num == 0){ mysql_query("INSERT INTO user_info (user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive) VALUES ('".$my_id."',0,0,'".$regstamp."',0,0,0)"); }[/CODE] [SIZE=14px][FONT=helvetica][COLOR=#282828]Q: What's the point of fixing user_info?[/COLOR][/FONT][/SIZE] [SIZE=14px][FONT=helvetica][COLOR=#282828] [/COLOR][/FONT][/SIZE] [SIZE=14px][FONT=helvetica][COLOR=#282828]A: It makes the 'my page' in client work. (For BcStorm, and other?)[/COLOR][/FONT][/SIZE] [SIZE=14px][FONT=helvetica][COLOR=#282828] [/COLOR][/FONT][/SIZE] [SIZE=14px][FONT=helvetica][COLOR=#282828][IMG]http://s3.postimg.org/nk9qlssc3/Untitled.png[/IMG][/COLOR][/FONT][/SIZE] [SIZE=14px][FONT=helvetica][COLOR=#282828][/COLOR][/FONT][/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
HabboPHP - user_info FIX
Top