Ishy Posted August 2, 2007 Share Posted August 2, 2007 This is just a easy modification to your game because I am a noobie and just started to learn PHP. This modification is for House Pictures. I have put it so the house picture is the same size as your display picture...You will have to add seperate pictures on eahc house. Lets Start: Add this SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then open index.php: Find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then add underneath: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then hopefully it should work 8-) If you have any problem PM me please. I am hoping to give out more little free modifications. Thanks Toxication Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted August 2, 2007 Share Posted August 2, 2007 Re: [Mccode][Free] House Pictures Yea this is good also 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...
Isomerizer Posted August 2, 2007 Share Posted August 2, 2007 Re: [Mccode][Free] House Pictures Its easier to just use something like this in index.php: 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...
Ishy Posted August 2, 2007 Author Share Posted August 2, 2007 Re: [Mccode][Free] House Pictures I am not that good yet...This is my first little thing. :-) Quote Link to comment Share on other sites More sharing options...
YoungGold Posted August 2, 2007 Share Posted August 2, 2007 Re: [Mccode][Free] House Pictures aha thanks for posting this was so close to buying it this morning lol shame me website has crashed o well ill add it later. Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted August 3, 2007 Share Posted August 3, 2007 Re: [Mccode][Free] House Pictures Its easier to just use something like this in index.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 11 wasted lines cut to 3 with no effort at all Thats a bit of code you guys will not have known yet Quote Link to comment Share on other sites More sharing options...
SilverWolf Posted August 3, 2007 Share Posted August 3, 2007 Re: [Mccode][Free] House Pictures nice thinking oxi :wink: Quote Link to comment Share on other sites More sharing options...
UCC Posted August 3, 2007 Share Posted August 3, 2007 Re: [Mccode][Free] House Pictures While Oxi's code does only have 3 lines, it does not cover all the houses. And he can add the houses, it will stay 3 lines, but the first line will be very very long so in the end, I dont see the real benefit. A few less characters in the file, big deal. Hardly worth laughing at someone. I would suggest some Else If's though Feel free to continue sniffing his butt however Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted August 4, 2007 Share Posted August 4, 2007 Re: [Mccode][Free] House Pictures bah You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Upload house pics as md5 hashes of the house name and they'll show up Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted August 4, 2007 Share Posted August 4, 2007 Re: [Mccode][Free] House Pictures While Oxi's code does only have 3 lines, it does not cover all the houses. And he can add the houses, it will stay 3 lines, but the first line will be very very long so in the end, I dont see the real benefit. A few less characters in the file, big deal. Hardly worth laughing at someone. I would suggest some Else If's though Feel free to continue sniffing his butt however How the hell will array be long? It's only how many values you put into that takes the time, 3 isn't hardly much but you can easily add more. The benefit is it's more efficient. Geeessee... Quote Link to comment Share on other sites More sharing options...
3XTR3M3 Posted August 6, 2007 Share Posted August 6, 2007 Re: [Mccode][Free] House Pictures where do i add the pics toxication because it just says your house is a grave yard no pics Quote Link to comment Share on other sites More sharing options...
Ishy Posted August 9, 2007 Author Share Posted August 9, 2007 Re: [Mccode][Free] House Pictures I think you should take of the V1 Code and Game Owner bit... :-) If you don't know how you ain't one of them. :| You should of put the SQL query in. When you have done that go to phpMyAdmin houses/Browse/choose your house you want the picture to go in... And then put in the URL of the picture e.g. http://www.gameurl.com/picture.jpg And it should work :-P Quote Link to comment Share on other sites More sharing options...
YoungGold Posted August 9, 2007 Share Posted August 9, 2007 Re: [Mccode][Free] House Pictures none of this works for me its annoying has nayone got anything that will show image in index.php that will work i dont care how long the code is i jst want it to work. Quote Link to comment Share on other sites More sharing options...
Ishy Posted August 9, 2007 Author Share Posted August 9, 2007 Re: [Mccode][Free] House Pictures Works for me :-D Quote Link to comment Share on other sites More sharing options...
dementor Posted October 8, 2007 Share Posted October 8, 2007 Re: [Mccode][Free] House Pictures lol the sql is wrong Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted October 8, 2007 Share Posted October 8, 2007 Re: [Mccode][Free] House Pictures This should work ALTER TABLE `houses` ADD `hPIC` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '0' Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted October 8, 2007 Share Posted October 8, 2007 Re: [Mccode][Free] House Pictures i haven,t tested this yet but think it should work it just so u can add the house pic from the admin panel when you insert a house 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...
dementor Posted October 8, 2007 Share Posted October 8, 2007 Re: [Mccode][Free] House Pictures lol mysquel still wrong if u want it to take urls and not uploaded pics :-D Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 9, 2007 Share Posted October 9, 2007 Re: [Mccode][Free] House Pictures has anyone got the sql then so u can put images Quote Link to comment Share on other sites More sharing options...
gear4life Posted October 9, 2007 Share Posted October 9, 2007 Re: [Mccode][Free] House Pictures any1 gt it for v2 Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 9, 2007 Share Posted October 9, 2007 Re: [Mccode][Free] House Pictures IT IS V2 Quote Link to comment Share on other sites More sharing options...
welard Posted October 14, 2007 Share Posted October 14, 2007 Re: [Mccode][Free] House Pictures i haven,t tested this yet but think it should work it just so u can add the house pic from the admin panel when you insert a house You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i have just tryed this and it does not insert a new houes at all even with out a pic Quote Link to comment Share on other sites More sharing options...
Klikoka Posted October 17, 2007 Share Posted October 17, 2007 Re: [Mccode][Free] House Pictures Nice Little Addon Quote Link to comment Share on other sites More sharing options...
Satans_Pimp Posted October 23, 2007 Share Posted October 23, 2007 Re: [Mccode][Free] House Pictures so did this work for any one¿¿¿¿ :? Quote Link to comment Share on other sites More sharing options...
Yuri_orlov Posted October 23, 2007 Share Posted October 23, 2007 Re: [Mccode][Free] House Pictures just add a tinytext field into the houses table called hIMAGE then when you select the house on the index page just use ; you can manually edit your houses table to just include the pic name took me about 5 minutes to do....and no if statements, and no extra queries 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.