How to make Ads custom fields to accept text?

 

custom fields is accept only number... How to make Ads custom fields accept text?

I found two other requests on this forum but never an answer .. I'll be more lucky?

http://www.boonex.com/forums/topic/Ads-Custom-Fields.htm

http://www.boonex.com/forums/topic/How-to-make-Ads-custom-fields-accept-text-.htm

 

in more i fond a bug on ads module when you go to edit an ad is gets to modify also the second costum field even if it you not had set for this category the second costum field.

 
Quote · 25 Mar 2012

are you talking about the form in admin panel?

so much to do....
Quote · 25 Mar 2012

I am attaching two pictures to see the problem..

thanks for your help

ADDtest.jpg · 149.6K · 196 views
EDITtest.jpg · 155.6K · 193 views
Quote · 25 Mar 2012

Those two custom fields are normally a price, year or an age depending on which catagory you select. All of which are numbers. So i don't get the reason why you would need text.

Anyhow, to remove the number restriction edit modules\boonex\ads\classes\BxAdsModule.php

At about line 1025 look for this.

$sCustomFieldValue1 = floatval(bx_get('CustomFieldValue1'));
$sCustomFieldValue2 = floatval(bx_get('CustomFieldValue2'));

Change to this.

$sCustomFieldValue1 = bx_get('CustomFieldValue1');
$sCustomFieldValue2 = bx_get('CustomFieldValue2');



https://www.deanbassett.com
Quote · 25 Mar 2012

Is there anyway to add further custom value fields to the ads module so as to have a list of things listed on the ad? rather than just the

Country

Location

Price

Telphone etc?

 

Thanks

Quote · 13 Jun 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.