Form to .CSV file exporter

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
savagekabbage
Forum Members
Forum Members
Posts: 75
Joined: Mon Apr 23, 2007 3:51 pm
Location: Northern Virginia, United States

Form to .CSV file exporter

Post by savagekabbage »

Hey guys, this is my first attempt at a module.  It's still under construction, and doesn't quite follow all of the CMSMS module conventions YET. 

However, if you are looking for something to take all of your entered form information and export it to a .CSV file, this might help you.  You have to have at least 1 form setup and have records being saved to the database in order to use this.  This module will also allow you to view entered form information and sort the results by any column of information you want.  (Still working on adding a search)

Right now the code seems to be extremely inefficient.  If there's any interest in this module I might try to clean it up some.

You can download it here:
http://www.imageworksstudio.com/uploads ... wer-02.zip
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Form to .CSV file exporter

Post by Greg »

I would find such a module very useful. Will try out your current version soon. Thanks for sharing.
Last edited by Greg on Wed May 09, 2007 2:43 am, edited 1 time in total.
Greg
cyberman

Re: Form to .CSV file exporter

Post by cyberman »

Thank you very much for your commitment.

Maybe you wanna open a project here  ;)

http://dev.cmsmadesimple.org/
savagekabbage wrote: Right now the code seems to be extremely inefficient.  If there's any interest in this module I might try to clean it up some.
Please make a look at skeleton module, which helps to create a module.

Found this in formviewer.module.php

Code: Select all

$cgextensions = cms_join_path($gCms->config['root_path'],'modules','CGExtensions','CGExtensions.module.php');
if( !is_readable( $cgextensions ) )
{
  echo '<h1><font color="red">ERROR: The CGExtensions module could not be found.</font></h1>';
  return;
}
require_once(cms_join_path($gCms->config['root_path'],'modules',
			   'CGExtensions','CGExtensions.module.php'));
There's a easier solution like this

Code: Select all

	function GetDependencies()
	{
		return array('CGExtensions'=>'1.0.2');
	}
It checks if CGExtensions module is installed. If not you cannot install formviewer ;) and you got a missing message in modules view (admin panel).
Last edited by cyberman on Wed May 09, 2007 7:22 am, edited 1 time in total.
savagekabbage
Forum Members
Forum Members
Posts: 75
Joined: Mon Apr 23, 2007 3:51 pm
Location: Northern Virginia, United States

Re: Form to .CSV file exporter

Post by savagekabbage »

cyberman wrote: Thank you very much for your commitment.

Maybe you wanna open a project here  ;)

http://dev.cmsmadesimple.org/
I might consider it, I just haven't yet, because my module is very similar to the Form Browser and inefficient.
cyberman wrote: There's a easier solution like this

Code: Select all

	function GetDependencies()
	{
		return array('CGExtensions'=>'1.0.2');
	}
It checks if CGExtensions module is installed. If not you cannot install formviewer ;) and you got a missing message in modules view (admin panel).
Ah, I see.  I think I just copied that part from the Questions module.  Honestly, I don't even know if the module needs CGExtensions ;-)
Post Reply

Return to “Modules/Add-Ons”