vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Survey: Add a full-featured survey tool to your forum (https://vborg.vbsupport.ru/showthread.php?t=83038)

klaush 03-02-2006 07:17 PM

Hi to ya all!

So the installation went fine. The page is showing but i have the same as bashy, i think, i click on "Create New Survey" and the page refreshes and tha´s it.

Even if i try to view the existing surveys: the page refreshes and that´s it.

All permissions are set.

So who installed on 3.5.4?

Thanks for your help.

Frank Butcher 03-02-2006 09:43 PM

I get this message every time above the survey, any clues ?

Warning: Smarty error: problem writing './survey/smarty/templates_c/Default^available_surveys.tpl.' in /survey/smarty/Smarty.class.php on line 589

tamarian 03-02-2006 10:32 PM

Quote:

Originally Posted by klaush
Hi to ya all!

So the installation went fine. The page is showing but i have the same as bashy, i think, i click on "Create New Survey" and the page refreshes and tha?s it.

Even if i try to view the existing surveys: the page refreshes and that?s it.

All permissions are set.

So who installed on 3.5.4?

Thanks for your help.

Check your apache error logs. There may not be enough memory for PHP

tamarian 03-02-2006 10:33 PM

Quote:

Originally Posted by Frank Butcher
I get this message every time above the survey, any clues ?

Warning: Smarty error: problem writing './survey/smarty/templates_c/Default^available_surveys.tpl.' in /survey/smarty/Smarty.class.php on line 589

Did you follow this step:

cd /path/to/main/forum
chown -R apache:apache survey
chmod -R 744 survey

klaush 03-02-2006 10:44 PM

Quote:

Originally Posted by tamarian
Check your apache error logs. There may not be enough memory for PHP

The idea with the apache-log was not so bad! :-)

I found:

PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'survey/classes/main.class.php' (include_path='.:') in /home/www/xxx/xxxx/vbulletin/survey.php on line 8

So what is to do?

Any hint?

Thanks!

Frank Butcher 03-03-2006 06:34 AM

Quote:

Originally Posted by tamarian
Did you follow this step:

cd /path/to/main/forum
chown -R apache:apache survey
chmod -R 744 survey

I am a novice I would have no idea how to do that lot bar CHMOD, I don't know what apache is or where to even find it :o

OrangeFlea 03-04-2006 08:42 PM

I'm getting this:

Quote:

WARNING: Compiled template directory is not writable (./survey/smarty/templates_c). Please refer to the installation document for instructions.
That directory is chmoded 755, while the subfolders are 751, and the tpl files in them 644 (but for the life of me, it won't let me change their permissions!!!)

Did everything else you and DocVader pointed to.

tamarian 03-04-2006 09:10 PM

Quote:

Originally Posted by OrangeFlea
I'm getting this:



That directory is chmoded 755, while the subfolders are 751, and the tpl files in them 644 (but for the life of me, it won't let me change their permissions!!!)

Did everything else you and DocVader pointed to.

Don't forget the owner step (chown).

tamarian 03-04-2006 09:13 PM

Quote:

Originally Posted by klaush
The idea with the apache-log was not so bad! :-)

I found:

PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'survey/classes/main.class.php' (include_path='.:') in /home/www/xxx/xxxx/vbulletin/survey.php on line 8

So what is to do?

Any hint?

Thanks!

Does the file exist at that path?

tamarian 03-04-2006 09:14 PM

Quote:

Originally Posted by Frank Butcher
I am a novice I would have no idea how to do that lot bar CHMOD, I don't know what apache is or where to even find it :o

Check with the system admin, it would be hard for me to guess your environment.

OrangeFlea 03-05-2006 03:06 AM

Okay, I fixed the problem.

If you can't change the permissions via your FTP utility, then the best way to do it is through Cpanel. The permissions in Cpanel won't display the changes as you do them, but they ARE changed. I was frustrated because I didn't think it was working.

trilljester 03-05-2006 06:51 PM

I recently upgraded to 3.5.4, and had to go to vbsurvey_install.php in my AdminCP directory, and clicked on Option #2 in the clean install section to get this mod to work after upgrading. It gave me an error, because of duplicate keys in my survey table, but it didn't hurt anything. Not sure why this was all needed, but that's what worked for me. Tam, Maybe an option to reinstall templates or rebuild templates after forum upgrade would help?

It appears that when upgrading VB, it wipes out the vbsurvey template, so it has to be reinstalled.

klaush 03-05-2006 07:52 PM

Quote:

Originally Posted by tamarian
Does the file exist at that path?

Yes!

zingo 03-06-2006 11:25 AM

The survey is an interesting hack. Thanks for providing it!

I can give the following feedback to help improve things:

1. It doesn't correctly respect its own usergroup setting. I have vb usergroup 1 (unregistered/guest) set to be allowed to take surveys and view results and when I attempt to navigate to survey.php, I get a login dialog.

2. Based on reading through this thread, you could probably save people some confusion by simply adding "go to yourforum/survey.php" to start making surveys. That final instruction is notably absent.

3. The page break handling is cumbersome. I should be able to enter questions, then a page break, then more questions. However, I have to go back and insert the page break by using the "insert after" feature, since a page break can't be the last question. The sanity check is good, but you should just display a warning, not prevent the operation. If you want to prevent the survey from working with a page break at the end, then throw the error and offer to delete it and continue.

4. Moving items around is tedious. After initially creating items, the box to insert at a specific position disappears from the edit window and you have to painstakingly click up-up-up-up or down-down-down, etc. on UI arrows to move things around in the question list.

Otherwise...so far so good. #1 is kind of a problem and I am about to go hack it, I guess.

zingo 03-06-2006 12:14 PM

OK...so...now that I have played around with it, the obvious reason for special casing the guest users to 0 access is that you can only have 1 unique user at an IP (even if it is a guest user). So, everyone needs a username.

For emailed surveys, it might work to use tokens in the links for each user so that they wouldn't have to register. But, I guess if you're going to email, then they might as well register at the forum It's just not optimal...and everyone has to be tracked.

zingo 03-06-2006 09:30 PM

It looks like vbSurvey is best for existing online communities. Based on my experience today, it does not seem to be a good replacement (in terms of recruitment) vs. an immediate paper survey. People don't seem to want to have to go through the registration process, but are willing to fill out an actual piece of paper.

In established, online communities where users don't have to register and already have an established traffic pattern, it would be great. They could take surveys all day.

From this reasoning, one feature vbSurvey could use is a mailmerge with a link token. To bridge the login overhead, the survey tool could take a list of email addresses, a note about the survey, and a replacement variable to insert a link. Then, it would generate a token based on some simple context-sensitive algorithm and apply it to the link, then do the email merge. All the survey admin would need to do is type up the note and paste in the address list. Remote users could click on the link and go straight to the survey without having to create a user account. (There are other services that work this way, I think).

Anyway...just a feature suggestion: email merge with an announcment and auto-generated unique, one-time, login token as part of the survey link.

I still think it's a handy product, but it is not turning out to be as useful as I initially expected because of the login constraint.

phonexpo 03-10-2006 11:00 AM

Thank you for this great feature tamarian. But I've a problem; I've uploaded the files but I don't see Go to AdminCP => vBulletin Options => vB Survey (UCCASS) and set the options for access and other settings, what have I done wrong ?

zingo 03-10-2006 12:37 PM

Another update: After my last post, I commented out a couple of checks to allow guests and eliminate IP checking. That helped a little, but introduces increased risk of flawed data collection. However, it does make it useful for doing data entry into a pre-defined database to get access to the stats and filtering. Being able to do survey email merge with one-time use tokens would be a great addition to your otherwise fine vb tool. The other thing that might be useful is a CSV import function to upload data records via the tool so that outside (paper) survey data efforts can be combined with web efforts. I'll have to take a look at some of the data filtering and provide feedback, etc.

phoneexpo: did you run the installer? If so, then go to your vbulletin adminCP and look at the last item under vBulletin Options at the top left. If not, then follow the directions for placing vbsurvey_install.php in your admincp directory, then direct your browser to: yourvbforumpath/youradmincpdirname/vbsurvey_install.php (for example: http://www.mydomain.com/forums/admin...ey_install.php.

phonexpo 03-10-2006 12:42 PM

Quote:

Originally Posted by zingo
Another update: After my last post, I commented out a couple of checks to allow guests and eliminate IP checking. That helped a little, but introduces increased risk of flawed data collection. However, it does make it useful for doing data entry into a pre-defined database to get access to the stats and filtering. Being able to do survey email merge with one-time use tokens would be a great addition to your otherwise fine vb tool. The other thing that might be useful is a CSV import function to upload data records via the tool so that outside (paper) survey data efforts can be combined with web efforts. I'll have to take a look at some of the data filtering and provide feedback, etc.

phoneexpo: did you run the installer? If so, then go to your vbulletin adminCP and look at the last item under vBulletin Options at the top left. If not, then follow the directions for placing vbsurvey_install.php in your admincp directory, then direct your browser to: yourvbforumpath/youradmincpdirname/vbsurvey_install.php (for example: http://www.mydomain.com/forums/admin...ey_install.php.

Thanks zingo, I didn't run the install. I taught it was automatic. :)

Warrior 03-13-2006 03:47 AM

Nice, clean survey!

[SUBSCRIBING for later reference...]

Ramsesx 04-19-2006 06:01 PM

Nice survey, but one thing is very dangerous, if you go to the copyright link in the footer (http://www.bigredspark.com/) and try to open their forum it want to download a wmf file which contains a Trojan-Downloader.Win32.Agent.acd according to my virus program.
Thats not very trustful?

tamarian 04-19-2006 06:04 PM

Quote:

Originally Posted by Ramsesx
Nice survey, but one thing is very dangerous, if you go to the copyright link in the footer (http://www.bigredspark.com/) and try to open their forum it want to download a wmf file which contains a Trojan-Downloader.Win32.Agent.acd according to my virus program.
Thats not very trustful?

Keep in mind they may not know about it, as it's an old version of IPB. Send the webmaster an email and let them know.

Ramsesx 04-19-2006 06:21 PM

Ok I sent him a mail but its not sure he read this, from him site:
Quote:

Contact
If for any reason you need to get in touch with me, please send me an e-mail to contact@bigredspark.com. Bear in mind that this e-mail address will be quickly picked up by the spammer's bots scouring the web, so I'll be sorting through lots of junk and spam mail to find your message.
But I think it is ok to warn the people here that they are directing their visitors to a trojan horse with this hack.

Torqued 04-19-2006 08:06 PM

Awesome mod.. but I'm having a problem w/ the view "Results as a Table" as well as the Export Results to CSV as Text or Numeric Values options.

When I run any of those options, I get the header/column info, but no data...

edited to add:

I created a test survey and 2 "people" have answered it. The graphs display correctly, but when I export to CSV, this is what I get:

Quote:

"Test Question #1","Test Question #2","Test Question #3",Datetime
,,,"1969-12-31 18:00"

poliveira 04-19-2006 09:09 PM

First of all, thanks for a great extension. I have installed this on 2 forums.

On one of the forums it works great, the other, when I browse to the survey.php file instead of the actual page I get a bunch of text

"input->clean_array_gpc('r', array( 'do' => TYPE_STR, 'sid' => TYPE_INT, 'aid' => TYPE_INT)); if (empty($vbulletin->GPC['do'])) $vbulletin->GPC['do'] = 'main'; $sid = intval($vbulletin->GPC['sid']); $navbits = array("survey.php?$session[sessionurl]" => 'Survey'); $vbulletin->userinfo['can_admin_surveys'] = in_array($bbuserinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey..."

Does anyone know why this is happening? The other PHP pages for the site work fine, just survey.php seems to be having the problem.

I have copied a fresh survey.php to no avail.

Thanks,

poliveira 04-20-2006 12:13 AM

OK found the problem.

The begining code of survey.php had <? I changed it to <?php

:banana:

poliveira 04-20-2006 12:15 AM

Can we upgrade to uccass 1.81 and keep the vb integration intact?

tamarian 04-20-2006 12:52 AM

Quote:

Originally Posted by poliveira
Can we upgrade to uccass 1.81 and keep the vb integration intact?

No, won't work.

tamarian 04-20-2006 06:33 AM

John confirms that their IPB forum was messed with by script kiddies, and it's been cleaned, and will upgrade soon:

http://www.bigredspark.com/forums/in...wtopic=592&hl=

Ramsesx 04-20-2006 07:52 AM

Yes, maybe a new vb customer :)

Torqued 04-20-2006 12:36 PM

tamarian:

Any idea on what might be causing this problem? :)

Quote:

Originally Posted by Torqued
Awesome mod.. but I'm having a problem w/ the view "Results as a Table" as well as the Export Results to CSV as Text or Numeric Values options.

When I run any of those options, I get the header/column info, but no data...

edited to add:

I created a test survey and 2 "people" have answered it. The graphs display correctly, but when I export to CSV, this is what I get:

Quote:

"Test Question #1","Test Question #2","Test Question #3",Datetime
,,,"1969-12-31 18:00"


tamarian 04-20-2006 12:48 PM

Torqued, I'm guessing 2 responses is lower than some privacy limit. Try to export the results of the sample survey provided as it is a large set.

Torqued 04-20-2006 02:29 PM

Quote:

Originally Posted by tamarian
Torqued, I'm guessing 2 responses is lower than some privacy limit. Try to export the results of the sample survey provided as it is a large set.

I'm getting the same results (no data exported) on the Example Command Climate Assessment. :(

poliveira 04-20-2006 08:20 PM

Same here, the export only exports the headers...

poliveira 04-20-2006 09:19 PM

Quote:

Originally Posted by poliveira
Same here, the export only exports the headers...

OK, I think my problem is that I had a historical (paper) survey to key in. So I disabled the code which checked if the user previously completed the survey. After keying in all the results, I changed the code back.

Everything looks good on the graphical display but does not export. This is probably because all the vbsurvey_completed_surveys have the same UID and SID.

Is there a way for me to fix this?

Thanks

tamarian 04-21-2006 06:10 PM

Are there any errors reported in the apache error log?

Torqued 04-21-2006 06:17 PM

I just tested this and get no errors in my apache error log when trying to view the results as a table or when trying to export the results to a file.

Still not getting data in table view or export.

Torqued 04-21-2006 06:59 PM

Quote:

Originally Posted by poliveira
OK, I think my problem is that I had a historical (paper) survey to key in. So I disabled the code which checked if the user previously completed the survey. After keying in all the results, I changed the code back.

I would love to see an option to disable that checking whether a user has completed the survey... maybe make it an option on the Survey Properties screen?

bada_bing 04-22-2006 03:39 AM

Will this work on vb 3.5.3 & 3.5.4 ?

Torqued 04-22-2006 11:32 AM

I have it working on 3.5.4 (except for the export issue)


All times are GMT. The time now is 11:11 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,842KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete