Script47 Posted April 7, 2014 Share Posted April 7, 2014 (edited) Hello, Title is pretty clear, so lets get right in to it. Features Included: Rating System - Up/Down rate players. User Profile Comments - Post comments on each others profiles. Delete Comments - Don't like a comment? Delete it! Event Alerts - You will be alerted via events when you have been sent a comment & for Up/Down rates. Formatted Code - I cleaned the existing code to make it a bit more easier to read while along side my code. Grab The Code! If you find any issues, either post on here or the Git page for it or you could contact me on twitter. Thanks. Edited April 7, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted April 7, 2014 Share Posted April 7, 2014 Thanks, for the share! It looks good :) Quote Link to comment Share on other sites More sharing options...
peterisgb Posted April 7, 2014 Share Posted April 7, 2014 any chance of a screeny script? Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 (edited) any chance of a screeny script? Will be put on soon. Edited April 8, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
Newbie Posted April 8, 2014 Share Posted April 8, 2014 (edited) i get this when i use your viewuser.php Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mafiaco2/public_html/viewuser.php:25) in /home/mafiaco2/public_html/globals.php on line 28 it appears to be showing up because of the html in the code before the php i removed the html part and it worked [ATTACH=CONFIG]1378[/ATTACH] Edited April 8, 2014 by Newbie forgot screenshot Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 i get this when i use your viewuser.php Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mafiaco2/public_html/viewuser.php:25) in /home/mafiaco2/public_html/globals.php on line 28 it appears to be showing up because of the html in the code before the php i removed the html part and it worked [ATTACH=CONFIG]1378[/ATTACH] No problem. But I find it strange that I get no errors. Oh well, glad it's working. Screenshots Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 Its okay... Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 Its okay... Tell me where to improve? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 8, 2014 Share Posted April 8, 2014 No problem. But I find it strange that I get no errors. Oh well, glad it's working. Screenshots You have a whole HTML document above the PHP, i'm surprised the browser would parse it properly. If FamFam remove their icons for some reason your script will break. Using @ with functions is never a good idea. You make error messages disappear after 2 seconds exit(header("Refresh:2; URL=viewuser.php?u=$sendTo")); Not sure why. Just the points I found. Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 You have a whole HTML document above the PHP, i'm surprised the browser would parse it properly. If FamFam remove their icons for some reason your script will break. Using @ with functions is never a good idea. You make error messages disappear after 2 seconds exit(header("Refresh:2; URL=viewuser.php?u=$sendTo")); Not sure why. Just the points I found. I never used the @ functions, that's original MCC. I have also put the images on GIT for people to save to local machines. I have it to disappear and redirect to page so they can do it again instead of keeping it their, the last one is just my preference. The HTML is there for the styling. :) 1 Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 I get this error at the top of viewuser.php Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/globals.php on line 28 And I also get: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/globals.php on line 28 Warning: Cannot modify header information - headers already sent by (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/lib/basic_error_handler.php on line 39 ************ - Critical Error A critical error has occurred, and this page cannot be displayed. Please try again later. When I delete a comment, add a comment (even though the comment does display), not to forget when I rate someone. If this could be fixed, it would be a nice module. I added the SQL, overwrite the viewuser and added the cron. So I did follow the necessary steps. Quote Link to comment Share on other sites More sharing options...
Newbie Posted April 8, 2014 Share Posted April 8, 2014 I get this error at the top of viewuser.php Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/globals.php on line 28 And I also get: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/globals.php on line 28 Warning: Cannot modify header information - headers already sent by (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/lib/basic_error_handler.php on line 39 ************ - Critical Error A critical error has occurred, and this page cannot be displayed. Please try again later. When I delete a comment, add a comment (even though the comment does display), not to forget when I rate someone. If this could be fixed, it would be a nice module. I added the SQL, overwrite the viewuser and added the cron. So I did follow the necessary steps. i had the same errors for v2.05b remove the html code before the php code add the css into your css file and add the sqls and images then add your file Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 I coded this on V2 and had no issues. However Newbie's fixes seems to work so work with them. Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 Yep that worked, thanks. I quite actually like it without the fancy CSS. Maybe its just me, I prefer the more 'formal' yet in my opinion sharp look. Working now, just two questions, when I rate myself which you obviously can't, with the message that you can't rate yourself, the tables go all funny looking, I was thinking maybe isit possible to end the page with just the message? Last question which is a error, when I'm viewing someone else's profile and not my own I get 'game name - critical error this page cannot be displayed blah blah blah' do I have to add the user queries that came with the SQL into the register.php? Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 (edited) Yep that worked, thanks. I quite actually like it without the fancy CSS. Maybe its just me, I prefer the more 'formal' yet in my opinion sharp look. Working now, just two questions, when I rate myself which you obviously can't, with the message that you can't rate yourself, the tables go all funny looking, I was thinking maybe isit possible to end the page with just the message? Last question which is a error, when I'm viewing someone else's profile and not my own I get 'game name - critical error this page cannot be displayed blah blah blah' do I have to add the user queries that came with the SQL into the register.php? No, what the function exit(); does is stop the script from executing, so any code after it doesn't work, you could try remove the exit(); yet keep the header try that. What? No? Wait, I don't get what you mean by the second one. Follow these instructions. Open PMA. Import the SQL file PMA will run it automatically or you could grab the code inside an run it through query window. Then it should be ready, because I've altered the users table, and created a new table you have to run the SQL file I provided. Edited April 8, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 1) Removing the exit was a much better result. 2) Trying now, give me a minute. Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 I've done both, imported and manually put the SQL in the SQL tab in PMA, both lead to no avail... Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 I've done both, imported and manually put the SQL in the SQL tab in PMA, both lead to no avail... Can you show me the exact errors? Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 Wait a minute. I don't think the issue relies in the viewuser, what happened was, I created a new user via staff panel, when I visited the created users profile I got "A critical error has occurred, and this page cannot be displayed. Please try again later." However, when I'm viewing an actual players profile, there is no error. So I'm pretty baffled atm. Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 (edited) Wait a minute. I don't think the issue relies in the viewuser, what happened was, I created a new user via staff panel, when I visited the created users profile I got "A critical error has occurred, and this page cannot be displayed. Please try again later." However, when I'm viewing an actual players profile, there is no error. So I'm pretty baffled atm. That's good to know, however if you need any help, feel free to give me a shout. Edited April 8, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 "Oh BTW I'm 16." No need, not using the modification anymore. Jk. Its a good mod and you'd be surprised by my age. Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 "Oh BTW I'm 16." No need, not using the modification anymore. Jk. Its a good mod and you'd be surprised by my age. Huh? I have no idea what you are talking about? ;) How old are you? Quote Link to comment Share on other sites More sharing options...
The Coder Posted April 8, 2014 Share Posted April 8, 2014 ;) Too short. Quote Link to comment Share on other sites More sharing options...
Reecey12345 Posted April 8, 2014 Share Posted April 8, 2014 Crons? Or not required? Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 Crons? Or not required? If you check the file, at the top the comments give you the crons code. So yes it requires day cron. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.