Skip to Content Skip to Menu

image field type plugin

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
15 years 7 months ago #95188 by kmchen
image field type plugin was created by kmchen
Hi

I need image field type plugin where users can select an image between several, like a text select list but with images. Is there yet something like that or do I have do make it ?

Please Log in or Create an account to join the conversation.

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
15 years 7 months ago #95758 by kmchen
Replied by kmchen on topic Re:image field type plugin
Seems ther is nothing done about that so I'm developping it.

The xml definition of the field is:
[code:1] <fieldtypes>
<field type="image_select_field" label="image select field">
<database version="1">
<table name="#__comprofiler" class="moscomprofiler" maintable="true" strict="false" drop="never" shared="true">
<columns>
<column name="" nametype="namesuffix" type="sql:varchar(255)" null="true" default="" />
</columns>
</table>
</database>
<params>
<fieldset label="image select field" description="">
<param name="isf_folder" type="text" default="" label="Folder" description="Folder where images are stored" />
<param name="fieldValidateForbiddenList_register" type="text" default="http:,https:,mailto:,//.,<a,</a>;,&#" label="Forbidden words at registration" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field for registration. Use comma twice (,,) to add comma as bad character." />
<param name="fieldValidateForbiddenList_profile" type="text" default="" label="Forbidden words in user profile edits" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field when user updates his profile in profile edits. Use comma twice (,,) to add comma as bad character." />
</fieldset>
</params>
</field>
</fieldtypes>
[/code:1]

Seems to work fine when I include such a field in a backoffice declared tab but when I try to include that field type in a new plugin's tab the field parameters don't appear in the field's backoffice.
Here is the tab declaration in a plugin developped for the purpose:
[code:1] <tab name="Profile Image 1" description="This tab defines profile image 1 parameters" class="get_profile_image1_Tab" fields="1" position="cb_tabmain" displaytype="tab">
<params>
<param name="pi1TabImagesLocation" type="text" label="_UE_PI_IMG_LOCATION" default="images/comprofiler/profile_image" description="path (relative to Joomla install root location) to the directory containing images" />
</params>
<fields>
<field type="image_select_field" title="Image select field" name="cb_profile_img1" description="" registration="0" readonly="0" profile="1">
<params>
<param name="isf_folder" type="text" default="" label="Folder" description="Folder where images are stored" />
<param name="fieldValidateForbiddenList_register" type="text" default="http:,https:,mailto:,//.,<a,</a>;,&#" label="Forbidden words at registration" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field for registration. Use comma twice (,,) to add comma as bad character." />
<param name="fieldValidateForbiddenList_profile" type="text" default="" label="Forbidden words in user profile edits" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field when user updates his profile in profile edits. Use comma twice (,,) to add comma as bad character." />
</params>
</field>
</fields>
</tab>
[/code:1]

How to includes field type parameters (here isf_folder) in a tab plugin declaration ?

How to access field's methods since tab's class, is there any method getFields like getParams ?

Is there any docs explaining that (nothing found in CBRC2b10-bb_API nor CB_API)

Post edited by: kmchen, at: 2009/04/23 13:02

Please Log in or Create an account to join the conversation.

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
15 years 7 months ago #96354 by kmchen
Replied by kmchen on topic Re:image field type plugin
that topic didn't receive any answer since 7 days. Is somebody supporting plugin developpement somewhere ?:blush:

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
15 years 6 months ago #96453 by beat
Replied by beat on topic Re:image field type plugin
sorry for not being able to help during these busy times, hope time will loook better in a few weeks.

Hope some community member will come in and help.

Beat - Community Builder Team Member

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

Please Log in or Create an account to join the conversation.

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
15 years 6 months ago #96926 by kmchen
Replied by kmchen on topic Re:image field type plugin
It's a shame you can't give me these informations about

How to includes field type parameters (here isf_folder) in a tab plugin declaration ?

How to access field's methods since tab's class, is there any method getFields like getParams ?


cause I would have like to implement this properly for the community to be able to re-use it. But the customer for who I'm doing that plugin starts to put pressure on results ant that will lead me to do it in wild manner. :(

Please Log in or Create an account to join the conversation.

  • Rapunzl
  • Rapunzl
  • OFFLINE
  • Posts: 149
  • Thanks: 7
  • Karma: 108
15 years 6 months ago #96949 by Rapunzl
Replied by Rapunzl on topic Re:image field type plugin
Have you tried studying the existing plugins for CB 1.2? I'm not a coder yet, but that should help you.

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

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum