| ../irclogs/#mantishelp.2010-08-17.log | ||
| --- scribe started --- | 00:00 | |
| istvanb | hi guys | 14:04 |
|---|---|---|
| istvanb | I need to get answer to a php question: | 14:04 |
| istvanb | in the manage_config_workflow_set.php there is a line: | 14:04 |
| istvanb | $t_valid_thresholds = array( 'bug_submit_status', 'bug_resolved_status_threshold', 'bug_reopen_status' ); | 14:05 |
| istvanb | in another php file I'd like to get the resolved status threshold value, so I used this: echo ($t_valid_threshold[1]); | 14:06 |
| istvanb | but it gives me back nothing | 14:06 |
| istvanb | whats wrong? | 14:06 |
| nuclear_eclipse | istvanb: because that variable is only declared in that file | 14:07 |
| istvanb | I see | 14:08 |
| istvanb | so t means a local variable? | 14:08 |
| nuclear_eclipse | that's just how we name variables that are "temporary" in nature, but in that context it's technically a global variable because of the way PHP works | 14:09 |
| istvanb | I see now | 14:09 |
| istvanb | let me ask you this question then: | 14:09 |
| nuclear_eclipse | you should probably understand how PHP and CGI work | 14:09 |
| nuclear_eclipse | understand/learn | 14:09 |
| istvanb | are you pissed off with all my questions? | 14:10 |
| istvanb | :) | 14:10 |
| nuclear_eclipse | no | 14:10 |
| istvanb | cause I know I can be a pain in the ass | 14:10 |
| nuclear_eclipse | but learning about the CGI model for web applications would probably help you understand why mantis does things the way it does | 14:10 |
| istvanb | but I am driven by the good goal: there is this show the status by percentage option in mantis, which is very useful, but it has one major problem: it also displays issues after the resolved phase | 14:11 |
| istvanb | in my workflow there is one more stage after resolved: closed | 14:11 |
| istvanb | because by time the waste majority of the issues will be closed, it makes no sense to have a graph showing 98% closed and 2% which is in various other stages | 14:12 |
| istvanb | so if I can get the resolved threshold by number I can easily modify the SQL query | 14:12 |
| istvanb | this part is already tested with a hardwired number, I just want to get it dinamically | 14:13 |
| istvanb | this also gives me no result: ==>echo ($g_bug_resolved_status_threshold); | 14:14 |
| nuclear_eclipse | you should use config_get('bug_resolved_status_threshold') | 14:19 |
| istvanb | ok, one more final question | 14:26 |
| istvanb | really really final | 14:26 |
| istvanb | is there a simple way to create a new global variable? | 14:26 |
| nuclear_eclipse | like a new configuration option? | 14:28 |
| istvanb | yes | 14:32 |
| nuclear_eclipse | you can add any $g_whatever to your config_inc.php, and use config_get('whatever') to retrieve the value | 14:34 |
| istvanb | oh, thats really easy. I have already modified the html_api.php to hide anything above the resolved status | 14:35 |
| istvanb | thanks for the help man! | 14:35 |
| nuclear_eclipse | you're welcome | 14:35 |
| istvanb | I will not forget to mention you in my thank-you-speech when I get the nobel price of php coding! | 14:36 |
| istvanb | :) | 14:36 |
| nuclear_eclipse | heh | 14:37 |
| istvanb | what should I do if I'd like to promote my changes to a candidate change in a future release of Mantis? | 14:49 |
| nuclear_eclipse | http://docs.mantisbt.org/master/en/developers/dev.contrib.html | 14:53 |
| istvanb | thx | 14:54 |
| paulr | moo | 17:48 |
| * Renegade15 pokes paulr | 18:56 | |
| DigitallyB-rn | I know this is going to be a sore subject, but I'm having issues configuring mantis to send mail through gmail. I'm running 1.2.2 hosted on godaddy. | 20:07 |
| DigitallyB-rn | I've tried every combination of options I could think of .. searched the forums .. updated phpmailer | 20:07 |
| DigitallyB-rn | Has anybody here had any luck? | 20:09 |
| nuclear_eclipse | DigitallyB-rn: there was an email sent to the mantisbt-help mailing list telling how to configure mantis to send via gmail | 20:18 |
| DigitallyB-rn | nuclear_eclipse: I'll look that up, thanks | 20:19 |
| nuclear_eclipse | DigitallyB-rn: http://sourceforge.net/mailarchive/forum.php?thread_name=m2ua6a9d7f21004301241y72422d5erb4a7a36737f6fbb0%40mail.gmail.com&forum_name=mantisbt-help | 20:20 |
| nuclear_eclipse | if that doesn't work, I'm not sure how to resolve it otherwise, I've never used anything but a local sendmail instance | 20:20 |
| DigitallyB-rn | I tried those settings (and just tried again for good measure) :( | 20:22 |
| nuclear_eclipse | offhand, I'm thinking that gmail might have a different smtp port to use | 20:23 |
| nuclear_eclipse | like 587 or something odd like that | 20:23 |
| DigitallyB-rn | They do. I tried both of the ports listed on google's help site. | 20:25 |
| nuclear_eclipse | maybe godaddy is blocking outbound smtp connections? =\ | 20:25 |
| DigitallyB-rn | I thought about that, but on another site I'm using similiar settings | 20:26 |
| DigitallyB-rn | Is there a way I can enable error messages .. so instead of it saying it's sent a confirmation email when I reset a password it will show smtp errors (if any)? | 20:30 |
| nuclear_eclipse | there are a couple options you can set in your config_inc.php regarding errors, but I don't think that smtp errors are ever propagated to Mantis; I'm pretty sure phpmailer just silently eats them | 20:32 |
| * giallu can't wait to ditch phpmailer :) | 21:08 | |
| nuclear_eclipse | giallu: so stop waiting and fix it already ;) | 21:10 |
| giallu | nuclear_eclipse, working on the manual right now | 21:31 |
| giallu | but I could think about making it next on the list | 21:32 |
| giallu | :) | 21:32 |
| paulr | time to break stuff | 21:44 |
| paulr | nuclear_eclipse/giallu: is the apache license compatible with gpl? | 21:46 |
| * giallu is afraid of asking... | 21:47 | |
| giallu | http://fedoraproject.org/wiki/Licensing#SoftwareLicenses | 21:47 |
| giallu | bookmark it | 21:47 |
| * paulr sighs | 21:48 | |
| paulr | is mantis 2 or 3 of gpl? | 21:48 |
| paulr | in fact giallu | 21:52 |
| paulr | you know licenses | 21:52 |
| paulr | what *exactly* do we have to do to drop gpl/ | 21:52 |
| giallu | I don't really know | 21:52 |
| giallu | I guess a rewrite is the safer bet... | 21:53 |
| giallu | what do you propose instead? | 21:53 |
| paulr | license wise? | 21:54 |
| paulr | well, atm, gpl just seems to generate grief imo :P | 21:54 |
| paulr | I mean, if someone writes a plugin | 21:54 |
| paulr | that plugin might need to be gpl | 21:55 |
| paulr | as it's a deritive or whatever | 21:55 |
| paulr | ezcomponents has now been donated to apache | 21:55 |
| paulr | apache license apparently is only compatible with gpl 3 but not 2 | 21:55 |
| paulr | and that's only version 2 of the license | 21:55 |
| paulr | it just strikes me as more difficult then it needs to be | 21:57 |
| giallu | yes, I think plugins need to be GPL | 21:59 |
| giallu | which is not a problem. | 21:59 |
| giallu | but ez could | 21:59 |
| giallu | which apache license version are they using? | 22:00 |
| paulr | not sure | 22:00 |
| paulr | but we use gpl2 anyway :) | 22:00 |
| giallu | don't we have "or later" ? | 22:01 |
| paulr | yes - but I'm sure there was a reason someone said we are still on 2 | 22:01 |
| giallu | I'd like to hear this reason | 22:01 |
| giallu | otherwise, for all effects we can be v3 | 22:02 |
| giallu | and compatible with apache | 22:02 |
| micahg | I thought v2 allows more flexibility for commercial usage | 22:02 |
| giallu | anyway. if ez stuff is in debian or fedora the package should list the license | 22:03 |
| paulr | my point is more | 22:03 |
| paulr | from what I can tell (and correct me if i'm wrong) | 22:04 |
| paulr | bsd/mit/whatever tend to go 'do whatever' | 22:04 |
| paulr | gpl tends to go 'if you use me, everything else needs to be gpl too!' | 22:04 |
| giallu | from 20K feet, yeah | 22:05 |
| paulr | so for example, if I look at ckeditor (aka browser based wysiwyg) they say http://ckeditor.com/license | 22:05 |
| paulr | CKEditor is distributed under the GPL, LGPL and MPL open source licenses. This triple copyleft licensing model avoids incompatibility with other open source licenses | 22:05 |
| paulr | on top of that | 22:06 |
| paulr | they also have some commercial license | 22:06 |
| giallu | that's trickier | 22:06 |
| giallu | it all depends who's supposed to be forced to use the commercial license | 22:07 |
| giallu | jpgraph is not in distros for this reason | 22:07 |
| giallu | non-free | 22:07 |
| micahg | giallu: jpgraph is in universe | 22:08 |
| micahg | oh, it's an older version | 22:08 |
| paulr | giallu: I guess what i'm getting at is | 22:09 |
| paulr | if we were mit/lgpl/something else | 22:09 |
| paulr | would that make life easier | 22:09 |
| paulr | gn | 22:30 |
| Github | mantisbt: publican Gianluca Sforna * 2b848af (0 files in 0 dirs): Create scheleton for new xml based admin guide with publican. ... | 23:39 |
| Github | mantisbt: publican Gianluca Sforna * fa2f7c0 (4 files in 1 dirs): Import former SGML manual | 23:39 |
| Github | mantisbt: publican commits 0000000...fa2f7c0 - http://bit.ly/bXTgDK | 23:39 |
| giallu | bed time now. | 23:41 |
Generated by irclog2html.py