| 
Welcome, Guest

TOPIC: Decimal Fieldtype

Re:Decimal Fieldtype 4 years 1 month ago #92944

  • Rapunzl
  • Rapunzl
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 3297
  • Karma: 107
When you create a new integer field type, there is an "Authorized input" parameter to limit to only a specific perl expression. No need for additional plugins.
Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction
The administrator has disabled public write access.

Re:Decimal Fieldtype 4 years 1 month ago #93134

  • softforge
  • softforge
  • OFFLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 135
  • Karma: 10
OK, I have created an installable decimal field type plugin that creates a double MySQL data type. It has a maximum and minimum limit like the integer field type and another parameter that allows you do define how many decimal places you can have.

It seems to be working very well and I am happy to upload it to the forum if anyone is interested. Or better I could add it to the directory if I can be granted access. ;)
If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory...
The administrator has disabled public write access.

Re:Decimal Fieldtype 4 years 1 month ago #93234

  • softforge
  • softforge
  • OFFLINE
  • Expert Boarder
    Expert Boarder
  • Posts: 135
  • Karma: 10
I have submitted it to the directory and you can download it here:

http://www.joomlapolis.com/component/option,com_mtree/task,viewlink/link_id,391/Itemid,55/

Feel free to post comments or suggestions.
If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory...
The administrator has disabled public write access.

Re:Decimal Fieldtype 3 years 5 months ago #119734

  • mactic
  • mactic
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
Nice...

... but when I use it as a search-field I get this error:
[code:1]Notice: cbSqlQueryPart::_sqlQuoteValueType: ERROR_UNKNOWN_TYPE: const:double in /home/xxxxxxxx/administrator/components/com_comprofiler/plugin.class.php on line 2441[/code:1]

Do I have to change plugin.class.php ?
The administrator has disabled public write access.

Re:Decimal Fieldtype 3 years 4 months ago #119840

  • beat
  • beat
  • ONLINE
  • Administrator
    Administrator
  • Posts: 6983
  • Karma: 335
That's a small bug in this plugin:

if you use const:float type instead of const:double in your plugin for the searches it should work.

Database can still be of type double.
Beat - Community Builder Team Member
If you use Community Builder, please take a minute to post a rating and a review at the Joomla! Extensions Directory. :cheer:
Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The administrator has disabled public write access.

Re:Decimal Fieldtype 1 year 1 month ago #196432

  • Pilly57
  • Pilly57
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
But you aren't going to tell anyone how to access it, are you Nick!
The administrator has disabled public write access.
Time to create page: 0.217 seconds