DigiOz Programming Forum


Feel free to post any Programming related questions you may have here

Add URL?

Please Post Questions for All Other DigiOz Scripts Here.

Moderator: Pete

Add URL?

Postby Kurious-Kitty » 05/11/2006 01:16

Is there a way I can had a part where people can either post their email or URL if they have one?
Kurious-Kitty
 
Posts: 3
Joined: 05/11/2006 01:15

Postby Pete » 05/11/2006 09:21

You could. All you would have to do is to make the email field an optional field and change its label from "Your Email" to "Email / Webpage". So to do it you:

1- Open the file "config.php", and change the following line:

Code: Select all
$email_optional     = 0;      // Set "1" for optional email, "0" to make it required


To This:

Code: Select all
$email_optional     = 1;      // Set "1" for optional email, "0" to make it required


2- Open the file "language/language.php", and change the following:

Code: Select all
$youremailtxt      = "Your Email:";


To This:

Code: Select all
$youremailtxt      = "Email / Website:";


That should do the trick for you. :)
DigiOz Webmaster
http://www.digioz.com
User avatar
Pete
Site Admin
 
Posts: 518
Joined: 09/29/2005 14:48
Location: Chicago, IL

Postby Kurious-Kitty » 05/14/2006 03:39

That is what I thought, but it doesn't work :(

"Guestbook Entry Result:
Invalid Email. Entry Not Processed!"

The coding doesn't "allow" me to post ANYTHING in that email box if it is not an email addy (ie: blah @ you . com)
Kurious-Kitty
 
Posts: 3
Joined: 05/11/2006 01:15

Postby Pete » 05/14/2006 09:10

Oh.... lol .... you are right. I forgot about the character matching that is done on that field. We are considering adding some optional fields to the guestbook for the new release. Hopefully that will take care of your issue. Sorry.
DigiOz Webmaster
http://www.digioz.com
User avatar
Pete
Site Admin
 
Posts: 518
Joined: 09/29/2005 14:48
Location: Chicago, IL

Postby Kurious-Kitty » 05/17/2006 06:20

*hehe* thanks anywho!
Kurious-Kitty
 
Posts: 3
Joined: 05/11/2006 01:15


Return to PHP

Who is online

Users browsing this forum: No registered users and 0 guests

cron