Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

[align=center]banner.jpg[/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

viewhouse.jpg

------------------------------------------------------------------------------------------------------

viewhouse0.jpg

 

* The pictures where found from google - They do not belong to me

 

Any queries/help please reply.

 

Thanks

-sniko

Edited by sniko
Posted

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:

Posted

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

Posted

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.

Posted

$_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.

Posted

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)

Posted

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.

Posted

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

Posted
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:

Posted

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.

Posted
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....

Posted

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

Posted

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.

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...