Uridium Posted June 24, 2010 Author Share Posted June 24, 2010 try changing <center>Property:</center> {$p['hNAME']} <center></center>"; to <center>Property:</center> {$ir['hNAME']} <center></center>"; Quote Link to comment Share on other sites More sharing options...
endo Posted July 10, 2010 Share Posted July 10, 2010 Can be shortened Can be safely shortened without using the database and with a lot less coding. Start off by stripping the house name from all spaces, decapitalize (if thats even a word? but im sure you know what i mean), and set the link to add .jpg or gif or whatever the file type that you use is :) Its about 5 lines of code and uses no database querys. And remember it needs to be within the while() statement otherwise it will not select each house. Quote Link to comment Share on other sites More sharing options...
Equinox Posted July 10, 2010 Share Posted July 10, 2010 Can be safely shortened without using the database and with a lot less coding. Start off by stripping the house name from all spaces, decapitalize (if thats even a word? but im sure you know what i mean), and set the link to add .jpg or gif or whatever the file type that you use is Its about 5 lines of code and uses no database querys. And remember it needs to be within the while() statement otherwise it will not select each house. So you're saying this can be done without the database? And by 'decapitalize' do you mean lower case letters? If so, use the function 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...
Mystical Posted February 17, 2011 Share Posted February 17, 2011 Question about this mod Love the mod mod but..... Is there a way to make the house pic show up under the blue text that says default house. I have tried it a million different ways and it just wont show up. I suck at coding as I am just learning.....just so you know. One slight problem also..... I enter 5000 for the price of the trailer and it shows up 105,000...same with the Country Shack? How do I fix this? Image included. Quote Link to comment Share on other sites More sharing options...
LegendFTW Posted February 17, 2011 Share Posted February 17, 2011 i had the same problem Mystical you have probably just got the house prices wrong just replace it with this: \${$r['hPRICE']} Quote Link to comment Share on other sites More sharing options...
Equinox Posted February 17, 2011 Share Posted February 17, 2011 Replace it with $".number_format($r['hPRICE'])." Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted February 17, 2011 Share Posted February 17, 2011 @mystical you would add the img tag under where it says "Your current property: blah" Quote Link to comment Share on other sites More sharing options...
Mystical Posted February 18, 2011 Share Posted February 18, 2011 @mystical you would add the img tag under where it says "Your current property: blah" Nope. I tried that already but it just shows my index of pics but no pic. Thanks for trying to help me I appreciate it. I tried everything I can think of and it still wont show. Quote Link to comment Share on other sites More sharing options...
Mystical Posted February 18, 2011 Share Posted February 18, 2011 Replace it with $".number_format($r['hPRICE'])." Replace it with $".number_format($r['hPRICE'])."Worked great thanks a bunch! :D Quote Link to comment Share on other sites More sharing options...
Mystical Posted February 18, 2011 Share Posted February 18, 2011 i had the same problem Mystical you have probably just got the house prices wrong just replace it with this: \${$r['hPRICE']} i had the same problem Mystical you have probably just got the house prices wrong just replace it with this: \${$r['hPRICE']} Thanks for the tip! Appreciated. :D Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted February 18, 2011 Share Posted February 18, 2011 Do you have the pictures in a folder if not and they are in the root take off hsepics/ Or add what folder you have placed them in, think its your path why the picture dont show up. Quote Link to comment Share on other sites More sharing options...
Mystical Posted February 18, 2011 Share Posted February 18, 2011 Do you have the pictures in a folder if not and they are in the root take off hsepics/ Or add what folder you have placed them in, think its your path why the picture dont show up. Do you have the pictures in a folder if not and they are in the root take off hsepics/ Or add what folder you have placed them in, think its your path why the picture dont show up. The images are in the folder hsepics and it still wont work. It wont work no matter what I do. Weird. They do show as you can see..... Just not where I want it to. The pic even shows up in the index page where I put it. No clue why it wont show up. Thanks for trying to solve this for me. Quote Link to comment Share on other sites More sharing options...
Uridium Posted February 19, 2011 Author Share Posted February 19, 2011 Mystical if it shows in index page as a single image it will do on the page you want it to show not all placements are the same scripting so needs editing to make it work Quote Link to comment Share on other sites More sharing options...
fuzzyDCR Posted March 3, 2011 Share Posted March 3, 2011 I have everything working except my darn estate.php. I have spent days trying to figure this out! anyone have a good working estate.php? Quote Link to comment Share on other sites More sharing options...
daftrude Posted April 24, 2011 Share Posted April 24, 2011 its because its code from 2008 Quote Link to comment Share on other sites More sharing options...
Uridium Posted April 26, 2011 Author Share Posted April 26, 2011 to add the image you need to follow the correct $ path on the estate.php in this case the path would be $np['hsepics'] or $np['hsepic'] this will be the same in other scripts make sure you take note of the $ path so for example if theres a call for select * from houses and the $ path is say $house then to add an image wuld be $house['hsepics'] or $house['hsepic'] 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.