vb.org Archive

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

Spinball 09-17-2007 12:56 PM

Quote:

[root@www forums]# chown -R apache:apache survey
chown: `apache:apache': invalid user
chown -R nobody:nobody survey worked without errors.

Quote:

Warning: require(survey/classes/main.class.php) [function.require]: failed to open stream: Permission denied in /survey.php on line 8

Fatal error: require() [function.require]: Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php') in /home/sites/avforums/public_html/forums/survey.php on line 8
Are these related? What's the solution the the last one please?

Spinball 09-17-2007 01:14 PM

Note I ran chmod 777 on the survey folder and that seemed to fix it, however I still get the occasional permissions error.
Also despite correctly setting some questions to require an answer, the system allows me to proceed to the next page without making any choices.
Can anyone help here please?

reddyink 09-30-2007 02:37 PM

I following the instructions and installed the product.

when I type: http://localhost/forum/survey.php
here is what I am getting.... what's wrong

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_admin_groups'])); $vbulletin->userinfo['can_edit_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_edit_groups'])); $vbulletin->userinfo['can_create_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_create_groups'])); $vbulletin->userinfo['can_take_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_take_groups'])); $vbulletin->userinfo['can_view_survey_results'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_result_groups'])); if ($vbulletin->userinfo['userid']==0) { // override permissions for guests, since userid zero is messy // They can only see the results, if allowed in the admincp settings $vbulletin->userinfo['can_admin_surveys'] = 0; $vbulletin->userinfo['can_take_surveys'] = 0; $vbulletin->userinfo['can_create_surveys'] = 0; $vbulletin->userinfo['can_edit_surveys'] = 0; } if ($vbulletin->GPC['do'] == 'main'){ include('survey/classes/survey.class.php'); $navbits[''] = 'Available Surveys'; $survey = new UCCASS_Survey; $body = $survey->available_surveys(); } elseif ($vbulletin->GPC['do'] == 'take'){ include('survey/classes/survey.class.php'); $navbits[''] = 'Answer Survey'; $survey = new UCCASS_Survey; $body = $survey->take_survey($sid); } elseif ($vbulletin->GPC['do'] == 'results'){ include('survey/classes/results.class.php'); $navbits[''] = 'Survey Results'; $survey = new UCCASS_Results; $body = $survey->survey_results($sid); } elseif ($vbulletin->GPC['do'] == 'edit_survey'){ include('survey/classes/editsurvey.class.php'); $navbits[''] = 'Edit Survey'; $editSurvey = new UCCASS_EditSurvey; $body = $editSurvey->show($sid); } elseif ($vbulletin->GPC['do'] == 'filter'){ include('survey/classes/results.class.php'); $navbits[''] = 'Filter Results'; $survey = new UCCASS_Results; $body = $survey->filter($sid); } elseif ($vbulletin->GPC['do'] == 'display_answers'){ $navbits[''] = 'Display Answers'; $survey = new UCCASS_Main; $body = $survey->display_answers($sid); } elseif ($vbulletin->GPC['do'] == 'edit_answer'){ include('survey/classes/answertypes.class.php'); $navbits[''] = 'Edit Answer Types'; $aid = intval($vbulletin->GPC['aid']); $survey = new UCCASS_AnswerTypes; $body = $survey->edit_answer($sid,$aid); } elseif ($vbulletin->GPC['do'] == 'new_answer_type'){ include('survey/classes/answertypes.class.php'); $navbits[''] = 'New Answer Type'; $survey = new UCCASS_AnswerTypes; $body = $survey->new_answer_type($sid); } elseif ($vbulletin->GPC['do'] == 'new_survey'){ include('survey/classes/newsurvey.class.php'); $navbits[''] = 'New Survey'; $survey = new UCCASS_NewSurvey; $body = $survey->new_survey(); } elseif ($vbulletin->GPC['do'] == 'results_csv'){ include('survey/classes/special_results.class.php'); $et = $vbulletin->GPC['export_type']; $survey = new UCCASS_Special_Results; echo $survey->results_csv($sid,$et); exit; } elseif ($vbulletin->GPC['do'] == 'results_table'){ include('survey/classes/special_results.class.php'); $navbits[''] = 'Results Table'; $survey = new UCCASS_Special_Results; $body = $survey->results_table($sid); } else { include('survey/classes/survey.class.php'); $navbits[''] = 'Available Surveys'; $survey = new UCCASS_Survey; $body = $survey->available_surveys(); } $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('vbsurvey') . '");'); ?>

reddyink 10-02-2007 12:37 PM

I installed
vB Survey: Add a full-featured survey tool to your forum by following instructions.
Changed settings in vBulletin options
I would like to Confirm on pasting Survey.php file-
Install instruction says
* Copy survey.php to your main forum directory
* Copy the survey directory into your forum directory (cannot change the directory name)

For this 2 lines
I copied Survey.Php file to - EasyPhp/WWW/upload - Is this right Main forum directory
I copied survey directory to - EasyPhp/WWW/upload - Is this right forum directory

Can anyone please tell me which is my Main Forum Directory and Forum Directory.
I have like this EasyPhp/WWW/upload/admincp/ and EasyPhp/WWW/upload/includes/

When i tested to survey display - I entered -http://localhost/upload/survey.php?
I got big error message
I am pasting part of error message here
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_admin_groups'])); $vbulletin->userinfo['can_edit_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_edit_groups'])); $vbulletin->userinfo['can_create_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_create_groups'])); $vbulletin->userinfo['can_take_surveys'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_take_groups'])); $vbulletin->userinfo['can_view_survey_results'] = in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['vb_survey_result_groups'])); if ($vbulletin->userinfo['userid']==0) { // override permissions for guests, since userid zero is messy // They can only see the results, if allowed in the admincp settings $vbulletin

I really appreciate if anybody can help me on this issue.
Thanks

toucan42 10-25-2007 05:34 PM

I'd like to see other examples of this in use. I am considering adding a survey as a subforum am hoping to see someone who has done this already and how it looks/functions.

leroub 10-29-2007 08:44 PM

somebody already translated this hack in French? :D

thx in advance... :D

stevebullman 10-31-2007 06:01 PM

[QUOTE=Spikeman;1136474][QUOTE=nanaimobar;1136365]

Quote:

Originally Posted by Biggles (Post 1136450)
Go to the location of survey.php example http://www.yourdomain.com/forums/survey.php at the bottom of the survey page you should have a create new survey function. If you do not have this then you need to ensure you have added your usergroup to the Survey System Options in ACP. There are no other seetings within the ACP except for the Survey System Options.

i was having the same problems as these other guys....the survery shows in vbulletin options but nowhere else. i went to the link you you posted and i get this error message

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/arbtalk/public_html/forums/survey.php on line 7

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/arbtalk/public_html/forums/survey.php on line 7

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arbtalk/public_html/forums/survey.php on line 7

lasto 10-31-2007 06:24 PM

the demo page in 1st post in IE throws up some pretty bad viruses when viewing it.
Had to terminate 3 with Mod32 so not sure why no one else gets them.

fulviods 11-05-2007 05:33 PM

i saw also some bad viruses...

dutchbb 11-06-2007 06:47 PM

Where can I translate this sentence: "Required questions were not answered"

I have been looking everywhere, thats one downside about this hack: no phrases....

prabhgrewal 11-18-2007 03:55 PM

Hey Spikeman,

Sorry if i sound a little dumb on this :(, but could you help me out here....i did everything as you said...but for the life of me cant figure out a way to access the survey on my site...i mean i installed the product (imported it into Admin CP) etc etc ...but how do i use the survey ?? I Cant see it on the site...

Cheers

prabhgrewal 11-18-2007 04:42 PM

Quote:

Originally Posted by prabhgrewal (Post 1385021)
Hey Spikeman,

Sorry if i sound a little dumb on this :(, but could you help me out here....i did everything as you said...but for the life of me cant figure out a way to access the survey on my site...i mean i installed the product (imported it into Admin CP) etc etc ...but how do i use the survey ?? I Cant see it on the site...

Cheers

Ignore this ...:o..managed to get it working...:) great hack spikeman..

Thanks

amiecn 11-20-2007 04:32 PM

anyone know if this works with 3.6.8 or if there is one that is compatible with 3.6.8?

VGPelega 11-21-2007 07:05 PM

I have seen several other posts with this error:

Quote:

Warning: require(survey/classes/main.class.php) [function.require]: failed to open stream: Permission denied in /survey.php on line 8

Warning: require(survey/classes/main.class.php) [function.require]: failed to open stream: Permission denied in /survey.php on line 8

Fatal error: require() [function.require]: Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
And it has not been answered, addressed, or responded to.

I am having this error aswel, and I would very much like to enjoy this mod, and click installed. Please can you provide us with a solution to this error please. I have followed your instructions, (about 7 times now) and I have had no luck. I am running 3.6.8 and if this is just a permissions issue, please let me know.

Spike is here for about 4 mins every 2-3 months, he is obviously busy, perhaps pass this onto someone else, who can finish it off, and take it out of Beta Stage, and provide sufficient support for this awesome hack?

patch developer 12-05-2007 05:01 AM

Actually i faced some trouble with this survey system and then i found a solution for it , the problem was writing permissions to the directories under survey directory , to solve this i change the access right to 755 except this file under smarty directory which called smarty.class.php you have to keep it as 644 to work fine

i translate the template defult into arabic as i could as it was possible and you can find this in attachments

thanks alot for the coder of this , this solution can help alot in researches

goorgoor 12-06-2007 05:07 PM

i get this error:

Error: Cannot find file: ./survey/smarty/Smarty.class.php

David_McPherson 12-12-2007 10:51 PM

I've looked through this thread for an answer to this question and my apologies if its been answered.

When I go to http://links.domain.com/forum/survey.php I get this:

Quote:

WARNING: Cannot find default template path. Expecting: D:\\webpage\\links/survey/templates/Default
The location of the these templates for survey should be...

<rootweb>\links\FORUM\survey\templates\default.. . Or something like that.

On line 7 of the survey.php it has:
Code:

require("./global.php");
this that determines the location.. Or am I wrong? Its just not pointing to the right place.

klaush 12-17-2007 10:14 AM

I never got this stuff to work with 3.5.x, but this is working fine with 3.6.8. Thank you for the amazing job on this mod!

Did anybody translate this mod in the German language?

David_McPherson 12-18-2007 07:02 PM

I'm on 3.6.3 and still nothing. Same problem as above.

JADM 12-20-2007 12:54 AM

I am using 3.6.8, no problems...This is a great product! One question, can you update/edit a previously completed survey? I am trying to get people to post time of various events as they go through a process. But if not, I think I have to break my 25 question survey down into steps in the process.

Also, anyone know what is up with support? It looks like Spikeman has not been around in a long time. This is a great tool, its a shame if it just withers on the vine.

Thanks!

jpbryan 01-10-2008 11:12 PM

Quote:

Hey Spikeman,

Sorry if i sound a little dumb on this , but could you help me out here....i did everything as you said...but for the life of me cant figure out a way to access the survey on my site...i mean i installed the product (imported it into Admin CP) etc etc ...but how do i use the survey ?? I Cant see it on the site...

Cheers
He found it, but to save me I can't.. Help please...

jpbryan 01-11-2008 12:13 AM

Hello,

I got in, I think, (see previous post) but I am getting this;

Quote:

Warning: chmod(): Operation not permitted in /survey/smarty/Smarty.class.php on line 1454
I had to CHMOD to 777 the survey folder and all files...

What am I doing wrong?

Thanks...:confused:

Heika 02-06-2008 06:46 PM

I just installed this survey software, and it is incredible. My only concern is whether it will be updated to work with 3.7.0...

SteveC 02-08-2008 05:24 AM

Quote:

Originally Posted by prabhgrewal (Post 1385021)
Hey Spikeman,

Sorry if i sound a little dumb on this :(, but could you help me out here....i did everything as you said...but for the life of me cant figure out a way to access the survey on my site...i mean i installed the product (imported it into Admin CP) etc etc ...but how do i use the survey ?? I Cant see it on the site...

Cheers

well I can't figure it out. The instructions in one place say to go to admincp/vbsurvey_install.php but there's no files in the admincp folder in the download.

Could you please add some instructions to the main post along with the install instructions?

Can someone tell me how to get it to run?

Heika 02-08-2008 05:58 AM

After you get it all installed, go to whatever your forum's name is, and then add /survey.php.

www.whateveryourforumiscalled.com/survey.php

From there, you can create whatever type of survey you would like. The mod has a really nice survey setup area, very versatile.

Heika

SteveC 02-08-2008 01:05 PM

Thanks Heika. I had tried that, but all it does is bring up a screen to take or view sample surveys. Shouldn't there be a button or link within my forum to create surveys? And for users to take them once one is created?

I suspect there's some installation step that didn't happen. Was there supposed to be a file in the admincp folder in the download?

Bubble #5 02-13-2008 07:06 AM

Quote:

Originally Posted by Heika (Post 1437593)
My only concern is whether it will be updated to work with 3.7.0...

Yes, is there any word on this? :confused:

Heika 02-13-2008 07:27 AM

Quote:

Originally Posted by SteveC (Post 1438875)
Thanks Heika. I had tried that, but all it does is bring up a screen to take or view sample surveys. Shouldn't there be a button or link within my forum to create surveys? And for users to take them once one is created?

I suspect there's some installation step that didn't happen. Was there supposed to be a file in the admincp folder in the download?

Hi Steve,

At the bottom of the screen, does it have a link text that says, "Create New Survey" and "Documentation"? If not, there is a problem with the installation or your permissions. Did you give admins permission to create a survey? You can find the screen to grant permissions under Vbulletin Options------> Survey System options. 5 and 6 are moderators and admins, unless you created special user groups. 2 is registered users for most groups, and that would give them permission to take the surveys you create.

The admincp folder in the installation package was empty for me, too.

Heika

Basit 03-04-2008 05:10 AM

Thank you very much, it's working great on my site.

http://www.hallagulla.com/urdu/survey.php

Regards,

dilbert 03-20-2008 02:11 PM

Quote:

Originally Posted by Basit (Post 1456512)
Thank you very much, it's working great on my site.

http://www.hallagulla.com/urdu/survey.php

Regards,

What version of vB are you using? I see you are using branding free, if you don't want to post it here, feel free to PM it to me.

Thanks

MDK-Indy 03-22-2008 07:25 PM

Quote:

Originally Posted by Datenpapst (Post 1129255)
I have got a problem with the survey. Its not showing the results afert I answered the questions. Dont know why :(

I have the same problem.
Can anyone help me?

greeting Indy

Defkalion 04-04-2008 12:26 PM

Can anyone port this to work with v3.7 also? It is a very useful tool to ignore!

powerful_rogue 04-17-2008 10:51 AM

Quote:

The following dependencies were not met:

1. This product is not compatible with version 3.7.0 Release Candidate 2 of vBulletin. (Compatible starting with 3.6.0 / Incompatible with 3.6.99 and greater)
Thats such a shame. I really hope this will be updated to work with 3.7 as I could really do with this on my board.

powerful_rogue 04-17-2008 10:55 AM

Ive just removed

Quote:

<dependencies>
<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.6.99"></dependency>
</dependencies>
from the product file and it installs fine. Had a quick look and it seems to be working with no errors. Will give it a proper test later, however looks like it is compatable with 3.7 :)

oleg.bno 04-25-2008 06:35 PM

Followed all instructions, in vbulletin options showed up as survey system options, all the options are good but nothing shows up on a forum..
How do I create s survey?

I have vBulletin v3.6.10 and vB Survey 3.6.3

Thanks

Defkalion 04-27-2008 08:48 PM

Did you access the survey page? (yourforumname.com/forumdirectory/survey.php) ?

edytwinky 05-23-2008 07:21 PM

Nice hack!

Heika 06-10-2008 03:50 AM

I finally got around to upgrading to 3.7.1, and I am very happy to report that the survey works just fine for me, after I removed the dependency stuff from the product file as suggested by powerful rogue.

Very powerful.. excellent survey software.

pauldack 06-12-2008 10:13 AM

Nice, jsut what I'm looking for but can't get it working.

Not sure what I'm doing wrong here. Uploaded survey.php to forum diretory, uploaded survey folder to forum directory and isntalled product, all ok. Whne I browse to forumname/survey.php I get error below when the path name it's expecting is actually the directoy above my forum?

WARNING: Cannot find default template path. Expecting:

Serched this thread and can't find any help. Appreciate any pointers.

mtbnj_guy 06-12-2008 08:38 PM

Hi.

It tells me that I can't install on anything greater than 3.6.99. True?

If not, what is the magic :)

Thanks.
Tim


All times are GMT. The time now is 04:41 PM.

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.01570 seconds
  • Memory Usage 1,854KB
  • 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
  • (1)bbcode_code_printable
  • (15)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