Waffle Posted December 2, 2008 Posted December 2, 2008 Not sure if this has been done before,so yeah, sorry in advance if it has. But, after looking through most of the mods section, and searching for anything like it I found nothing.. Anyhoo, quick small mod to add images to houses. No SQL, yey! One page and a small addon for index.php and smenu.php First off copy and paste this and save it as house_app.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then add this under the first table in index.php, or any where you want I guess.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally, the link for smenu.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. What it does: All this app/mod does it generate a md5 hash of the house name in index.php, and then outputs it as part of the filename. Then, all you do is get whatever image you want for the house and lookup the house name and assoctiated hash in house_app.php and save the image as that. Not the prettiest of solutions, but works fine for me. Small note, the default directory for the house images, is 'houses', so if you want to use a different directory you'll need to change this line in index.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Changing the "houses" line.. Quote
SMOKEY_TEK Posted July 11, 2009 Posted July 11, 2009 Re: [mccode v2] House Images Doesn't show any image.... All it shows is this on index.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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.