Search found 17 matches

by ShadowKatmandu
Sep 18, 2019 8:32 am
Forum: General Discussion
Topic: Custom Functions Enumeration alternative?
Replies: 2
Views: 868

Re: Custom Functions Enumeration alternative?

Thank you. I don't recall where I read that; it was a LONG time ago. I likely misread "config" for "core" and got confused after that.
by ShadowKatmandu
Sep 17, 2019 10:10 am
Forum: General Discussion
Topic: Custom Functions Enumeration alternative?
Replies: 2
Views: 868

Custom Functions Enumeration alternative?

Following the documentation, I created 2 functions in core/custom_functions_api.php for enumerating 2 custom fields. However, whenever I do an upgrade to MantisBT, this file gets overwritten and I have to re-add my custom functions. Is there a way to add custom enumeration functions in a plugin that...
by ShadowKatmandu
Sep 05, 2019 2:25 pm
Forum: General Discussion
Topic: Case insensitivity
Replies: 2
Views: 944

Re: Case insensitivity

I understand the many ways to do this in a SQL query. That was not my question at all. To be specific: On the view issues page, there is a search box with an Apply Filter button next to it. This is a CASE SENSITIVE search. I gave technical details as to why this is so. There is functionality in Mant...
by ShadowKatmandu
Sep 04, 2019 10:41 am
Forum: General Discussion
Topic: Case insensitivity
Replies: 2
Views: 944

Case insensitivity

We are using PG SQL for our backend, which is case-sensitive on queries. There is logic built into Mantis to do case insensitive queries for this; however, it requires a parameter be passed to the sql_like function to force it. There's a separate function, sql_ilike, to do this, but there is no circ...
by ShadowKatmandu
Dec 14, 2017 4:33 pm
Forum: Help
Topic: PHP Fatal error: Call to undefined function html_page_top()
Replies: 6
Views: 2889

Re: PHP Fatal error: Call to undefined function html_page_t

Thank you!

I had already done register and hooks (the plugin wouldn't even try to work without them), but was unaware of the layout functions. They do exactly what I need!
by ShadowKatmandu
Dec 14, 2017 11:41 am
Forum: Help
Topic: PHP Fatal error: Call to undefined function html_page_top()
Replies: 6
Views: 2889

Re: PHP Fatal error: Call to undefined function html_page_t

I have added a menu item which links to https://www.domain.com/plugin.php?page=myplugin/plugin. This is not an event-based plugin.
by ShadowKatmandu
Dec 14, 2017 10:34 am
Forum: Help
Topic: PHP Fatal error: Call to undefined function html_page_top()
Replies: 6
Views: 2889

Re: PHP Fatal error: Call to undefined function html_page_t

All I am trying to do is have the standard MantisBT page appear, minus content. This doesn't involve core.php, other than it is required for Mantis stuff to show up. Meanwhile, I have altered my methodology a bit. This is a plugin I am developing. I have changed the way it is linked, so I don't need...
by ShadowKatmandu
Dec 13, 2017 3:41 pm
Forum: Help
Topic: PHP Fatal error: Call to undefined function html_page_top()
Replies: 6
Views: 2889

PHP Fatal error: Call to undefined function html_page_top()

I am getting a PHP Fatal error: Call to undefined function html_page_top(). I am using MantisBT 2.8. Here is my code: require_once( '../../../core.php' ); // This is in a plugin, so this is where core.php is found for me require_api( 'access_api.php' ); require_api( 'authentication_api.php' ); requi...
by ShadowKatmandu
Jul 16, 2015 3:56 pm
Forum: Help
Topic: Custom Function calls fail on View Issues Page
Replies: 3
Views: 2527

Re: Custom Function calls fail on View Issues Page

Apparently, there was a change between the two versions where core/custom_function_api does not load the same way. Custom enumeration functions are not recognized. I moved the default enumeration functions to custom_functions_inc and everything is peachy now. Thanks for the help. :)
by ShadowKatmandu
Jul 16, 2015 2:28 pm
Forum: Help
Topic: Custom Function calls fail on View Issues Page
Replies: 3
Views: 2527

Re: Custom Function calls fail on View Issues Page

I checked that, too, when I started getting this error, and core/custom_functions_inc.php is the same in dev as it is in production. It contains the override functions while core/custom_function_api.php contains the default functions.
by ShadowKatmandu
Jul 14, 2015 6:09 pm
Forum: Help
Topic: Custom Function calls fail on View Issues Page
Replies: 3
Views: 2527

Custom Function calls fail on View Issues Page

I am using Mantis 1.2.19. When I go to the View Issues page, I get three errors like this one: SYSTEM WARNING: 'call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_function_default_enum_job_numbers' not found or invalid function name' in '/home/e-smith/files/ibays/tra...
by ShadowKatmandu
Apr 23, 2015 11:09 am
Forum: Customizations
Topic: Custom Menu Dropdown?
Replies: 1
Views: 3051

Custom Menu Dropdown?

I am thinking this is not possible, but what I want to do is to add a custom dropdown menu to the navigation, similar to the Jump to issue which is part of Mantis. I know I can add a link with $g_main_menu_custom_options and have done so, but I can't find a way to add a list of items. Is this possib...
by ShadowKatmandu
Dec 17, 2014 4:16 pm
Forum: Customizations
Topic: User-specific Custom Field
Replies: 1
Views: 2863

User-specific Custom Field

I am wanting to create a custom field which shows up for all users but is specific in value to each user. This would be a checkbox. So User A checks it, but User B sees it unchecked unless they check it as well. I am not finding a way to do this. Is there a way to make fields have a per-user value b...
by ShadowKatmandu
Aug 07, 2014 3:31 pm
Forum: Help
Topic: Fetch Array and Magic Quotes
Replies: 2
Views: 2487

Re: Fetch Array and Magic Quotes

Thanks. I was kinda hoping that would be the case. I am aware of magic_quotes being deprecated and later removed. (It is deprecated in our version.) Now we just have to concern ourselves with upgrading Mantis.
by ShadowKatmandu
Aug 07, 2014 2:28 pm
Forum: Help
Topic: Fetch Array and Magic Quotes
Replies: 2
Views: 2487

Fetch Array and Magic Quotes

MantisBT Version 1.2.15 Schema Version 183 This may have been fixed in the current version of Mantis, but one of my calls to db_fetch_array() produces this error: Function set_magic_quotes_runtime() is deprecated This was a function to escape any quotes coming from any kind of data retrieval, includ...