Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help needed on modify some asp coding
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help needed on modify some asp coding

 Post Reply Post Reply
Author
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Topic: Help needed on modify some asp coding
    Posted: 05 August 2004 at 6:56pm
I bought this matchmaking software online. Unfortunately, just like many software company out there, after you buy the software, the so-called "1 year free support" is you cant not find the company no more.
I'm really upset with this company, but there is nothing I can do about it.  My matchmaking community is free, just as my serving the community and for fun.
 
This software is very simple, and asp based software with sql database.  What I need to do is just add the image upload field to the register form and making it as "required" field at register. Right now, the setup is after you register, then you log in and fill all the information and upload the image. A lot of my members choose not to upload image and enter much info of themselves which I find very pointless of them even sign up on my site. So, I'm trying to force them to at least upload an image and enter some basic profile.  If anyone is willing to help me, please pm me. 
 
I would be very appreciated of your any help!!


Edited by Lucent
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 05 August 2004 at 9:24pm

You'd also have to let them know before registering that an image is needed and how big it can/can't be - many of us don't have an image of ourselves lying around . Also would need a routine to delete images if they cancel/fail the registration.

I'm not trying to be difficult, but the software probably has the process in place that allows the image to be uploaded after registration for a reason.

If you change the process, you have to think out the consequences. Coding the "Happy Path" when everything works as it should is usually pretty easy. Coding for when things don't work as planned is harder. You have to define the specifications for how it can fail and how to handle different failures.



Edited by dpyers

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2004 at 10:20am

Well, I guess it isn't easy as I thought. I was thinking to creat a register page something like this... where basic information are required.

http://www.vanitydate.com/register.php

 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2004 at 10:58am

It's not that hard, but you do need to think about it a little more first. The basic things you need to answer are:

Where must the picture be located:

  • Does it have to be uploaded, or can they just provide a link to a picture that's stored on another web server?

Size of the Picture:
I can probably come up with a picture that is 5 Kb or one that is 5 Mb. One that is 64 x 64 pixels or one that is 640 x 640 pixels.

  • You need to look at where it will be displayed and what dimensions would look good on that page at a couple of different screen resolutions - say at 1024x768 and 800x600.
  • You need to think about the physical space you have for storing the pictures and the bandwidth you'd use to display them and weigh them against the legibility of the photo.

Handling the picture and the application:

  • What do you need to do if the application uploads ok and passes validation, but the picture doesn't upload.
  • What do you need to do if the picture up loads but the app doesn't or it fails validation?

Bad Pictures:

  • Some people will send pictures of Brad Pitt, their pets, or their favorite porn shot. Do you delete the picture and the app, or just the picture and give them a time limit to supply a new one?
  • Do you need to approve pictures (and possibly applications) before making them available to the public?
  • Will people be able to supply a better pic later? - do you have to approve it?

Deleting Applications/Registrations:

  • When a persons info is deleted, the picture should be deleted as well.

Some/Many of these items may be covered by the application you're using. You need to figure out what is and what isn't covered.


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2004 at 12:08pm

There is already a place set for uploaded image

resizing feature also ready included in the software.

Approve of the image is also included in the software.

I'm just wondering how I can have my new members register with an image. I'm not really good with asp, most I can do is modify some little coding her and there.



Edited by Lucent
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2004 at 12:38pm

The example you gave uses javascript to validate the fields. Basically, if your app uses javascript for validation, you'd check the field for being empty and dispaly an alert box.

If your form uses server-side asp for validation however, you have to look at the code of whatever form you use, in the <form tag you'll see an action="somepage.asp" field. somepage.asp is the formhandler where your form is validated and processed.

In somepage.asp, you need to check if the field containing the name of the image is blank - request.form("ImageNameField") = "" -  and if it is, do whatenver error routine is in somepage.asp with whatever error message tou need.



Edited by dpyers

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.