Klikoka Posted March 16, 2008 Share Posted March 16, 2008 This Is From This Topic http://criminalexistence.com/ceforums/index.php?topic=14829.0 I Edited It A Little And Here Is My Finished Product:: rating.php::: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Daily Cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SQL's 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...
gurpreet Posted March 16, 2008 Share Posted March 16, 2008 Re: User Rating Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*******'@'localhost' (using password: YES) in /home/*******/public_html/mysql.php on line 3 Access denied for user '*******'@'localhost' (using password: YES) Any idea whats wrong? Quote Link to comment Share on other sites More sharing options...
Klikoka Posted March 16, 2008 Author Share Posted March 16, 2008 Re: User Rating your mysql.php is not set to your files properly Quote Link to comment Share on other sites More sharing options...
gurpreet Posted March 16, 2008 Share Posted March 16, 2008 Re: User Rating Just a quick question, I lost my old mysql.php file and I put it like this in the file. <? $c=mysql_connect('localhost','Passwordhere' or die(mysql_error()); mysql_select_db('DBhere',$c); ?> Then I get Parse error: syntax error, unexpected ';' in /home/gurpreet/public_html/mysql.php on line 3 Sorry to be noobish but I lost all my knowledge of this stuff. Quote Link to comment Share on other sites More sharing options...
Klikoka Posted March 16, 2008 Author Share Posted March 16, 2008 Re: User Rating You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should Be 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...
gurpreet Posted March 16, 2008 Share Posted March 16, 2008 Re: User Rating Now I get Fatal error: Call to a member function query() on a non-object in /home/gurpreet/public_html/header.php on line 90. o.O Quote Link to comment Share on other sites More sharing options...
gurpreet Posted March 16, 2008 Share Posted March 16, 2008 Re: User Rating Fatal error: Call to a member function query() on a non-object in /home/gurpreet/public_html/header.php on line 90 $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); Any idea what's wrong? Quote Link to comment Share on other sites More sharing options...
Miniman Posted March 16, 2008 Share Posted March 16, 2008 Re: User Rating Fatal error: Call to a member function query() on a non-object in /home/gurpreet/public_html/header.php on line 90 $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); Any idea what's wrong? line 50 should look like this..... global $ir,$userid,$db; Quote Link to comment Share on other sites More sharing options...
gurpreet Posted March 16, 2008 Share Posted March 16, 2008 Re: User Rating global $db,$c,$userid, $db,$set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); line 86-90 Quote Link to comment Share on other sites More sharing options...
jimmytubbs Posted March 18, 2008 Share Posted March 18, 2008 Re: User Rating hi can you help Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/rating.php on line 17 cheers Quote Link to comment Share on other sites More sharing options...
Note i didn't make this mo Posted March 19, 2008 Share Posted March 19, 2008 Re: User Rating Wow i bet you didnt think ur post wold make this much hassel lol its easy to do your obv not setting your mysql/config to set the user ratings right lol Quote Link to comment Share on other sites More sharing options...
Klikoka Posted March 20, 2008 Author Share Posted March 20, 2008 Re: User Rating This Is V1 And Works For It These Are Converted To V2 I Think Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted March 21, 2008 Share Posted March 21, 2008 Re: User Rating Hehe, you people...Sometimes you make me laugh.. I'll post up a MySQL setup manual later.. Quote Link to comment Share on other sites More sharing options...
Godhand Posted March 22, 2008 Share Posted March 22, 2008 Re: User Rating Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*******'@'localhost' (using password: YES) in /home/*******/public_html/mysql.php on line 3 Access denied for user '*******'@'localhost' (using password: YES) Any idea whats wrong? Your game got jacked. Make sure you deleted your installer.php. Then go into config.php and set the details to what it should be. Edit: I double checked and that is correct. Quote Link to comment Share on other sites More sharing options...
Note i didn't make this mo Posted March 22, 2008 Share Posted March 22, 2008 Re: User Rating Yea that happend to me beofre i dont really know why dabombstew added installer it dosnt really do anything and if you wonted to know anything about installing just read the manuall you get free with it :S Quote Link to comment Share on other sites More sharing options...
Godhand Posted March 22, 2008 Share Posted March 22, 2008 Re: User Rating Well its to make sure everything was working ok. Plus it sets up user id 1... which you can do manually. Along with everything else that is done on that page. But I'm assuming just "cuz its easier". Quote Link to comment Share on other sites More sharing options...
Note i didn't make this mo Posted March 22, 2008 Share Posted March 22, 2008 Re: User Rating Maybe so ... but to some people who dont no what the damage could be it could be the downfall to there game :S i advise anybody reading this if you still have it remove it before some sad low life spoils ur game just becuase he gets a sick kick out of it *cough* Killah *cough* Quote Link to comment Share on other sites More sharing options...
Godhand Posted March 22, 2008 Share Posted March 22, 2008 Re: User Rating Funny thing is it isn't too hard to fix up provided you really know what happened. I have my error output for this be "of course not" so I remember to check for any weak spots. Quote Link to comment Share on other sites More sharing options...
Note i didn't make this mo Posted March 22, 2008 Share Posted March 22, 2008 Re: User Rating But to some people they wouldnt understand that it is a very good idea actually when i put the plans down for my new game ill defenautly think of that :D Quote Link to comment Share on other sites More sharing options...
henda Posted April 17, 2008 Share Posted April 17, 2008 Re: User Rating Works fine for me mate thanks Cheers Henda :-) Quote Link to comment Share on other sites More sharing options...
gulley Posted April 17, 2008 Share Posted April 17, 2008 Re: User Rating $db->query("UPDATE 'users' SET rates=1"); Were do i put that in daily cron ??? Thankyou if soom helps me :-D :-D :-D :-D :-D Quote Link to comment Share on other sites More sharing options...
Klikoka Posted April 18, 2008 Author Share Posted April 18, 2008 Re: User Rating yes in day crons Quote Link to comment Share on other sites More sharing options...
iR00T Posted June 18, 2008 Share Posted June 18, 2008 Re: User Rating *cough* killah *cough* ummm...you do know that u could keep the installer up and just make it where only ur ip can do it if seen games like that like this one game iplay has certain stuff like he can chosse to run his crons mainully witih one click ut onlyhis ip and his coder's can do it Quote Link to comment Share on other sites More sharing options...
Klikoka Posted June 18, 2008 Author Share Posted June 18, 2008 Re: User Rating *cough* killah *cough* ummm...you do know that u could keep the installer up and just make it where only ur ip can do it if seen games like that like this one game iplay has certain stuff like he can chosse to run his crons mainully witih one click ut onlyhis ip and his coder's can do it This is really quite simple to do. Quote Link to comment Share on other sites More sharing options...
iR00T Posted June 18, 2008 Share Posted June 18, 2008 Re: User Rating *cough* killah *cough* ummm...you do know that u could keep the installer up and just make it where only ur ip can do it if seen games like that like this one game iplay has certain stuff like he can chosse to run his crons mainully witih one click ut onlyhis ip and his coder's can do it This is really quite simple to do. yes XD just like a simple few lines of code bam all ip's except the one ur running is workable with that feature/mod 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.