Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 41

Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 170
a few questions about custom fields - Macrotone Forum

Unknown Error 8192: KunenaControllerApplicationDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in libraries/kunena/controller/application/display.php on line 21


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/route/route.php on line 437


Unknown Error 8192: ComponentKunenaControllerWidgetAnnouncementDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/widget/announcement/display.php on line 18


Unknown Error 8192: ComponentKunenaControllerTopicItemDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/display.php on line 25


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/forum/category/category.php on line 415


Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Date/Date.php on line 112

Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/bbcode/bbcode.php on line 107

a few questions about custom fields


Unknown Error 8192: ComponentKunenaControllerTopicItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/actions/display.php on line 23


Unknown Error 8192: ComponentKunenaControllerTopicPollDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/poll/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerTopicItemMessageDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/message/display.php on line 23

9 years 6 months ago #1 by rapasae
Hello.

Is there any way to create a custom field of type "checkbox" so you can add for example, an acceptance of "TOS" (terms of service)

Another doubt.
Is it possible to delete or change the order of the predefined fields when using a form with custom fields, so that such attachments are not in last place or the summary is not first ?.

Thanks a lot for your great component and support

Unknown Error 8192: ComponentKunenaControllerMessageItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/message/item/actions/display.php on line 25

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


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070

9 years 6 months ago #2 by chrisc
I was working on adding 'checkbox' to the type of custom fields, but the main problem is that Joomla doesn't have it as one of the JHtml types so it is necessary to cludge the output to get what we need. It was starting to get very messy so the change was put on the back burner whilst I thought more on the implementation. [The code is still present just not invoked.) The best solution I can suggest is to use a radio button instead, even thought it is not ideal (or quite the same thing).

The order of the custom fields is controlled by the custom fields 'ordering' column, but the actual positioning of all of the fields in the form and in the display is governed by the actual template fields. There is no easy way to change their order other than by changing the template fields themselves.

If you are interested in going down this route the best way is to create template overrides for the releveant templates and make your changes there. This has two advantages, the first being that any changes you make are not lost when the component is updated. The second is that you can try out your changes easily and if you messy it up you can just copy over the orginal template fields and start again.

The only disadvantage is that you would need to relook at your changes when an update is installed to ensure that you can implement any of the changes you want for the new release.

There are several places on the Joomla site and elsewhere that descrbe how easy it is to create template overrides so I will not repeat them here. Any problems please ask.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

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

9 years 5 months ago - 9 years 5 months ago #3 by rapasae
Thank you for your advice. I will try something like you have described.

I think I found a bug/problem or perhaps i don't understand this module enough.

I have several projects with custom fields. When i want to create a new issue, custom fields for each project are displayed correctly using the project dropdown list in the form to select the project. But if I create a menu to show the form with only one project, it always show custom fields belonging to the default project.

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

9 years 5 months ago - 9 years 5 months ago #4 by chrisc

Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263


Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263


Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263

I will try and reproduce the problem and work on a fix. Shouldn't be too difficult. May not be today though. Thank you for reporting it.

Update: yes I can confirm its a 'feature'. It should be changed. Watch this space...

Update 2: Let us try making the following chnage:

In the file site/component/com_issuetracker/views/form/view.html.php after line 366 (just before the $def_type is obtained from the parameters), add the following code:
      // Get project from menu item if only one possible.
       $menu      = $app->getMenu()->getActive();
       if ($menu) {
         $projects =  $this->parameters->get('projects');
         $cnt = count($projects);
         if ( $cnt == 1 && $projects[0] != 0 )
            $def_proj = $projects[0];
      }
:

Also change the line around (new) 396 from:
      if (empty($this->item->id) ) {
to:
      if (empty($this->item->id) && empty($this->item->related_project_id) ) {

The last change is just 'belt and braces' and is probably not required but it does no harm.

Let me know it it works for you, my tests seem to be fine.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control
The following user(s) said Thank You: rapasae

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

9 years 5 months ago #5 by rapasae

chrisc wrote: Let me know it it works for you, my tests seem to be fine.


Excellent! It works for me too.

Thanks a lot!
The following user(s) said Thank You: chrisc

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

9 years 5 months ago #6 by chrisc
I have added the fix for the next version.

Now to revisit the checkbox and see if I can resolve the problem I was seeing. I suspect I may end up having to code the html directly.

I will not mark the thread as resolved until I have get the checkboxes option in place.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

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

Time to create page: 0.166 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries