sniko Posted March 3, 2011 Posted March 3, 2011 (edited) [align=center][/align] Within the .zip file included, you will receive the modified estate agent file and the same instructions as below. DOWNLOAD .ZIP HERE Instructions You need to create a new directory called housepic You need to upload PNG versions of the house picture under the name of it in the database Some Screenshots ------------------------------------------------------------------------------------------------------ * The pictures where found from google - They do not belong to me Any queries/help please reply. Thanks -sniko Edited May 8, 2011 by sniko Quote
danger boy Posted March 3, 2011 Posted March 3, 2011 Can you give a brief explanation on how the estate agent has been updated? Thanks in advance. Quote
Paddy Posted March 3, 2011 Posted March 3, 2011 Thanks sniko for the update, im posting it hereunder as i think most would like to see it here before downloading, if you don't mind! estateAgent.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Instructions You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. cheers :thumbup: Quote
Zan Posted March 3, 2011 Posted March 3, 2011 hy Well coded sniko,i like it but i dont think theres a buy link :\ Quote
Maniak Posted March 3, 2011 Posted March 3, 2011 Zan, line 73: echo " <font size='34pt'>» Purchase"; Quote
sniko Posted March 3, 2011 Author Posted March 3, 2011 Hey, Thanks for the responses @Danger Boy Basically, as you can see from the screenshots, that is the viewHouse feature. Where you can view the house (picture) and some statistics. @The Spirit Thank you very much @Paddy Ah, yea. Thanks for posting it up as well. I included a permalink to your reply, so people can go straight to it :) @Zan The link only shows if you have enough money and you aren't going down the house chain @Maniak Thank you. -sniko Quote
danger boy Posted March 4, 2011 Posted March 4, 2011 I suggest adding a staff function to add house pics via staff panel. Sorry if it has already been done :P Quote
Djkanna Posted March 4, 2011 Posted March 4, 2011 I like but; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Will not work as I presume you intended it to do so. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Paul Evans Posted March 4, 2011 Posted March 4, 2011 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Wouldn't this be better? Quote
Equinox Posted March 4, 2011 Posted March 4, 2011 $_GET['id'] = (isset($_GET['id']) && ctype_digit($_GET['id'])) ? $_GET['id'] : abs(intval($_GET['id'])); Instead of returning FALSE or empty, why not clean the number then? Either way, ctype_digit() will do all the checks you need here. If 'id' is set and is a number, we leave it otherwise we clean it. FALSE or empty will also work fine, but then no number is being sent. Quote
SlimyStud Posted March 4, 2011 Posted March 4, 2011 Could just do You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Nowadays with latest php version ;) Quote
Haunted Dawg Posted March 4, 2011 Posted March 4, 2011 Could just do You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. >>>>> Nowadays with latest php version ;) <<<<< You see what you're saying there? :thumbdown: Quote
Paul Evans Posted March 4, 2011 Posted March 4, 2011 all good concepts although i do prefer my version. 1 issue with your stud is that i don't even think that would work, EQ i do like yours but in the past when using ctype_digit i have noticed it doesn't always work which is why i recently switched my concepts of filtering digits, i leave it empty for filtering so i can easily direct the user to any issue with what they have entered (i know you could also add if (empty) into that so ill have to say nice work) Quote
SlimyStud Posted March 4, 2011 Posted March 4, 2011 Yes I know exactly what I'm saying. So I'll say it again...You can use what i posted if you have the latest PHP version. Soo, the question to you is, are you going to post another pointless post that has no actual meaning to the world? @Paul - It does work, it's worked for nearly a year now. Quote
Equinox Posted March 4, 2011 Posted March 4, 2011 Stud's version will work with the newest PHP version. I have no idea what Haunted is going on about. ctype_digit() will not allow letters to be passed, however is_numeric() will, also is_numeric() allows decimal points, where as ctype_digit() does not Quote
Haunted Dawg Posted March 4, 2011 Posted March 4, 2011 Stud's version will work with the newest PHP version. I have no idea what Haunted is going on about. ctype_digit() will not allow letters to be passed, however is_numeric() will, also is_numeric() allows decimal points, where as ctype_digit() does not There you saying it also. Need i say more? :sleeping: Quote
Djkanna Posted March 4, 2011 Posted March 4, 2011 I wouldn't use ctype_digit either. I cannot find a practical use for below, however if it should happen to be this way ctype_digit() will fail in every sense. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Equinox Posted March 4, 2011 Posted March 4, 2011 Stud's version will work with the newest PHP version. I have no idea what Haunted is going on about. ctype_digit() will not allow letters to be passed, however is_numeric() will, also is_numeric() allows decimal points, where as ctype_digit() does not There you saying it also. Need i say more? :sleeping: WTF are you going on about? You've always been stupid, and always will be. Why do you even come back here? Go work on your buggy engine. @Djkanna - I used it here because it's only being used to verify the house ID, nothing else.... Quote
Djkanna Posted March 4, 2011 Posted March 4, 2011 Yes I understand that, but a simple $_GET['id']+=0; will do then onto checking if the house exists. However if need be all these function will work, except the way Sniko did his. I also have no clue what HD is on about but he's persistent on the phrase 'newest PHP version' so maybe that's his problem :P Quote
Equinox Posted March 4, 2011 Posted March 4, 2011 Yes, maybe he felt he needed something intelligent to say, so he's pointing out that Stud said his version will work with the newest PHP version, although Stud clarified this himself. So, just to make sure HD knows; Yes, we are aware Stud's method will work with the newest PHP version - as said by Stud himself, if anyone managed to miss that. Not everyone works with old, out-dated versions of PHP and not everyone here is McCode orientated. Quote
Paul Evans Posted March 4, 2011 Posted March 4, 2011 lol well i worked with php nuke before mcc :( You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. So they edited ternary in the new php i never actually knew that thanks stud. Quote
Djkanna Posted March 4, 2011 Posted March 4, 2011 Okay we're kinda steering off-topic. I provided the problem, you provided a solution, problem solved. Nice mod Sniko. Edit: May I say, MWG's hosting provider is beginning to really get on my m00bs. 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.