Fork me on GitHub

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 3.0 4 6 2013 adslight Android AntiHarvesting AntiMalUser AntiSpam API Apple Battlefield billige Bootstrap By Captcha cell cent chronolabs Clicks content CĂN demo docek download Dresses evden eve facebook Fat Food for free Gateway Google Guide herre Home Honeypot Human HỘ IP iPhone jQuery Law Legal List log Loss mobile module modules Monster new newbb news NHÀ online PARK Payment phone PHP Prevention profile project Protector publisher RESIDENCE responsive review Rights rmcommon security Sentry Signatures Signed site Smartphone Smoking Solution Spam Studio tags tdmcreate template The Theme themes web weight Wishcraft xoops Xortify XPayment

New Users

Registering user

# 137911

mydarkglobe

Welcome to XOOPS!

Archives

News Archives

PHPSurveyor Ported to Xoops

Posted by Draven on 2004/12/5 6:11:54 (32555 reads) | Posted on Modules
Hey folks, I've ported the most current version of PHP Surveyor to XOOPS. What is PHP Surveyor?

PHP Surveyor is a set of PHP scripts that interact with MySQL to develop surveys, publish surveys and collect responses to surveys. Once a survey has been created it can be published as an online survey (displayed as single questions, group by group or all in one page) or you can use a dataentry system for administration of paper-based versions of the survey. PHP Surveyor can produced 'branching' surveys (set conditions on whether individual questions will display), can vary the look and feel of your survey through a templating system, and can provide basic statistical analysis of your survey results.


PHP Surveyor includes the capacity to generate individualised 'tokens', so if you have a list of people you want to invite to participate in a survey you can issue each one with a token, and they will be able to access the survey using that token. This allows for quite good quality control of your surveys.
----------------------------

While this is a beta, it should be relatively stable.

Please download it and give it a try. Let me know if you find any bugs.

I'll be setting this up as a module project when I get a few minutes.

I've tried my best to limit the Xoops code to an absolute minimum so updating it with future releases should be relatively simple. Due to this though, you will need to use PHP Surveyors integrated template system for altering the actual forms. This shouldn't be a big deal as the templates are very simply HTML pages. You can use the integrated template system to make your changes. It will still appear within your Xoops theme.

You can download the Beta version at:

http://gaining-mass.com/projects/Surveyx%200.5%20Beta.zip

Have fun!


Printer Friendly Page Send this Story to a Friend Create a PDF from the article
Bookmark Me
Bookmark to Google Plus
The comments are owned by the author. We aren't responsible for their content.

Very nicely done, Draven. I haven't had a chance to play with the beta yet, but I can assure you that it will be a very popular module.
Published: 2004/12/5 8:15 • Updated: 2004/12/5 8:15
is PHPSurveyor better than PhpESP ???
I thought someone was porting PhpESP to XOOPS ?...
marco
Published: 2004/12/5 8:22 • Updated: 2004/12/5 8:22
I uploaded it again. Seems there was a small pathing bug that was giving people some issues.

I should also note that when you go to the admin, just click the icon and you will get a "toolbar" that appears at the top of the page. This IS all that appears. You use the toolbar to create your survey. As you do this other toolbars will appear below the first. This is just how the admin section works for PHPSurveyor.
Published: 2004/12/5 9:21 • Updated: 2004/12/5 9:21
hey guys,

apart from the slightly "strange" (no offense, just a different approach) GUI in the admin section, this is one fine module, at least, as far as my playing around has taken me. nice to see, that existing scripts can be integrated in xoops. keep up the good work
Published: 2004/12/5 11:10 • Updated: 2004/12/5 11:10
Great module!
thanks 4 sharing
Published: 2004/12/5 11:32 • Updated: 2004/12/5 11:32
i install this but very hard to understand how it works.
finally i create a survay but in the page i get this:
Quote:

ERROR
You have not provided a survey identification number.

Please contact ADMIN_NAME at ADMIN_MAIL for further assistance.

what is that number?
im admin in module.
how it can be a little simple. is there a document for it?
many thanks
Published: 2004/12/5 11:35 • Updated: 2004/12/5 11:35
Someone else just asked the same question in a forum post founbd here http://www.xoops.org/modules/newbb/vi ... 93&forum=4&post_id=122386
Quote:


Quote:

irmtfan wrote:
thanks a lot for this module.great proting.
i have problems with this module in use.
finally i install a survey but in the main page i get this error:

Quote:

ERROR
You have not provided a survey identification number.

Please contact ADMIN_NAME at ADMIN_MAIL for further assistance.


is there a document for this?
thanks for your attentions


This is not an error, but rather the way the original script works. This script/module is meant to be linked to, not directly accessed. What this means is that there is no central "index" listing page of any kind, but rather you use the link for your survey to access the survey's themselves.

Again, this is just a very basic port of the oringal script, I've not added any "enhancements" to it as of yet.

One of the things I plan to do is create some blocks and possibly a custom index page. But for now you must provide the link in some other form of document (news posting, forum, article etc) which provides the proper ID for the survey you want to link to. This can be found under the survey's main index in the admin panel and should look something like http://localhost/dev/modules/surveyorx/index.php?sid=1.

Hope that helps!



All documentation for this script is provided in the DOCS folder. You can also check the authors site for more info at http://phpsurveyor.sourceforge.net/
Published: 2004/12/5 12:52 • Updated: 2004/12/5 12:55
Hey Draven

Thanks for sharing

I guess that will be a very popular module.
I lost a great project about a month ago cauz I could not find something like this at that moment.

Nice work
I´ll translate It to portuguese.
Thanks.
Published: 2004/12/5 21:48 • Updated: 2004/12/5 21:48
Hi Draven,

I'm getting the following error when attempting to install...

Quote:
SQL file not found at /home/websitename/public_html/modules/surveyorx/xoops_sql/maketables.sql

Unable to install surveyorx. Error(s):


Thanks!

Kristine
Published: 2004/12/6 18:03 • Updated: 2004/12/6 18:03
I got the following error message (with the php debug) when trying to access the admin screen:

Notice: Undefined variable: keys in c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\xoops_inc.php on line 42

Fatal error: Call to undefined function: showadminmenu() in c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\admin.php on line 146
Notice [PHP]: Use of undefined constant ADMIN_USER - assumed 'ADMIN_USER' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 64
Notice [PHP]: Use of undefined constant ADMIN_PASS - assumed 'ADMIN_PASS' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 65
Notice [PHP]: Use of undefined constant ADMIN_MAIL - assumed 'ADMIN_MAIL' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 66
Notice [PHP]: Use of undefined constant ADMIN_NAME - assumed 'ADMIN_NAME' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 67
Notice [PHP]: Use of undefined constant ADMIN_FAX - assumed 'ADMIN_FAX' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 68
Notice [PHP]: Undefined index: DOCUMENT_ROOT in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 99
Notice [PHP]: Undefined variable: htmlheader in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\admin.php line 50

Please help.

NOTE: hmm, apparently i need to edit manually the configuration file. i'll give it a try first (even though it will be great if later the setting can be made automatic without manual editing). please disregard this comment then.
Published: 2004/12/8 7:17 • Updated: 2004/12/8 7:24
Thanks guys, I'll have a look
Published: 2004/12/8 13:11 • Updated: 2004/12/8 13:11
Quote:
Poster: krystinevo Posted: 2004/12/6 12:03:38

Hi Draven,

I'm getting the following error when attempting to install...

Quote:
SQL file not found at /home/websitename/public_html/modules/surveyorx/xoops_sql/maketables.sql

Unable to install surveyorx. Error(s):


Thanks!

Kristine


I double checked the zip file and the SQL is there with the correct path. Double check that it's on your site... perhaps it didn't unpack for some reason.
Published: 2004/12/8 13:17 • Updated: 2004/12/8 13:17
Quote:
Poster: karedokx Posted: 2004/12/8 1:17:14

I got the following error message (with the php debug) when trying to access the admin screen:

Notice: Undefined variable: keys in c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\xoops_inc.php on line 42

Fatal error: Call to undefined function: showadminmenu() in c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\admin.php on line 146
Notice [PHP]: Use of undefined constant ADMIN_USER - assumed 'ADMIN_USER' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 64
Notice [PHP]: Use of undefined constant ADMIN_PASS - assumed 'ADMIN_PASS' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 65
Notice [PHP]: Use of undefined constant ADMIN_MAIL - assumed 'ADMIN_MAIL' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 66
Notice [PHP]: Use of undefined constant ADMIN_NAME - assumed 'ADMIN_NAME' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 67
Notice [PHP]: Use of undefined constant ADMIN_FAX - assumed 'ADMIN_FAX' in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 68
Notice [PHP]: Undefined index: DOCUMENT_ROOT in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\config.php line 99
Notice [PHP]: Undefined variable: htmlheader in file c:\inetpub\wwwroot\xoops-test\html\modules\surveyorx\admin\admin.php line 50

Please help.

NOTE: hmm, apparently i need to edit manually the configuration file. i'll give it a try first (even though it will be great if later the setting can be made automatic without manual editing). please disregard this comment then.


What is the URL for the page you are viewing here?
Published: 2004/12/8 13:19 • Updated: 2004/12/8 13:19
Hi,
I get a problem in the main page.Any idea on how to resolve this problem??

Thanks,
--------------------------------------------------Notice: Undefined variable: keys in C:\project\htdocs\xoops-2.0.7.3\html\modules\surveyorx\xoops_inc.php on line 42

ERROR
You have not provided a survey identification number.

Please contact ADMIN_NAME at ADMIN_MAIL for further assistance.
--------------------------------------------------
Published: 2004/12/14 23:03 • Updated: 2004/12/14 23:03
it is the admin screen (when i click on the icon of phpsurveyor): /modules/surveyorx/admin/admin.php.

my question is: should we edit the configuration file manually (specifying the server name, database name, login, etc)?

thanks.
Published: 2004/12/15 0:11 • Updated: 2004/12/15 0:11
Hi,

Congratulations for the work done. That's a great news.

I am a XOOPS user and I could possibly set-up a new XOOPS site in which I'd need to put in place a survey, targetting a population of about 500-1000 people.

I had a look on the PHPsurveyor website and demo and it seems to be great.

I didn't try the XOOPS adapation yet and before going further, I would like to get any comments of the reliability of this beta version to achieve my survey.

Congratulations again
Franck
Published: 2005/2/1 9:36 • Updated: 2005/2/1 9:36
Quote:

I thought someone was porting PhpESP to XOOPS ?...
marco


Bluemoon.Multi-Survey is porting and enhanced module from phpESP.

Yoshi
Published: 2005/4/11 5:47 • Updated: 2005/4/11 5:47
Hello,

I used PHPsurveyor once as a standalonenaks and was really satisfied with it. As I am also a XOOPS addict, this module greatly interest me.

I just have on equestion: the release date of this module is 2004/12/5.

Is there any new release somewhere to take into account XOOPS and PHPsurveyor evolutions ?

Thnaks ,
Franck
Published: 2006/2/19 1:49 • Updated: 2006/2/19 1:49
hello,
I can't download the file now.Can you tell me where i can find the beta. thx
Published: 2006/7/12 8:29 • Updated: 2006/7/12 8:29
Did you ever get a minute?
Published: 2006/8/21 21:06 • Updated: 2006/8/21 21:06