KyleMassacre Posted April 8, 2014 Share Posted April 8, 2014 ewww crons? Maybe i should fork this and see what i can do ay? Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 8, 2014 Author Share Posted April 8, 2014 ewww crons? Maybe i should fork this and see what i can do ay? Aye, did I forget to mention? Everyone feel free to form the stuff on my GIT. :) Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 8, 2014 Share Posted April 8, 2014 Am I reading this right? Do players only get to rate once a day? Quote Link to comment Share on other sites More sharing options...
HazardBoy Posted April 9, 2014 Share Posted April 9, 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. Another solution to this error: Add start of the script You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and at the end You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted April 9, 2014 Share Posted April 9, 2014 (edited) Another solution to this error: Add start of the script You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and at the end You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You can also do this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then add the other part of the code to it. you get the error because the html and head was already set by the header.php which globals.php pulls from that page, so its unnecessary to have it when it's already there. Edited April 9, 2014 by lucky3809 Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 9, 2014 Author Share Posted April 9, 2014 (edited) Am I reading this right? Do players only get to rate once a day? Yes, you can easily change that by changing the limit in the DB. Edited April 9, 2014 by Script47 Quote Link to comment Share on other sites More sharing options...
SRB Posted April 9, 2014 Share Posted April 9, 2014 Forked. -2short Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 9, 2014 Author Share Posted April 9, 2014 Forked. -2short Have you got a link to your profile? :) Quote Link to comment Share on other sites More sharing options...
SRB Posted April 9, 2014 Share Posted April 9, 2014 I de-forked it - I was half way through editing it all, then figured it was too much. I don't have anything on there - will have soon. Well, on bitbucket. http://www.github.com/LukeMarlow is me though. Quote Link to comment Share on other sites More sharing options...
Script47 Posted April 9, 2014 Author Share Posted April 9, 2014 I de-forked it - I was half way through editing it all, then figured it was too much. I don't have anything on there - will have soon. Well, on bitbucket. http://www.github.com/LukeMarlow is me though. I see, thanks anyway. :) Quote Link to comment Share on other sites More sharing options...
Tangled Posted September 16, 2014 Share Posted September 16, 2014 Yes, you can easily change that by changing the limit in the DB. ok this works great but I changed the 1 to 20 in the data base and it still won't let me do more than 1 Quote Link to comment Share on other sites More sharing options...
Veramys Posted September 16, 2014 Share Posted September 16, 2014 In the code for rating up it has a line that says this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change that to say this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Tangled Posted September 16, 2014 Share Posted September 16, 2014 In the code for rating up it has a line that says this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change that to say this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thank you! :) Quote Link to comment Share on other sites More sharing options...
Veramys Posted September 17, 2014 Share Posted September 17, 2014 You're very welcome. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted September 17, 2014 Share Posted September 17, 2014 In the code for rating up it has a line that says this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change that to say this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That will remove the limit a player can rate people but it also removes the limit on how many time a player can rate the same player ;) Quote Link to comment Share on other sites More sharing options...
Veramys Posted September 17, 2014 Share Posted September 17, 2014 (edited) Look in the original code. The rate down is written like I posted for the rate up. Not to say that it's not wrong. I just adjusted for how it was written in the code. Edited September 17, 2014 by Veramis Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted September 17, 2014 Share Posted September 17, 2014 Look in the original code. The rate down is written like I posted for the rate up. Not to say that it's not wrong. I just adjusted for how it was written in the code. No, your not wrong but what it now does is allows someone to constantly rate a player up or down all day long nonstop. That's all I meant by my post Quote Link to comment Share on other sites More sharing options...
Veramys Posted September 17, 2014 Share Posted September 17, 2014 After you rate a player up have it insert into a db $thisuser rated up $thatuser and then call to that table, if there is an entry for you rating up that user echo "You have rated this person today" and then die($h->endpage()); then truncate the table with your day cron/day timestamps. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted September 17, 2014 Share Posted September 17, 2014 That's pretty much how I would do it 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.