Sunday, 2010-08-22

dhx_m"from the blog": Thanks to the Mantis inventor. The mantis is more powerful plugin system & useful for me.06:33
dhx_mnuclear_eclipse: the credit is all yours :)06:37
*** Joins: istvanb (56a14419@gateway/web/freenode/ip.86.161.68.25)07:38
istvanbhi there07:39
istvanbI have a question: how can I get the access level of the current user?07:39
istvanbdhx_m07:54
istvanbnuclear_eclipse07:54
istvanb?07:54
dhx_mistvanb: current_user_get_access_level()07:55
istvanbsweeeeet07:55
dhx_mreturns an integer representation of the access level07:55
istvanbthanks a lot man07:56
dhx_mI suggest having a read through the API docs to get an idea of what functions are available07:56
istvanbyeah, I should do that, but I am so close to finish my plugin that its much easier for me to ask. However now I have another plugin in my mind which can be complex and to do that for sure I will read it!08:00
dhx_myep08:01
istvanbI wrote my plugin as it adds a new menu item under the manage menu. Its able to check if the user has access to the plugin feature, however it would be much better if the plugin menu item would not appear if the user has no access08:16
istvanbI have failed to do that08:16
istvanbbecause08:16
istvanbfunction init()  { plugin_event_hook (EVENT_MENU_MANAGE,'eannounce_form'); }08:16
istvanbI tried to do an if structure like function init()  { if (current_user_get_access_level() >= plugin_config_get( 'eannounce_sendmail_threshold' )) {plugin_event_hook (EVENT_MENU_MANAGE,'eannounce_form');} }08:17
istvanbbut it gives me an error message08:17
*** Quits: istvanb (56a14419@gateway/web/freenode/ip.86.161.68.25) (Quit: Page closed)09:11
*** Quits: micahg (~micah@ubuntu/member/micahg) (Read error: Connection reset by peer)17:20
*** Joins: micahg (~micah@ubuntu/member/micahg)17:21
*** Joins: fanno (~Morten@90.184.93.233)17:36
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)19:24
*** Quits: wolog (~wolog@87.106.58.253) (Ping timeout: 246 seconds)19:30
*** Joins: wolog (~wolog@87.106.58.253)19:31
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
*** Joins: daryn (~daryn@h162.214.31.71.dynamic.ip.windstream.net)21:20
*** Quits: daryn (~daryn@h162.214.31.71.dynamic.ip.windstream.net) (Ping timeout: 265 seconds)23:42

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!