Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: XDirectory Problem - address fields don't add to dbase
by toddherrold on 2004/7/7 0:37:49

thanks again to builderb! the submit and modlink.php fixes worked like a charm!

Only one outstanding issue on my implementation of xdir: hitting the email button drawing contact.php results in a blank page. Debug gives only the following message:

Notice [PHP]: Undefined variable: lid in file modules/xdirectory/contact.php line 50

any ideas out there would be much appreciated.

cheers.
Re: XDirectory Problem - address fields don't add to dbase
by builderb on 2004/7/6 4:17:30

you will also need to make this change to modlink.php.

@ line 64 replace the following:

$url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]);
$logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]);
$cid = intval($HTTP_POST_VARS["cid"]);
$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
$description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]);


With this code:

$url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]);
$logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]);
$cid = intval($HTTP_POST_VARS["cid"]);
$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
$description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]);
$address = $myts->makeTboxData4Save($HTTP_POST_VARS["address"]);
$address2 = $myts->makeTboxData4Save($HTTP_POST_VARS["address2"]);
$city = $myts->makeTboxData4Save($HTTP_POST_VARS["city"]);
$state = $myts->makeTboxData4Save($HTTP_POST_VARS["state"]);
$zip = $myts->makeTboxData4Save($HTTP_POST_VARS["zip"]);
$country = $myts->makeTboxData4Save($HTTP_POST_VARS["country"]);
$phone = $myts->makeTboxData4Save($HTTP_POST_VARS["phone"]);
$fax = $myts->makeTboxData4Save($HTTP_POST_VARS["fax"]);
$email = $myts->makeTboxData4Save($HTTP_POST_VARS["email"]);
$url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]);
$premium = $myts->makeTboxData4Save($HTTP_POST_VARS["premium"]);
Re: XDirectory Problem - address fields don't add to dbase
by builderb on 2004/7/6 4:14:07

Yes, Here is the fix for the submit.php file.

@ line 79 replace the following code:

$url = $myts->makeTboxData4Save($url);
$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
$description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]);
$date = time();

with this:

$url = $myts->makeTboxData4Save($url);
$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
$address = $myts->makeTboxData4Save($HTTP_POST_VARS["address"]);
$address2 = $myts->makeTboxData4Save($HTTP_POST_VARS["address2"]);
$city = $myts->makeTboxData4Save($HTTP_POST_VARS["city"]);
$state = $myts->makeTboxData4Save($HTTP_POST_VARS["state"]);
$zip = $myts->makeTboxData4Save($HTTP_POST_VARS["zip"]);
$country = $myts->makeTboxData4Save($HTTP_POST_VARS["country"]);
$phone = $myts->makeTboxData4Save($HTTP_POST_VARS["phone"]);
$fax = $myts->makeTboxData4Save($HTTP_POST_VARS["fax"]);
$email = $myts->makeTboxData4Save($HTTP_POST_VARS["email"]);
$url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]);
$premium = $myts->makeTboxData4Save($HTTP_POST_VARS["premium"]);
$description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]);
$date = time();


Re: XDirectory Problem - address fields don't add to dbase
by rserrano on 2004/7/5 17:15:31

Is there anyway you can share te code I am having the same problem with Xdirectory.

thanks

Robert
Re: XDirectory Problem - address fields don't add to dbase
by toddherrold on 2004/7/3 13:09:26

Thanks to builderb, this issue has been resolved!

Who's Online

193 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits