Guest Anonymous Posted March 16, 2008 Posted March 16, 2008 And since I'm feeling in a generous mood... Heres a replacement for the bog-standard gym.php script. Images available from http://nyna.co.uk/gallery/ Installation: 1. Save this script down to gym2.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2. Modify your mainmenu.php to add a link to the new gym You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Enjoy (Minor edits to restore original jail functionality - I use a totally different jail system on my test site - sorry 'bout that) Quote
Guest Anonymous Posted March 16, 2008 Posted March 16, 2008 Re: Free 2 - Gym Screenshot added... Quote
03laceys Posted March 16, 2008 Posted March 16, 2008 Re: Free 2 - Gym Looks great i will edit and add to my game thank you. Quote
Note i didn't make this mo Posted March 16, 2008 Posted March 16, 2008 Re: Free 2 - Gym Cheers Nyna It will be sure too go on my game :mrgreen: Quote
jeeppimp Posted March 17, 2008 Posted March 17, 2008 Re: Free 2 - Gym Nice! works well..... Thanks... Quote
shrek1609 Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym Wow now this is really nice... The hardcore statters hate training because of the annoying dropdown box :) This is perfect thanks again Quote
shrek1609 Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym Maybe a slight hiccup... For the ranking's it seems to be taking into account the NPC's stats as well would it be possible to exclude the NPC's stats :) Quote
Guest Anonymous Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym Come on, this is simple stuff... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. becomes You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
shrek1609 Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym Thanks Nyna... I am learning but knew nothing 3 weeks ago so still getting my head round some bits ;) Sorry for seeming thick :( Quote
WickedJester Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym thats awesome! thanks for sharing Quote
KDawg08 Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym Hate to be a hassle but how would I convert this to V1? I replaced the require globals.php and the $db-> with my_sql but it forces me to the login page... Quote
Guest Anonymous Posted March 19, 2008 Posted March 19, 2008 Re: Free 2 - Gym Sorry, I never used V1 and I doubt it would run on the Lite version - Perhaps somebody else... Quote
KDawg08 Posted March 20, 2008 Posted March 20, 2008 Re: Free 2 - Gym Anyone? This would be greatly appreciated. Quote
Ishy Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym $db-> should be replaced with mysql_ Not my_sql :-) Toxication Quote
Godhand Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym $db-> should be replaced with mysql_ Not my_sql :-) Toxication That is very true. :-D. Theres more then 1 thread to convert versions. Search function is a little nice. Quote
Tonka Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym nice mod Nyna, my users love it Quote
The Ace Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym Nice mod...but where would I put the gain exp bit: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
YoungGold Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym Nice work Nyna you got the same sort of concept that i was going to create soon guess i dont have to now lol....much apreciated keep up the good work... Quote
Guest Anonymous Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym Nice mod...but where would I put the gain exp bit: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You will need to modify that query, but look towards the bottom of the form processing section. There are two queries $sql1 and $sql2 that do the actual update of the users and userstats. You can either amend those to suit, or add another query. I never bothered with updating the experience - CBA ;) Quote
The Ace Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym I'm sorry, but seeing as it is different to my previous gym, I don't know how to add in another query....I am just starting to learn properly. What would the query be, if you don't mind? :) Quote
Guest Anonymous Posted March 22, 2008 Posted March 22, 2008 Re: Free 2 - Gym I have no idea - I don't run any DBS/MCcodes system (at least public facing) If you can't figure out the basics, perhaps, either a) ask someone else, b) learn the languages PHP/MySQL reasonably well or c) Don't use my extensions. I'm afraid I design all my extensions purely for my own amusement. I release them occasionally as I see fit, and to hopefully teach you lot a little about how they can be written (Not that mine are "good" - they just work for me). Without understanding the language, you will have problems, and I'm really not the best person to ask, I'm too impatient, sometimes arrogant, and I have difficulty explaining myself to people without a similar level of knowledge. So basically, my apologies, ask around though, there are a few how could help out I'm sure. Quote
KDawg08 Posted March 23, 2008 Posted March 23, 2008 Re: Free 2 - Gym my_sql was a typo but idid replace it properly still didn't work takes me to login page Quote
Guest Anonymous Posted March 23, 2008 Posted March 23, 2008 Re: Free 2 - Gym Maybe worth reading about the session function in the PHP manual. I believe a session_start( ) *may* help - I actually use a prepend file ( ./include("./prepend.php"); ) which initiates the session handling amongst other things... On reflection - perhaps not - including the globals *should* be initiating the session setup so I'm not sure what the issue is here. Quote
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.