Thanks, however I can't get it to work I just get an error from the server ("..there was an error..."), when I click on the export to csv link.
This is from my Data.pm code, I've put everything in single quotes as all the other actions seemed to be quoted
'functions' => {
'export_pm_csv' => {
'action' => 'function',
'customizable' => {
'description' => '1',
'min_user_status' => '1',
'user_groups' => '1'
},
'description' => 'Exporting private messages to CSV',
'function' => 'GForum::Custom::export_pm_csv',
'min_user_status' => '2'
},
'add_word' => {
...
...
I've simplified the Custom.pm file down as much as I could, but it still gives the same error
package GForum::Custom;
sub export_pm_csv {
return;
}
interestingly (or maybe not intertestingly), if I remove the word return; from the above, I get an error message
A fatal error has occurred:
Please enable debugging in setup for more details.
Any suggestions ?
This is from my Data.pm code, I've put everything in single quotes as all the other actions seemed to be quoted
'functions' => {
'export_pm_csv' => {
'action' => 'function',
'customizable' => {
'description' => '1',
'min_user_status' => '1',
'user_groups' => '1'
},
'description' => 'Exporting private messages to CSV',
'function' => 'GForum::Custom::export_pm_csv',
'min_user_status' => '2'
},
'add_word' => {
...
...
I've simplified the Custom.pm file down as much as I could, but it still gives the same error
package GForum::Custom;
sub export_pm_csv {
return;
}
interestingly (or maybe not intertestingly), if I remove the word return; from the above, I get an error message
A fatal error has occurred:
GT::Template::Parser (2729): Unable to locate template file 'GForum::Custom' in '/home/.sites/112/site7/web/cgi-bin/admin/templates/default/../common' or any inheritance directories at GT::Template::_compile_template line 669.
Please enable debugging in setup for more details.
Any suggestions ?