Search found 10 matches

by Dominus
27 May 2021, 14:17
Forum: Help
Topic: Allowing Reporters to Close Own Issues
Replies: 1
Views: 998

Allowing Reporters to Close Own Issues

I'm trying to allow all reporters to close their own issues (Not everyone's issues). I have the workflow threshold set to allow them to close their issue, but for some reason they can only close it when it is marked as resolved already. How can I allow them to close an issue regardless of the status?
by Dominus
16 Aug 2020, 17:22
Forum: Help
Topic: Include() in Plugins set some GLOBALS to NULL
Replies: 0
Views: 2768

Include() in Plugins set some GLOBALS to NULL

I'm trying to link on SMF and MantisBT by calling SSI.php from SMF in a MantisBT plugin. However, SSI.php has include() in it, as well, with the location partly determined by a global variable. If you set up a var_dump() in the SSI.php file, you will see that the variables work perfectly if the code...
by Dominus
16 Aug 2020, 17:18
Forum: Help
Topic: Editing navbar (logout link) via plugin
Replies: 6
Views: 2097

Re: Editing navbar (logout link) via plugin

I considered it.

There really should be a hook or HTML ID on the logout button, though, since the only way I could get it in jQuery was find the logout icon, then go to the parent.
by Dominus
15 Aug 2020, 00:21
Forum: Help
Topic: Editing navbar (logout link) via plugin
Replies: 6
Views: 2097

Re: Editing navbar (logout link) via plugin

Is there a way to just hide the link through a plugin?
by Dominus
14 Aug 2020, 19:39
Forum: Help
Topic: Editing navbar (logout link) via plugin
Replies: 6
Views: 2097

Re: Editing navbar (logout link) via plugin

That line doesn't seem to work. I've also tried using setLogoutRedirectPage. The link remains the same, and simply refreshes the same page when you click it.
by Dominus
13 Aug 2020, 17:52
Forum: Help
Topic: Editing navbar (logout link) via plugin
Replies: 6
Views: 2097

Editing navbar (logout link) via plugin

I've been looking for a way to change the logout link for users within my plugin, but setLogoutPage() will result in it being a relative link, when I want it to go to an external site. Ex. My site is example.com, so the link normally is example.com/logout.php. If I do setLogoutPage to https://foo.co...
by Dominus
13 Aug 2020, 16:03
Forum: Help
Topic: Adding Logging to Plugin
Replies: 6
Views: 2117

Re: Adding Logging to Plugin

That was it! I was confused due to being on 2.5.1 and the latest version being 2.24. It works as intended in the latest version.
by Dominus
11 Aug 2020, 13:56
Forum: Help
Topic: Adding Logging to Plugin
Replies: 6
Views: 2117

Re: Adding Logging to Plugin

Mantis 2.5.1, schema 209. Log_event works if i use LOG_FILTERING. If I use LOG_PLUGIN, it says undefined constant.
by Dominus
11 Aug 2020, 08:15
Forum: Help
Topic: Adding Logging to Plugin
Replies: 6
Views: 2117

Re: Adding Logging to Plugin

I have reviewed https://www.mantisbt.org/docs/master/en ... l-desktop/ . Is there another guide that tells me how to add logging to the code of a plug in? The logs are outputting correctly for core (using LOG_ALL).
by Dominus
11 Aug 2020, 05:54
Forum: Help
Topic: Adding Logging to Plugin
Replies: 6
Views: 2117

Adding Logging to Plugin

I am in the process of trying to make a plugin for Mantis, but I want to have logging built in to it. However, I'm missing how exactly one would add an entry to the log with it denoted as a plugin. log_event(LOG_FILTERING,$this->name); works perfectly. But change it to LOG_PLUGIN and it spits out SY...