PDA

View Full Version : vB Survey: Add a full-featured survey tool to your forum


Pages : [1] 2

tamarian
06-13-2005, 10:00 PM
A 3.6.x version by spikeman is posted here:
https://vborg.vbsupport.ru/showthread.php?t=131650


What this hack does:

This hack will add a full featured survey application system to your forum. You can survey your members opinions on various topics, or allow usergroups to create their own surveys.

Credits: John W. Holmes (http://www.bigredspark.com/): Author of UCCASS Survey.

Application Features: See the UCCASS site for full details. After testing several survey apps, I find this one to be the best:

http://www.bigredspark.com/survey.html

The UCCASS offers some advanced features such as branching conditionals (allows hiding/displaying questions based on specific answers), result filtrations and much more.

Integration features:
Replaced authentication with VB's user database
Set permissions per usergroup, for admin/edit/create/take and view results priviliges.
Replaced config files with vB admin settings
Applied vB style to the UCCASS templates (it uses Smarty)

vB Survey added features: (some will be ported back to UCCASS)
Added anonymity option. If a survey is not anonymous, members can see how other members answered.
Added Hide/unhide survey option. This is useful to send surveys to specific users or usergroups.
Added Date answer types (D), with dropdown lists for day, month, year to ensure correct date entry.
Added REGEX control for new answer types, to control the answer format.
Added size control for single like text answers and REGEX answers.

Liscense: The original UCCASS Survey application is released under a modified GPL Liscense (Aferro GPL) : http://www.bigredspark.com/survey/license.txt (or look under the /docs directory in the zip file)

Installation difficulty:
o File changes: None
o DB changes: No changes, 19 new tables

Installation:

Unpack the included file
Copy vbsurvey_install.php to your admincp directory
Copy survey.php to your main forum directory
Copy the survey directory below your forum directory (cannot change the directory name)
run the vbsurvey_install.php script in the admincp directory
Go to AdminCP => vBulletin Options => vB Survey (UCCASS) and set the toptions for acess and other settings
If you get permission errors, change file permissions for the survey directory and its contents to 744, and the owner/group to apache:apache (or, some servers are setup to nobody:nobody):

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


Upgrade Instructions:
If you are upgrading from vB 3.0.x to vB 3.5 and already had this hack installed, all you need to do is download the zip file, and re-uploade all the files to over-write the old ones.

Added in v1.7.1 (August 26th, 2005

Hide edit menu if user not allowed to edit surveys.


Added in v1.7 (August 7th, 2005

Bug fix in editing answer types.


Added in v1.6 (June 12th, 2005

Upgraded for vB 3.5 beta
Upgrad instructions: If you already have vB Survey 1.5 installed, you just need to upload all files, but no need to run the upgrade script.


Added in v1.5 (June 7th, 2005

Added a new answer type R, for Regular Expressions (REGEX). This will allow new types to be defined for answers, with controlled format. If the question is required, users will receive an error messages, until they enter the proper format. If the question is optional, the users will only get an error if they try to answer the question, but with the wrong format.
Note: You can disable REGEX type questions by editing the templates.
The Size of type 'S' (Sentence) can now be changed, and no longer hardcoded as 50 characters.
To upgrade, you will need to run the upgrade option in the installation script and re-upload all the files.


Added in v1.3 (June 5th, 2005

Added a new answer type D, for Dates. This will show 3 dropdown lists for day, month, year, to ensure a uniform formate for dates entered by the user, instead of a text box.
Fixed a bug in the anonymous message display. It would state survey is not anonymous, when it actually is.
To upgrade, just re-upload the files (classes and templates directories)



Added in v1.2 (June 4th, 2005)

Removed the "Previous page" button, if the page is the first page of a survey.
Answers in the new/edit answer page are sorted by the numeric value. This allows you to add a later value, but set the order higher, without re-editing the whole list to arrange it.
Fixed a bug in quotes and escapes in the answer types edit.
Upgrade instructions: Just re-upload the classes directory.


Added in v1.1 (June 4th, 2005)

Added anonymity option. This is decided when creating the survey. Once set, it cannot be changed. If the survey is not anonymous, users will see on the survey intro a message that they survey is not anonymous, and that their usernames will show in the results table. The results table will show the usernames and a link to their profile.
Added Hidden option: By default, all active surveys show up on the main page as available surveys. If you set the survey propert to hidden, the survey can still be active, but not show up for members. This can be useful if you want to email the link to a selected user group. Admins and the survey author will still be able to see hidden surveys.
Navbar update to list the various locations in the survey pages.
The previous version showed the "no permission" to guests. Now you can allow guests to view the surveys and results by putting usergoup 0 in the admin panel in usergroups who may see the results. But other priviliges will be ignored.
A couple of bug fixes
Upgrade instructions: Just re-upload all the files, including survey.php


Notes:
The "do not remove" comment on the copyright link in the footer is from the original UCCASS footer template. You may contac the original author, John W. Holmes (http://www.bigredspark.com/), for permission to remove the copyright notice, he's willing to talk :) according to their support forum.

Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=83038) if you have installed this mod.

FleaBag
06-14-2005, 03:42 PM
Truly oustanding - I look forward to installing this! :D

Beermonster
06-14-2005, 04:16 PM
I'm sure I can find a use for this, thanks

BLykMik
07-03-2005, 05:22 AM
Anyone know why I'd get a:

"Call to a member function on a non-object Fatal error: Call to a member function on a non-object in /home/www/mydomain/forums/admincp/vbsurvey_install.php on line 20

Error?

Lines 15-23 look like this:

require_once('./global.php');
require_once('./includes/adminfunctions_template.php');
require_once('./includes/adminfunctions_language.php');

$vbulletin->input->clean_array_gpc('r', array(
'do' => TYPE_STR,
'step' => TYPE_STR));

Marco van Herwaarden
07-03-2005, 06:08 AM
What vB version are you running?

BLykMik
07-03-2005, 06:11 AM
I'm running 3.0.7....

From reading the release notes, I was under the impression that the ability to support 3.5beta was *added*...

Will it not work at all on 3.0.7? Is there an older hack that I would install instead?

Marco van Herwaarden
07-03-2005, 06:26 AM
None of the vB3.5 hacks will work on 3.0.x.

There have been too many internal changes.

tamarian
07-03-2005, 11:36 AM
[QUOTE=BLykMik]I'm running 3.0.7..../QUOTE]

There is a version for 3.0.7:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=82384

BLykMik
07-03-2005, 02:43 PM
Thanks... sorry for my confusion.

tamarian
07-03-2005, 04:09 PM
Thanks... sorry for my confusion.

No problem. Enjoy :)

BLykMik
07-04-2005, 02:31 AM
I have a question about the operation of the survey...

Actually, before I ask, is there vBulletin specific documentation anywhere?

I'm trying to figure out how to make surveys only visible (taking and viewing results) by specified groups.

tamarian
07-04-2005, 03:11 AM
I have a question about the operation of the survey...

Actually, before I ask, is there vBulletin specific documentation anywhere?

No, just the default UCCASS documentation. Anyone interested in writing vB-specific documentation is welcome :)

I'm trying to figure out how to make surveys only visible (taking and viewing results) by specified groups.

That's available through the admincp, "can take survey" and "can view results" options.

Neutral Singh
07-10-2005, 12:50 PM
Dear tamarian, you are truly awesome, love your all hack/extensions. Gives me another reason to upgrade to vB 3.5!! :devious:

Great Work !!

Best Regards

Neutral Singh
07-10-2005, 01:16 PM
I have not checked, is there any option where the completed survey can be posted to thread so that members can comment on these surveys. That would be awesome is the answers could directly ported to a new thread or an already posted thread.

Regards

tamarian
07-10-2005, 01:58 PM
I have not checked, is there any option where the completed survey can be posted to thread so that members can comment on these surveys. That would be awesome is the answers could directly ported to a new thread or an already posted thread.

No, not yet. But it does make sense. Might be worth making it as an addon for those who would like it to behave like a regular poll thread on vB.

subnet_rx
08-02-2005, 06:06 PM
No, not yet. But it does make sense. Might be worth making it as an addon for those who would like it to behave like a regular poll thread on vB.

thanks for porting this over to 3.5. I haven't upgraded yet, but I do use this system on 3.0.7 and would like to know if the surveys I have currently will stay in the system after the upgrade. If not, I'm going to hold off creating any new surveys till after the upgrade to 3.5

tamarian
08-02-2005, 06:42 PM
thanks for porting this over to 3.5. I haven't upgraded yet, but I do use this system on 3.0.7 and would like to know if the surveys I have currently will stay in the system after the upgrade. If not, I'm going to hold off creating any new surveys till after the upgrade to 3.5

You should be fine. Once you upgrade to vB 3.5, you just need to download the zip file here, and upload it to over-write the existing vB Survey code files. Existing surveys will not be impacted.

I'll update the first post to reflect this.

subnet_rx
08-02-2005, 07:43 PM
You should be fine. Once you upgrade to vB 3.5, you just need to download the zip file here, and upload it to over-write the existing vB Survey code files. Existing surveys will not be impacted.

I'll update the first post to reflect this.

ok, sounds good, thanks.

Neal-UK
08-02-2005, 10:16 PM
ok, sounds good, thanks.

will this work on rc1?

tamarian
08-02-2005, 10:21 PM
will this work on rc1?

Yes, it should. I have not tested on RC1 since I'm busy at the moment, but there's nothing new in RC1 that should affect it.

TTG
08-02-2005, 11:10 PM
Confirm it works well on 3.5.0 RC1 .. installed with no problems.
Clicked install.

tamarian
08-02-2005, 11:11 PM
Confirm it works well on 3.5.0 RC1 .. installed with no problems.


Cool, I've update the vB version tag accordingly :up:

Neal-UK
08-02-2005, 11:18 PM
Cool, I've update the vB version tag accordingly :up:

working well, it's amazing. Could use this as a quiz hack too!

Neal-UK
08-02-2005, 11:40 PM
working well, it's amazing. Could use this as a quiz hack too!

One little problem, when i've created a survey, saved it and then gone to the survey listing, I choose the survey, answer it but it is showing no results.

I am then able to take the survey again and the 2nd time it saves the results and wont let me take it again.

Will this happen to those who take the survey or would it just happen to the person who created the survey?

tamarian
08-02-2005, 11:51 PM
One little problem, when i've created a survey, saved it and then gone to the survey listing, I choose the survey, answer it but it is showing no results.

I am then able to take the survey again and the 2nd time it saves the results and wont let me take it again.

Will this happen to those who take the survey or would it just happen to the person who created the survey?

When you create the survey, you can preview the questions and anwer them. The preview mode will not save the results.

When you click on the survey from the main page, it's not a preview and the answers will be save upon completion. Once you have completed the survey, it will not allow you to re-take it.

However, you can reset the survey, which will remove all ansswers, and allow you an others to take it again. This is good for testing.

Neal-UK
08-02-2005, 11:56 PM
When you create the survey, you can preview the questions and anwer them. The preview mode will not save the results.

When you click on the survey from the main page, it's not a preview and the answers will be save upon completion. Once you have completed the survey, it will not allow you to re-take it.

However, you can reset the survey, which will remove all ansswers, and allow you an others to take it again. This is good for testing.

I'll see how things go thanks, but I have done all the preview stuff etc. It was when I went to the main survey listing page, clicked the survey, answered, the results were not there. I had to take it again.

Drakah
08-06-2005, 11:28 PM
Just installed fresh on 3.5.0 RC2. I have this error:

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

..what to do? :(

Also, I did have a writing error for template_c, but in order for it to write I had to change the chmod to 777 /shrug.

Drakah
08-06-2005, 11:42 PM
Well I think I fixed it. Had to make all the TPL files to 777.

tamarian
08-06-2005, 11:46 PM
Just installed fresh on 3.5.0 RC2. I have this error:

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

..what to do? :(

Also, I did have a writing error for template_c, but in order for it to write I had to change the chmod to 777 /shrug.

No need for 777, follow the steps for 744:

If you get permission errors, change file permissions for the survey directory and its contents to 744, and the owner/group to apache:apache (or, some servers are setup to nobody:nobody):

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

Drakah
08-06-2005, 11:49 PM
I did, I changed it to 744 and didnt work, and when I did try and do that command for apache, my ftp program did not recognize the command.

tamarian
08-07-2005, 12:19 AM
I did, I changed it to 744 and didnt work, and when I did try and do that command for apache, my ftp program did not recognize the command.

Yes, 744 won't work unless you change the file owner. Not sure how to do this with FTP. Anyway, glad you got it working, enjoy :)

Drakah
08-07-2005, 12:33 AM
Thanks :) I love this :)

Drakah
08-07-2005, 01:04 PM
Just a small comment, visual idea... I deleted a survey and the next page said "Survey #2 does not exist.". Would like to see maybe the next screen asking me if "Are you sure you want to delete Survey #2: (title of survey here)?" If not a confirmation box, perhaps just "Survey #2: (title of survey here) has been deleted - Click here to go back to the Survey Listings". ... or something. :)

Oh and a little type I found :)
"Anonymous Survey?
Select no, if you want to displaye the usernames in the results next to their answers."

Drakah
08-07-2005, 02:04 PM
Got a problem.

I went to edit an answer type.
Choose Answer Type [ Edit Answer Type] [ View Answer Types ]

And when I clicked on the button for Edit Answer Type, it just refreshed the listing and did not allow me to actually edit anything.

tamarian
08-07-2005, 02:50 PM
Got a problem.

I went to edit an answer type.
Choose Answer Type [ Edit Answer Type] [ View Answer Types ]

And when I clicked on the button for Edit Answer Type, it just refreshed the listing and did not allow me to actually edit anything.

Yes, I was able to reproduce it. Will make an update later today :)

tamarian
08-07-2005, 03:18 PM
Got a problem.

I went to edit an answer type.
Choose Answer Type [ Edit Answer Type] [ View Answer Types ]

And when I clicked on the button for Edit Answer Type, it just refreshed the listing and did not allow me to actually edit anything.

O.k., download the new version, 1.7, and just upload survey.php to replace the old one.

Drakah
08-07-2005, 07:20 PM
Thank you much :)

hydrostatic
08-07-2005, 08:53 PM
How do you do that apache command? I can't seem to get it working. It always says no permission.

It won't work at all if CHMOD to 744, it works when I CHMOD to 777.

Drakah
08-07-2005, 09:02 PM
It won't work at all if CHMOD to 744, it works when I CHMOD to 777.

Same thing with me, had to do the 777 and it worked fine.

Though I found another bug, yay me! :)

I get this error when I click on the "Values" link.
".../forums/display_answers.php?sid=28
could not be found."

See screenie :)

Drakah
08-07-2005, 10:08 PM
The setting for when users complete the page, I clicked on the [?] and the document told me there is a place to put in your own URL as a thank-you page. Where is the field to add this?

Also, I would like to figure out how to have a "If Statement" to display on the home page whether they have taken the survey or not. I am thinking of creating a survey graphic to display on my CMPS (vbadvanced) portal home page saying to take the survey, and when they do, it would disappear. Any ideas?

tamarian
08-07-2005, 10:29 PM
I get this error when I click on the "Values" link.
".../forums/display_answers.php?sid=28
could not be found."

The "values" link opens a popup windows with a list of possible values of the answers. What was the actual link? It should link to the main survey.php page.

The setting for when users complete the page, I clicked on the [?] and the document told me there is a place to put in your own URL as a thank-you page. Where is the field to add this?

It's one of the options when creating a survey.

Also, I would like to figure out how to have a "If Statement" to display on the home page whether they have taken the survey or not. I am thinking of creating a survey graphic to display on my CMPS (vbadvanced) portal home page saying to take the survey, and when they do, it would disappear. Any ideas?

This will require a query each time the main page is loaded, so I wouldn't recommend it. But it isn't hard. The only problem is which survey you want to check. If you have only one survey, say #28, you can query it like this:

$TookSurvey = $DB_site->query_first("SELECT uid FROM " . TABLE_PREFIX . "vbsurvey_completed_surveys WHERE uid = $bbuserinfo[userid])

Drakah
08-07-2005, 10:41 PM
The "values" link opens a popup windows with a list of possible values of the answers. What was the actual link? It should link to the main survey.php page.

No it doesn't. Somehow it is looking for a display_answers.php file and not looking in the survey folder in any rate, and there is no such PHP file in the survey files, although there is a tpl file I think. The actual link pointed to my forum home directory and not the place where it needs to look. Seems like the only link that really didn't work for me.


It's one of the options when creating a survey.

I don't see that option when creating or even in the edit survey area, as per screenshot. I looked in the TPL file and there is no reference to a field in making a URL as the redirect.



Thanks for your help :)

hydrostatic
08-08-2005, 01:22 AM
Also, when you go to Edit Survey, the top of the page doesn't say anthing. It just says:

[Forum Name] - - Mozilla Firefox

TTG
08-08-2005, 01:36 AM
All seemed to be working well until I installed the new 1.7 survey.php .. now I just get a blank page !?

tamarian
08-08-2005, 11:58 AM
I don't see that option when creating or even in the edit survey area, as per screenshot. I looked in the TPL file and there is no reference to a field in making a URL as the redirect.[/QUOTE]

It's the "Completion Redirect Page" section in the survey properties. It has two choices, back to the main survey page, or to the results page.

Drakah
08-08-2005, 12:00 PM
It's the "Completion Redirect Page" section in the survey properties. It has two choices, back to the main survey page, or to the results page.

Right, but isn't there supposed to be 3 choices, 1 being a URL to enter instead?

tamarian
08-08-2005, 12:04 PM
Also, when you go to Edit Survey, the top of the page doesn't say anthing. It just says:

[Forum Name] - - Mozilla Firefox

This is true of all the pages :) I have not paid attention to the page titles. I'll take care of it on the next update. For now, you can edit the vbsurvey template, to get rid of the dash if you want, or make a generic title like "Survey".

tamarian
08-08-2005, 12:06 PM
All seemed to be working well until I installed the new 1.7 survey.php .. now I just get a blank page !?

What do you mean? You were upgrading? From which survey version, and from which vB version to which vB version?

tamarian
08-08-2005, 12:08 PM
Right, but isn't there supposed to be 3 choices, 1 being a URL to enter instead?

You might be talking about the UCCASS survey? The integrated vB version is different than the original product, with added features and some removed features.

Drakah
08-08-2005, 12:12 PM
OOOHHH thats why I thought there was a field and didn't see it LOL okay. Well, hmm... anyway of me hacking it to go to a custom template or page of some sort? Just thinking it would be nice to have it bring up a page just saying "Your survey has been completed, thank you! You are now being redirected to the forum home page".

tamarian
08-08-2005, 12:20 PM
OOOHHH thats why I thought there was a field and didn't see it LOL okay. Well, hmm... anyway of me hacking it to go to a custom template or page of some sort? Just thinking it would be nice to have it bring up a page just saying "Your survey has been completed, thank you! You are now being redirected to the forum home page".

You can edit these lines in survey/classes/survey.class.php

case 'index':
case '':
$url = $this->CONF['html'] . '/survey.php?$session[sessionurl]';
break;
case 'results':
$url = $this->CONF['html'] . '/survey.php?$session[sessionurl]&do=results&sid=' . $sid;
break;

And replace with the page you want.

Drakah
08-08-2005, 12:24 PM
Very cool, thank you so much!!

peterska2
08-19-2005, 12:58 PM
Hiya, I've just installed and I am getting the following errors when I go to access myforums/survey.php

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

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

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/php/includes') in /home/www/*******/survey.php on line 8

I have tried both versions 1.6 and 1.7 and have CHMod'ed my survey directory to both 744 and 777 with no joy on either.

My forums are on my site root ie mysite/index.php is my forums homepage.

tamarian
08-19-2005, 01:01 PM
I have tried both versions 1.6 and 1.7 and have CHMod'ed my survey directory to both 744 and 777 with no joy on either.

Was chmod, or chmod -R? Make sure you use -R as described in the first post.

peterska2
08-19-2005, 01:08 PM
I'm doing it via FlashFXP so it has the option to set the chmod value and a check box for apply to all files and subfolders.

I'm just re-chmod'ing so bear with a min and I'll see if this fixes it.

[edit]

The chmod has now finished. I've set it to 777 again and now I have these messages.

Missing file: /home/www/*****/survey/ADOdb/drivers/adodb-mysql.inc.php
ADONewConnection: Unable to load database driver ''


Fatal error: Call to a member function on a non-object in /home/www/******/survey/classes/main.class.php on line 165

tamarian
08-19-2005, 01:19 PM
I'm not familiar with FlashFXP. Have you verified that the permissions and ownership have been correctly set in the sub directories?

peterska2
08-19-2005, 01:25 PM
Found the problem. All the files hadn't uploaded properly. I'm reuploading then I'll report back. Might be some time though.

peterska2
08-19-2005, 02:12 PM
Ok crakced it. It was the missing files so once they were uploaded I chmod'ed to 777 again and now I've got it up and running.

tamarian
08-19-2005, 02:37 PM
Ok crakced it. It was the missing files so once they were uploaded I chmod'ed to 777 again and now I've got it up and running.

Glad to hear it :)

Cheertobi
10-01-2005, 09:19 PM
Hi,

does this work with 3.5 Gold?! Loved it on my 3.0.7 forum ;)

Regards,

Tobi

tamarian
10-01-2005, 09:35 PM
Hi,

does this work with 3.5 Gold?! Loved it on my 3.0.7 forum ;)

I released another version for 3.5, click on my profile to see it listed there.

csidlernet
10-05-2005, 02:47 AM
thanks very much dude!
/me installs

silurius
10-05-2005, 04:25 AM
Tamarian, you're two-for-two so far this week. This is the second-most-important expansion to vB I've been looking for!

lamilein
10-07-2005, 12:54 PM
amazing hack!
* lamilein instantly clicked install after testing it out

the only thing i'm missing is an "update" to make use of the UCASS 1.8 features like the Access Control - any chance to see this configurable on a survey-properties-based solution soon? :)

tamarian
10-07-2005, 01:17 PM
amazing hack!
* lamilein instantly clicked install after testing it out


the only thing i'm missing is an "update" to make use of the UCASS 1.8 features like the Access Control - any chance to see this configurable on a survey-properties-based solution soon? :)

They are already there, plus some features (date, regex) not yet in UCCASS. :)

dilbert
10-09-2005, 12:27 AM
Installed and trying to get working.

I am creating my first survey. The entire survey is showing up on one page, I'd prefer the style where the user clicks "Next Question" but I don't see where to set that.

Oh yeah, very nice addition, thanks.

tamarian
10-09-2005, 12:34 AM
I am creating my first survey. The entire survey is showing up on one page, I'd prefer the style where the user clicks "Next Question" but I don't see where to set that.

Add a page break question, that will create a second page.

Romeos Tune
10-09-2005, 01:26 AM
I haven't really dug into it yet but I'm wondering..... Will this thing let you give a result to the survey taker? For instance, say you wanna make some goofy tests just for fun like "Measure your Romance Level" The person answers the questions and based upon those answers a certain predefined rating or phrase will be shown to them.

If not, how hard would this be to add?

tamarian
10-09-2005, 01:37 AM
I haven't really dug into it yet but I'm wondering..... Will this thing let you give a result to the survey taker? For instance, say you wanna make some goofy tests just for fun like "Measure your Romance Level" The person answers the questions and based upon those answers a certain predefined rating or phrase will be shown to them.

If not, how hard would this be to add?

It will allow members, based on the settings, to see the actual results. But I think what you're asking about is more like a quiz, then showing how they scored? It doesn't do that, and would require a lot of hacking.

Romeos Tune
10-09-2005, 01:40 AM
Right.... Well shoot.... I thought I'd ask.... That'd be a blast to be able to add fun little quizzes like you see on some sites. Thanks for the quick response! :)

Ozster
10-11-2005, 08:16 AM
having problems getting this to work, i had to add <?PHP as my server just gave me the PHP code, now when i click on any link on survey.php it just refreshes and doesnt do very much, im sure this is an awesome hack and no doubt im doing something wrong which is the annoying part.

im on 3.5 gold

tamarian
10-11-2005, 12:32 PM
having problems getting this to work, i had to add <?PHP as my server just gave me the PHP code, now when i click on any link on survey.php it just refreshes and doesnt do very much, im sure this is an awesome hack and no doubt im doing something wrong which is the annoying part.

im on 3.5 gold

Have you updated the file permissions?

DrewM
10-13-2005, 08:51 AM
1 Question..(Probably a dumb what but..) I installed VB Survey for VB3.5 into my VB 3.5 (New installation)(DUH!!)

It went fine. I can edit the survey settings in AdminCP, where do I go to set up a new survey?? I don't see an obvious link anywhere?? (Of course, I could be blind)

tamarian
10-13-2005, 01:19 PM
1 Question..(Probably a dumb what but..) I installed VB Survey for VB3.5 into my VB 3.5 (New installation)(DUH!!)

It went fine. I can edit the survey settings in AdminCP, where do I go to set up a new survey?? I don't see an obvious link anywhere?? (Of course, I could be blind)

Go to your admincp -> vBulletin Options -> vB Survey and set the permissions for which usergroups can creat/edit/take/view surveys. Then go to the main page, if your usergroup has the permission to create surveys, you should see a button at the buttom to create a survey.

DrewM
10-13-2005, 06:47 PM
Go to your admincp -> vBulletin Options -> vB Survey and set the permissions for which usergroups can creat/edit/take/view surveys. Then go to the main page, if your usergroup has the permission to create surveys, you should see a button at the buttom to create a survey.

Ok, what else should I look for, if I set permissions for the groups & still do not get a button on the main page?? :ermm:

trilljester
10-13-2005, 07:02 PM
Interesting mod. Can it be modified or are there plans for it to post results in a specific forum? I'd use something like this for my annual Oscar guessing survey thing every year if it could, so everyone can see what others guessed.

Bobby S
10-13-2005, 07:26 PM
Wonderful!

tamarian
10-13-2005, 09:29 PM
Ok, what else should I look for, if I set permissions for the groups & still do not get a button on the main page?? :ermm:

And you belong to the usergoup than can create surveys? Note this has to be a promary group, not secondary group.

tamarian
10-13-2005, 09:31 PM
Interesting mod. Can it be modified or are there plans for it to post results in a specific forum?

Not an easy modification. No concrete plans, so if anyone wants to attempt it, feel free. :)

nailerpa
10-14-2005, 02:03 AM
I'm not seeing a link to create a survey on my main page. I've given permissions to the appropriate groups. Is it possible to provide a screen shot as to what it looks like (i.e. the location on the page of the link)? Thanks!

Go to your admincp -> vBulletin Options -> vB Survey and set the permissions for which usergroups can creat/edit/take/view surveys. Then go to the main page, if your usergroup has the permission to create surveys, you should see a button at the buttom to create a survey.

tamarian
10-14-2005, 02:07 AM
I'm not seeing a link to create a survey on my main page. I've given permissions to the appropriate groups. Is it possible to provide a screen shot as to what it looks like (i.e. the location on the page of the link)? Thanks!

It should be at the bottom of the page:

https://vborg.vbsupport.ru/attachment.php?attachmentid=27047

DrewM
10-15-2005, 08:49 PM
And you belong to the usergoup than can create surveys? Note this has to be a promary group, not secondary group.

I have checked (& doubly checked) this...The only thing I can find is that when I go to view my user, It shows me in no public groups, but when I go to add, it shows me in the groups (primary & sub) that I expected.

I set the VBSurvey groups to 2,5,6,7 on all sections, for testing...

Still no go...Any other ideas??

DrewM
10-15-2005, 08:52 PM
I did notice that it mentions Template Changes are needed during the install...Was this done automatically, during the installation, or did it need to be done manually??

tamarian
10-15-2005, 09:15 PM
I did notice that it mentions Template Changes are needed during the install...Was this done automatically, during the installation, or did it need to be done manually??

No template edits required. So you are logged in as admin, and your primary group is admin = 6, and you cannot see the create button shown in the screenshot?

nailerpa
10-15-2005, 10:07 PM
I have checked (& doubly checked) this...The only thing I can find is that when I go to view my user, It shows me in no public groups, but when I go to add, it shows me in the groups (primary & sub) that I expected.

I set the VBSurvey groups to 2,5,6,7 on all sections, for testing...

Still no go...Any other ideas??

I'm still having the problem of the Create New Survey button not showing, too. I've double-checked to make sure all of the files were uploaded. They are. The install script seems to have run successfully. Anything else I should look for?

tamarian
10-15-2005, 11:48 PM
So far no one has confirmed that they have logged in as an admin.

I have just uninstalled, downloaded the zip file, re-installed from scratch, and I can see the create link.

Not saying there isn't a problem, maybe there is, but without any details as to what steps you followed and what settings you have, and how you're logged in, I would not be able to reproduce the problem.

nailerpa
10-16-2005, 12:29 AM
So far no one has confirmed that they have logged in as an admin.

I have just uninstalled, downloaded the zip file, re-installed from scratch, and I can see the create link.

Not saying there isn't a problem, maybe there is, but without any details as to what steps you followed and what settings you have, and how you're logged in, I would not be able to reproduce the problem.

Oops...I was looking at the wrong page all along. I wasn't looking at survey.php. I was looking at my main page. Sorry for the inconvenience.

djmac
10-16-2005, 07:58 AM
I love this hack.... Installed without a hitch. I hit a couple of CHMOD errors but it was nothing I couldn't fix. Great work! :cool:

subnet_rx
10-22-2005, 08:20 PM
I have upgraded to 3.5 but erased all the old files from 3.x. I have installed this hack, but just get a blank page when I click on survey.php. The settings screen in AdminCP works fine. Should I use one of the installation/upgrade options in vbsurvey_install?

tamarian
10-22-2005, 08:31 PM
I have upgraded to 3.5 but erased all the old files from 3.x. I have installed this hack, but just get a blank page when I click on survey.php. The settings screen in AdminCP works fine. Should I use one of the installation/upgrade options in vbsurvey_install?

You have uploaded survey.php and the survey directory? Don't forget to re-do the chmod instructions, as the upload may alter the file permissions.

subnet_rx
10-22-2005, 08:44 PM
the only chmod instructions I see are making survey.php 744, which I have done that. I also uploaded everything in the forum folder.

tamarian
10-22-2005, 08:58 PM
the only chmod instructions I see are making survey.php 744, which I have done that.

No, it's for the entire survey directory.

* If you get permission errors, change file permissions for the survey directory and its contents to 744, and the owner/group to apache:apache (or, some servers are setup to nobody:nobody):

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

subnet_rx
10-22-2005, 09:14 PM
Still nothing. I couldn't execute the chown command, but this worked perfectly on 3.x without any of this. Default permissions on my server is 755 on folders and 644 for files.

Onimua
10-22-2005, 09:33 PM
Not sure if it's been mentioned (large thread, bit too much reading for me), but for some reason isn't working with my sub-domain.

For example, I have the following: http://sub.domain.com/survey.php

However, when I click anything, it will suddenly switch to: http://www.domain.com/survey.php [or anything I click, like even: http://www.marchosis.com/survey.php?do=new_survey ]

For some reason it won't stay on the subdomain but switch to the domain itself. Did I do something wrong? :ermm:

tamarian
10-22-2005, 09:57 PM
Not sure if it's been mentioned (large thread, bit too much reading for me), but for some reason isn't working with my sub-domain.

For example, I have the following: http://sub.domain.com/survey.php

However, when I click anything, it will suddenly switch to: http://www.domain.com/survey.php [or anything I click, like even: http://www.marchosis.com/survey.php?do=new_survey ]

For some reason it won't stay on the subdomain but switch to the domain itself. Did I do something wrong? :ermm:

It was meant to run on your forum URL.

Onimua
10-22-2005, 10:11 PM
It was meant to run on your forum URL.

That's what I mean't. It's if I edit the URL manually (checked) fine, but the URL changes from my forum URL to my regular URL whenever I click something. It loses the subdomain part (and my forums are on my subdomain).

tamarian
10-22-2005, 10:17 PM
That's what I mean't. It's if I edit the URL manually (checked) fine, but the URL changes from my forum URL to my regular URL whenever I click something. It loses the subdomain part (and my forums are on my subdomain).

Check your vBulletin Options -> Site Name/URL and make sure your forum URL is using that subdomain.

Onimua
10-22-2005, 11:26 PM
Check your vBulletin Options -> Site Name/URL and make sure your forum URL is using that subdomain.

Thought it was correct when I installed it; oh well... works now, thanks. :)

Ozster
10-25-2005, 07:31 AM
im told by our server admin that the permissions are automatically set to give me write permissions (windows server), when i go to survey.php and click any link it just refreshes

mikadit
10-25-2005, 10:16 AM
This mod is quite interesting, a great work.
I have just a question about the unistaling part. If I'd like to unistall the mod, do I have to delete the new db tables and delete the uploaded files to go back to my original forum' set? Just it or something more?

- Edit ---------
Ok, founded by myself, by reading the code of the vbsurvey_install.php file, everything is automated by running the vbsurvey_install.php itself, install and unistall options are integrated in the same file. Clear and smooth.

secret1980
11-02-2005, 05:01 AM
works good :) clicked install :D

is there a way such tht we can add our own options ?

tamarian
11-02-2005, 03:46 PM
im told by our server admin that the permissions are automatically set to give me write permissions (windows server), when i go to survey.php and click any link it just refreshes

The permission needs to be given to the apache server, not the user.

tamarian
11-02-2005, 03:47 PM
is there a way such tht we can add our own options ?

Not sure what you mean. Options for survey answers? Those can be easily created in the new/edit answers.

dilbert
11-09-2005, 10:34 PM
The last time I looked at the survey section of my site it worked, today I updated to 3.5.1 and now my survey is a blank page.
Does this work with 3.5.1?
Here is my forum: http://www.bloodbanktalk.com/forum/survey.php - the survey page is listed in the links on the left under Forum Extras.
Here is a direct link to the survey page: http://www.bloodbanktalk.com/forum/survey.php.

tamarian
11-09-2005, 10:59 PM
The last time I looked at the survey section of my site it worked, today I updated to 3.5.1 and now my survey is a blank page.
Does this work with 3.5.1?
Here is my forum: http://www.bloodbanktalk.com/forum/survey.php - the survey page is listed in the links on the left under Forum Extras.
Here is a direct link to the survey page: http://www.bloodbanktalk.com/forum/survey.php.

vB Survey was done before the new vB product system. So an upgrade to 3.5.1 will overwrite the vbsurvey template. To fix this, just create a new vbsurvey template:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[report_bad_post]</title>
$headinclude
</head>
<body>
$header
$navbar
$body
$footer
<div class="smallfont" align="center">
<BR />
Powered by <a href="http://www.bigredspark.com/survey.html">UCCASS 1.8</a>. Copyright &copy; 2004 <a href="http://www.bigredspark.com/">John W. Holmes</a>, All Rights Reserved <!-- YOU MAY NOT REMOVE THIS COPYRIGHT NOTICE WITHOUT PERMISSION FROM THE UCCASS AUTHOR -->
</div>
</body>
</html>

I'll add an XML product file to avoid this in the future.

dilbert
11-09-2005, 11:13 PM
Wow, thanks for the quick reply.
Silly question, what do I name the template?

tamarian
11-09-2005, 11:21 PM
vbsurvey :)

dilbert
11-09-2005, 11:25 PM
That's what I thought it might be, and I tried that, but it gave me errors - http://www.bloodbanktalk.com/forum/survey.php?.

Is it supposed to be a custom template?

dilbert
11-09-2005, 11:38 PM
Doh, nevermind, I re-uploaded the files when I fist had trouble and I never reset the folder permissions. It seems to be working fine now.

hoangminh
11-15-2005, 07:25 PM
This version of UCCASS (1.8) does not support Unicode. But the 1.8.1 version does.

Would you please show me how to upgrade to this version ?

Thanks in advanced.

tamarian
11-16-2005, 01:36 AM
This version of UCCASS (1.8) does not support Unicode. But the 1.8.1 version does.

Would you please show me how to upgrade to this version ?

There's no easy way of showing you how to upgrade, since this involves several code changes in several files. The problem with those changes is that it will render the survey not compatible with any MySQL prior to 4.x.

hoangminh
11-16-2005, 03:49 AM
There's no easy way of showing you how to upgrade, since this involves several code changes in several files. The problem with those changes is that it will render the survey not compatible with any MySQL prior to 4.x.

Oh, thanks for your quick reply. But I'm Vietnamese, so I have to use Unicode to show content. Everytime I try to submit Unicode character, it converts 2 times so the data display correctly.

For example, when I try to enter the value v? dụ, in database, it should store data as ví dụ , but the current Survey class file parse again the value ví dụ to v&amp;#237; d&amp;#7909; (means it convert & to &amp etc.) before save it to database show the data encoded twice.

Is there any way you could suggest me to solve this problem ?

Thanks in advanced

stutefc
11-16-2005, 11:30 AM
Getting this error...any ideas.

Fatal error: Call to a member function on a non-object in /home2/irishlea/public_html/includes/config.php on line 170

tamarian
11-17-2005, 02:53 AM
Getting this error...any ideas.

Fatal error: Call to a member function on a non-object in /home2/irishlea/public_html/includes/config.php on line 170

You might have installed the wrong version? This one is for vB 3.5, there's another version for 3.0.x

tamarian
11-17-2005, 02:54 AM
Oh, thanks for your quick reply. But I'm Vietnamese, so I have to use Unicode to show content. Everytime I try to submit Unicode character, it converts 2 times so the data display correctly.

For example, when I try to enter the value v? dụ, in database, it should store data as ví dụ , but the current Survey class file parse again the value ví dụ to v&amp;#237; d&amp;#7909; (means it convert & to &amp etc.) before save it to database show the data encoded twice.

Is there any way you could suggest me to solve this problem ?

Looks like it will require an upgrade to 1.8.1. I'll add this to my to-do list, but can't promise anything soon.

hoangminh
11-17-2005, 02:57 AM
Looks like it will require an upgrade to 1.8.1. I'll add this to my to-do list, but can't promise anything soon.

Thank a lot for your support,

I'm looking forward to your new release, again, thank you very much

hoangminh
11-21-2005, 06:59 AM
Edit: my problem solved by edit code in survey.class.php.

Another question, How can I know that which member is participate in the survey and their answer, How to send member a PM his answers in the survey ?

Thanks in advanced

tamarian
11-21-2005, 10:43 AM
Edit: my problem solved by edit code in survey.class.php.

Another question, How can I know that which member is participate in the survey and their answer, How to send member a PM his answers in the survey ?

You can click on view results as table to see how members voted, if the survey is not anonymous. But it does not send PM's to members.

dc3dreamer
11-22-2005, 05:19 AM
Works fine here on vB 3.5.1, except I had to comment out a chown() call in Survey.class.php. Apache server. This is an awesome app, thanks very much for integrating into VB!!! I am amazed.

WNxWakko
12-10-2005, 05:24 PM
I am getting this error at the top when I access the survey.php file.

Notice: Undefined index: HTTP_REFERER in /*****/Forum/includes/class_core.php on line 1555

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /*****/Forum/includes/class_core.php:1555) in /survey/classes/main.class.php on line 28

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /*****/Forum/includes/class_core.php:1555) in /survey/classes/main.class.php on line 28

AWI
12-11-2005, 07:45 AM
Just installed this great addon, thanks it works with 3.5.2 with no problems.

tamarian
12-11-2005, 01:40 PM
I am getting this error at the top when I access the survey.php file.

Have you done the file permissions steps?

Valithor
12-14-2005, 06:28 AM
Ok, I've uploaded all the files etc..

Survey.php seems to work fine, but when I click on Create New Survey - nothing happens.. in fact when i click on view results or take survey for the two example surveys - nothing happens either..

As far as I can tell, I've followed the instructions to the letter. The permissions are set at 777 for survey.php, the survey directory and all the sub-directories..

However, SmartFTP wouldn't recognise the command CHOWN..

StarBuG
12-14-2005, 07:45 AM
Couldn´t this install script be replaced by a product/plugins ?

mariannet
12-22-2005, 12:08 PM
I'm on vB 3.5.2, file permissions fine.

When trying to add question with link "Edit Questions" I get:

Fatal error: Call to undefined function: array_fill() in /home/xxxx/xxxx-www/survey/classes/editsurvey.class.php on line 966

tamarian
12-22-2005, 12:39 PM
I'm on vB 3.5.2, file permissions fine.

When trying to add question with link "Edit Questions" I get:

Fatal error: Call to undefined function: array_fill() in

Are you using a PHP version older than 4.2? This might be the reason.

mariannet
12-22-2005, 12:52 PM
Are you using a PHP version older than 4.2? This might be the reason.

Yes, yes, yes....
Shame, it was just what I was looking for :(

Can't upgrade our PHP as it would mean upgrading our dedicated server with loads of clients. Anyway good job :)

kafi
01-03-2006, 02:18 PM
I am trying to allow unregistered users to take survey but they are stopped by message (you dont have permission....)

Unregistered can see results and main page, but not take a survey. Is it bug or?

Thank you for this fine adoption .-)

kafi
01-04-2006, 08:46 PM
Is the survey recording name of respondents?
There is an option in chart review of results, BUT no name is recorded.

Thank you

mcyates
01-06-2006, 12:53 PM
the download file does not work. Its corrupted.

WNxWakko
01-07-2006, 10:56 PM
Survey died after upgrade to 3.5.3 All I get is a big blank white page now.
http://www.warriornation.net/Forum/survey.php

peterska2
01-08-2006, 12:36 AM
Survey died after upgrade to 3.5.3 All I get is a big blank white page now.
http://www.warriornation.net/Forum/survey.php

upload the install file again and point your browser to it. one of the options is to install templates. click on that one. when it comes up with 'done' and a 'next step' button CLOSE YOUR BROWSER!! otherwise you will lose all data in your survey tables as it will drop them and re-create them.

WNxWakko
01-08-2006, 02:57 AM
yup reinstalling templates fixed it. For whatever reason the upgrade took them out.

dd4w2000
01-12-2006, 07:38 AM
Have this installed and working with no problems on 3.5.2

Recently installed this on vb3.5.3

Now getting the error

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

When attemting to view the demo surveys am getting

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

File permissions for survey and all subdirectories are 777
Strange as i installed a working 3.5.2 version yesterday and today on 3.5.3 (different installation, fresh install on 3.5.3 vb) i am getting these problems.

Any ideas?

OttawaGolf
01-18-2006, 12:01 PM
Installed on a windows server

http://forum.GolfResource.net/survey.php

Registered users set to allow creating surveys see this above my header
Notice: Undefined index: REQUEST_URI in C:\Inetpub\forum\includes\class_core.php on line 1906

Notice: Undefined index: REQUEST_URI in C:\Inetpub\forum\includes\class_core.php on line 1906

Notice: Undefined index: HTTP_REFERER in C:\Inetpub\forum\includes\class_core.php on line 1573

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\forum\includes\class_core.php:1906) in \includes\functions.php on line 3006

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Inetpub\forum\includes\class_core.php:1906) in \survey\classes\main.class.php on line 28

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\forum\includes\class_core.php:1906) in \survey\classes\main.class.php on line 28



Guests see only this on a white page

Notice: Undefined index: REQUEST_URI in C:\Inetpub\forum\includes\class_core.php on line 1906

Notice: Undefined index: REQUEST_URI in C:\Inetpub\forum\includes\class_core.php on line 1906

Notice: Undefined index: HTTP_REFERER in C:\Inetpub\forum\includes\class_core.php on line 1573




Unable to add cookies, header already sent.
File: C:\Inetpub\forum\includes\class_core.php
Line: 1906

xBhp
01-18-2006, 02:55 PM
To make a question mandatory i think we set the required answers to 1. if thats correct it doesnt work in my case. what do i do so that the surveyee has to answer the question in order to move ahead?

Guest210212002
01-18-2006, 07:36 PM
Quick question, does this auto-insert navbar links, or links to it of any kind?

I only ask because there are no template edits in the install docs, and my navbar/etc is setup to the point where the only way I'd want to actually display a link to this would be if I coded it in myself.

Thanks!

xBhp
01-20-2006, 07:29 AM
<i>again puttting up this question as this seems to have gone unnoticed : </i>

To make a question mandatory i think we set the required answers to 1. if thats correct it doesnt work in my case. what do i do so that the surveyee has to answer the question in order to move ahead?

Staircase
01-21-2006, 11:59 PM
I just downloaded it, and all the files are blank.

?!!?

Guest210212002
01-22-2006, 12:08 AM
I just downloaded it, and all the files are blank.

?!!?

Downloaded just fine for me. Try it again.

Staircase
01-22-2006, 12:12 AM
Ohh okay, it's fine now. Thanks. :P

Oh, I'm wondering if this will work on vB 3.5.3, because this is what happens when I run the install file:

Fatal error: Call to a member function on a non-object in /home/port/public_html/habborly/admincp/vbsurvey_install.php on line 66

$DB_site->query("REPLACE INTO " . TABLE_PREFIX . "phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', '" . $varname . "', '" . addslashes($text) ."', '$phrasetype')");
Well, that's line 66. Help?

Staircase
01-22-2006, 02:17 AM
Eh, I really need help. T.T

Also, in the installation instructions, it says to "Copy the survey directory below your forum directory (cannot change the directory name)". Does that mean put it in, let's say, /public_html/ instead of /public_html/forums/ or something? If that's the case, my forum doesn't have a directory below it since it's a forum-only site. Which files should I modify to change that?

If not... I still need help. :P

OttawaGolf
01-22-2006, 09:16 PM
Oh well, after 4 days hoping for a reply, I guess none is forthcoming. I was looking forward to this hack but no cigar for me.

https://vborg.vbsupport.ru/showpost.php?p=876174&postcount=135

Strat
02-05-2006, 05:28 AM
I'm getting a Smarty error.

My server uses Windows 2003 (IIS), not Apache. Setting permissions via FlashFXP isn't working and giving me a 500 error. I know that I need to set all TPL files to 744 as somebody else in this thread had the exact same problem (same Smarty error #).

How can I do this? Anybody know?

Gripemaster
02-05-2006, 02:26 PM
This is an OUTSTANDING feature!!!

Survey sez.... INSTALLED!!! :banana:

Thank you!

tamarian
02-05-2006, 11:58 PM
I'm getting a Smarty error.

My server uses Windows 2003 (IIS), not Apache. Setting permissions via FlashFXP isn't working and giving me a 500 error. I know that I need to set all TPL files to 744 as somebody else in this thread had the exact same problem (same Smarty error #).

How can I do this? Anybody know?

I'm not experienced with windows servers. If no one else here know, you might want to check the UCCASS site/forum, they might have addressed it.

simalert
02-09-2006, 09:24 PM
I can confirm this works with 3.5.3 as it's now running on my forum.

Excellent! Thanks.

Strat
02-12-2006, 03:55 AM
To be more precise, here's the error I'm getting. I got the files CHMODded, btw.

Warning: Smarty error: problem writing './survey/smarty/templates_c\Default%2Favailable_surveys.tpl.' in \survey\smarty\Smarty.class.php on line 589

Warning: fetch(./survey/smarty/templates_c\Default%2Favailable_surveys.tpl): failed to open stream: No such file or directory in \survey\smarty\Smarty.class.php on line 692

Warning: fetch(): Failed opening './survey/smarty/templates_c\Default%2Favailable_surveys.tpl' for inclusion (include_path='.;c:\php4\pear') in \survey\smarty\Smarty.class.php on line 692

Ideas?

MorrisMcD
02-12-2006, 03:57 AM
To be more precise, here's the error I'm getting. I got the files CHMODded, btw.


Warning: Smarty error: problem writing './survey/smarty/templates_c\Default%2Favailable_surveys.tpl.' in \survey\smarty\Smarty.class.php on line 589

Warning: fetch(./survey/smarty/templates_c\Default%2Favailable_surveys.tpl): failed to open stream: No such file or directory in \survey\smarty\Smarty.class.php on line 692

Warning: fetch(): Failed opening './survey/smarty/templates_c\Default%2Favailable_surveys.tpl' for inclusion (include_path='.;c:\php4\pear') in \survey\smarty\Smarty.class.php on line 692

Ideas?

I would reinstall the product now that you have the permissions correctly set

Strat
02-13-2006, 10:47 PM
Nope. No change. Oh well... I'm done battling with this add-on. I've spent a few hours trying to make it work and it just won't budge. I won't lose any more sleep over it. Good add-on, but just ain't working for me.

docvader
02-14-2006, 05:40 AM
Strat, I had the same error. It had to do with getting the permissions on the files right. It's a real PITA, especially if you use FTP Voyager. Hard to really chmod things.

Make sure that your folders are 755, and that ALL of your templates (.tpl files), in ALL of the various folders, are chmod 744.

It does work, and it's one hell of a tool. Impressive.

StuartDH
02-14-2006, 10:14 PM
I've tried installing a couple times and have done everything in the install instructions, but I keep getting the error:

WARNING: Cannot find default template path. Expecting: /home/wildabou/public_html/forums/includes/survey/templates/Default

I've duplicated the survey folder to the above address and chmod 777, but still no luck...any ideas?

Cheers

docvader
02-14-2006, 10:45 PM
I've tried installing a couple times and have done everything in the install instructions, but I keep getting the error:

WARNING: Cannot find default template path. Expecting: /home/wildabou/public_html/forums/includes/survey/templates/Default

I've duplicated the survey folder to the above address and chmod 777, but still no luck...any ideas?

Cheers

Stuart, did you upload the all the files in the Survey folder? The hack calls to those .tpl template files quite a bit, and those files have to be chmodded 744 so that they can be used.

Your folders can be 755, but all those template files in the default, etc folders have to be 744.

And why did you put the survey folder in forums/ includes/? As I remember, is should go in the forum folder (http://www.xxxxx.com/forum/survey/). Not in the includes folder.

Hope this helps. I got mine to work, after a while.

Frank Butcher
02-17-2006, 07:30 PM
What is meant by "Copy the survey directory below your forum directory (cannot change the directory name)"

bashy
02-17-2006, 08:53 PM
Hi

I have installed this

Installation went very well....
When i click on any links such as create, or view a example survey it just refreshes the page... The only thing i can see is the documentations when i click that link...
I have set all the permissions in the admincp
Any advice please?
I am running VB 3.5.3

cmiller1014
02-18-2006, 01:28 AM
Anyone have luck on 3.5.3?

zweefer
02-18-2006, 07:02 PM
okay, I did a quick search, and found nothing, then an even quicker scan over the posts, and did not see my problem, so here goes...
When a member quits out of a survey and then goes back to retake/ finish the survey they can't. it says " You have quit answering this survey. Your answers were not saved." is there any way to change this so members who quit can re-take the survey?

StuartDH
02-19-2006, 09:58 AM
Stuart, did you upload the all the files in the Survey folder? The hack calls to those .tpl template files quite a bit, and those files have to be chmodded 744 so that they can be used.

Your folders can be 755, but all those template files in the default, etc folders have to be 744.

And why did you put the survey folder in forums/ includes/? As I remember, is should go in the forum folder (http://www.xxxxx.com/forum/survey/). Not in the includes folder.

Hope this helps. I got mine to work, after a while.

Hi docvader,

I uploaded all of the survey folder into the forums folder, but for some reason it seems to be looking for the templates etc in forums/includes/ ???

I just tried a fresh install, chmod -R 744 for the survey folder via the CLI, but it came up with the error:

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

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

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/forums/survey.php on line 8

I then -R chmod the survey folder to 777 and haven't changed the content of any of the files, the error disappears, but it's still looking for the templates /includes.

Any ideas?

jaybolt
03-02-2006, 03:54 PM
Hi docvader,

I uploaded all of the survey folder into the forums folder, but for some reason it seems to be looking for the templates etc in forums/includes/ ???

I just tried a fresh install, chmod -R 744 for the survey folder via the CLI, but it came up with the error:

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

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

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wildabou/public_html/forums/survey.php on line 8

I then -R chmod the survey folder to 777 and haven't changed the content of any of the files, the error disappears, but it's still looking for the templates /includes.

Any ideas?
I got the same error regarding template needing to be in the includes folder. I copied the survey folder in its entirity there, chmodded to 777 and it works.

DS MrSinister
03-02-2006, 04:30 PM
Anyone have luck on 3.5.3?


yes and 3.5.4

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
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
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
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
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:

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
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
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
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
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/admincp/vbsurvey_install.php.

phonexpo
03-10-2006, 12:42 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/admincp/vbsurvey_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
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:
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:

"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
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/index.php?showtopic=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? :)

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:

"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
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
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
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)

poliveira
04-24-2006, 05:19 PM
Can I manually change the data in the database to force the application to generate a proper export? If so, which field do I need to make unique, UID, SID???

Thanks

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-26-2006, 12:53 AM
Didn't forget the export issue, just need to test it, reproduce it, and then look for a fix :)

Torqued
04-26-2006, 12:59 AM
Cool. Thanks for the update. :)

freefallu
05-02-2006, 01:54 AM
it all seems to go good for me during install but when i go to survey.php its a blank screen. In 3.5.4 and using MYSQL5.1 if that causes problems ?

theArchitect
05-02-2006, 09:58 AM
I see this was last updated in August 05. I assume it works fine in 3.5.4?

Torqued
05-03-2006, 01:28 PM
Didn't forget the export issue, just need to test it, reproduce it, and then look for a fix :)

Any updates on this issue? :)

Dr.Viggy
05-03-2006, 11:28 PM
this hack is gonna be very cool, but i have a question. is there a way to "score" it as well. for instance, assigning point values to questions and at the end, tallying up the total points and putting the user's results into groups like 0-20 is level 1, 21-40 is group 2, and so on? if not, that's ok too I have uses for it

*installed

Torqued
05-11-2006, 10:01 PM
Any updates on the export issue? :)

bashy
05-11-2006, 10:54 PM
Hi

I have installed, i can see the survey list but when i click to view survey, edit
or create it just refreshes the page yet the link changes to http://www.bashys-place.com/forums/survey.php?do=new_survey for creating but like i said it only shows the survey home page (list of surveys)

What have i mised please...I have tried the attibutes and still the same :(

Torqued
05-22-2006, 11:28 PM
*bump for the export issue... ? :)

b00k
05-23-2006, 08:58 PM
..................

theodonnells
05-24-2006, 12:00 PM
Im also getting this error in 3.5.4
Warning: main(survey/classes/main.class.php): failed to open stream: No such file or directory in /survey.php on line 8

Warning: main(survey/classes/main.class.php): failed to open stream: No such file or directory in /survey.php on line 8

Warning: main(survey/classes/main.class.php): failed to open stream: No such file or directory in /survey.php on line 8

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/xxxxxxxx/xxxxxxx/xxxxxx/survey.php on line 8
And the files are there and have been chmod correctly.

Arngrim
05-26-2006, 08:04 AM
This is an awesome Hack, and works fine for me on vB 3.5.4.

It would be great to have an updated version with new features though, since it has been so long. The suggestions that have been added here are a good starting point.)

As for the errors mentioned above, I had them too but I ended up fixing them via screwing around the CHMOD settings. It looks familiair, but I don't want to offer advice which could be wrong. However, if I could do it, there's hope for you yet.)

Torqued
06-08-2006, 05:16 PM
Anyone have any other ideas/updates on the export issues? :(

Shoebuddy
06-12-2006, 04:51 AM
Can the survey be made visible or given to users based on user profile fields? If so, could I get a brief description?

Thanks

TheBlackPoet
06-21-2006, 03:56 PM
i forgot i was gonna test this.... and as i was cleaning my directories.. i almost dumped it... i installed it on my test site... and holy moly.....sweet bejesus.....

this is a great hack..... i was saying to a member the other day i needed a better poll hack... and had a better-than-a-poll hack all the time!!!

thanks.. and installed on the live server already

bada_bing
06-21-2006, 07:00 PM
Just installed and no errors but when I go to survey.php I get this error

WARNING: Compiled template directory is not writable (./survey/smarty/templates_c). Please refer to the installation document for instructions.

How do I fix this?

bada_bing
06-22-2006, 12:39 AM
Got issue one fixed but now when I click on view survey or create survey the screen will refresh and goes back to the same screen. Its like any of the survey options I click dont do anything but refresh the screen. All permissions are set...:tired:

Gehanna
06-28-2006, 08:09 PM
Message edited because I was able to resolve the issue on my own! :-)

bada_bing
06-29-2006, 11:44 AM
Got issue one fixed but now when I click on view survey or create survey the screen will refresh and goes back to the same screen. Its like any of the survey options I click dont do anything but refresh the screen. All permissions are set...:tired:
Can anyone help with this please

Allenport
06-30-2006, 03:26 PM
Is it possible to let unregistered members use this?

thanks

-Allenport :bunny:

bada_bing
07-06-2006, 04:30 PM
Can anyone help with this please
tamarian

Are you sleeeeeping..

PamelaE
07-16-2006, 09:19 AM
Ok this has stopped working in 3.6.0. As you can see http://www.soapchat.net/survey.php

Will a version for 3.6.0 be out or is there a simple fix for this.

Many Thanks

parabat
08-04-2006, 12:06 AM
Can someone assist me please. I'm no a php guy, but I can follow instructions :laugh:

If a user has already completed the survey and he tries to do it again, he gets the following message. "You have already completed the requested survey."
I would like to append a link to view the results of that survey, to the end of that message. I have tried various ways but with no success. (lack of php knowledge)

eg "You have already completed the requested survey." View Results

Any help would be awesome. Thanx in advance.

bang
08-16-2006, 05:07 AM
is this compatible with 3.6?

hoangminh
08-16-2006, 05:16 AM
is this compatible with 3.6?

I think no, after I upgrade to vb 3.6, then it doesnt work.

Hope that tamarian will have a port for 3.6 soon.

Thanks

tokenyank
09-23-2006, 07:45 PM
Don't know if this helps anyone debug why it broke in 3.6 for a possible fix, but this is what happens when I try to install the hack on a fresh 3.6 install:


Database error in vBulletin 3.6.0:

Invalid SQL:
REPLACE INTO vb_phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'vbsurvey', 'vB Survey', '1');

MySQL Error : Unknown column 'phrasetypeid' in 'field list'
Error Number : 1054

ChurchMedia
09-24-2006, 02:36 AM
Hi! Great hack!

I was using it and it was working fine. Then I moved servers and now I get this error:

WARNING: Cannot find default template path. Expecting: /home/cmn/public_html/CMN/includes/survey/templates/Default

Is there a place to change the template path?

Thanks!

dutchbb
10-10-2006, 05:25 PM
Damn such a good and needed mod and no vb3.6.2v availlable?

Please someone port it, I'm even willing to pay!

MUDERCOOL
10-14-2006, 09:00 PM
I'm running 3.5.3

what's this error, how can I fix it?

on page:
/survey.php

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

Fatal error: main(): Failed opening required 'survey/classes/main.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mesajtah/public_html/davlumbaz/survey.php on line 8

Spikeman
10-17-2006, 12:20 AM
Well I got this running on 3.6.2 which seems very strange after reading most of the posts here. Everything seems to be working, including the export feature.

I could do with a few people hitting the survey on my site and see if they can break it or check for bugs. The only problem is I cannot seem to get the unregisterd users to access it.

The other problem I have is in the ACP, although all the values are there, no actual titles prefix the values! I am working on this right now so I will see if I can get it fixed.

I am not going to release the how I done it yet, as I do not want to be respondsible for anyone that uses it and breaks thier own board, So hit my board and break that instead. Link is in sig, survey is located on left menu under website survey. I have not creasted a new survey yet just using the old default ones and another that I renamed and copied.

Spikeman
10-17-2006, 12:40 AM
I think I have fixed the need to be registered on my site to take survey! Need some feedback on this before I can spend more time on it and hopefully move it to 3.6.2 mod.

Datenpapst
10-18-2006, 07:26 AM
really like this mod and would need it for 3.6.2 maybe as a plugin?

Datenpapst
10-19-2006, 02:57 PM
please transfer it =)

allanh
10-20-2006, 08:18 AM
I think I have fixed the need to be registered on my site to take survey! Need some feedback on this before I can spend more time on it and hopefully move it to 3.6.2 mod.

hi, is the 3.6.2 version update available yet? I can't wait to try it out :)

Datenpapst
10-21-2006, 11:49 AM
nope no update there :(

StarBuG
10-21-2006, 10:23 PM
Hi

Will this hack be ported to 3.6?
I realy would need this feature on my medical forum too

StarBuG

Spikeman
10-22-2006, 02:59 AM
I have been working on this for 3 or 4 days now and all seems good on my site. I did however ask that people help me out and test the survey on my site.

Now either something is wrong and the db is not storing the data that you guys have input or nobody has tested it! I have certainly not had any feedback to how it performed or any errors! The survey was setup to allow guests to take survey, so no need to register on site.

Well this means it just takes longer for me to test it before I am happy to release it without errors.

And there I was thinking people actually wanted this?

Datenpapst
10-22-2006, 07:41 AM
the problem is, that i cant even get on your site :(

/e: ah now it seems to work... o_0

/e2: hmm it seems like i have to register

StarBuG
10-22-2006, 09:49 AM
@Spikeman

You should include a link to your test survey into one of your post
Make it font size 5 and bold and tell people to test because you are trying to port it to 3.6.2

I have simply missed that you are working on this

If I go to http://www.internetwatchers.co.uk/forums/survey.php?do=new_survey
I am required to register in order to see the survey

If you can't get the guest option to work why not create a test account on your forum for us
so that we can start testing untill you figured out how to allow guests as well to take the survey?

Ahh and did you get permission from "tamarian" to port this hack?

Spikeman
10-22-2006, 12:15 PM
You should include a link to your test survey into one of your post
Make it font size 5 and bold and tell people to test because you are trying to port it to 3.6.2

This was already mentioned in my earlier posts.

If I go to http://www.internetwatchers.co.uk/forums/survey.php?do=new_survey
I am required to register in order to see the survey

It was setup for guests until my last post to stop spammers inputting thier rubbish to the survey

If you can't get the guest option to work why not create a test account on your forum for us
so that we can start testing untill you figured out how to allow guests as well to take the survey?

this has been enabled for guests again

Ahh and did you get permission from "tamarian" to port this hack?

was not aware that I needed to get permission to get a hack to work, if i were indeed to release this as a new port I would ask tamarian and include all the necessary credits, to be fair i really do not care about the credit I just want to get it working, If there is a problem then I shall leave it, after all it works on my site ;)

Ok guests can now view and create survey url here
http://www.internetwatchers.co.uk/forums/survey.php

Datenpapst
10-22-2006, 04:01 PM
hmm the example andinternetwatchers survey are the same? so tells me the site. hmm its not storing all of the answers and also does not show me every question.

Spikeman
10-22-2006, 04:12 PM
hmm the example andinternetwatchers survey are the same? so tells me the site. hmm its not storing all of the answers and also does not show me every question.

Yes those 2 surveys are the same, all i did was to create a new survey using an existing survey to test that function.

I could not replicate your other error, I get all the questions and can see the results after survey.

DS MrSinister
10-22-2006, 07:11 PM
I hope i don't piss off anyone here!! No credit here.

You must have this install before upgrading to 3.6.X this is want is missing to make it work....Not sure if this a 100% fix good luck with it..

add new template called

vbsurvey


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[report_bad_post]</title>
$headinclude
</head>
<body>
$header
$navbar
$body
<div class="smallfont" align="center">
<BR />
Powered by <a href="http://www.bigredspark.com/survey.html">UCCASS 1.8</a>. Copyright &copy; 2004 <a href="http://www.bigredspark.com/">John W. Holmes</a>, All Rights Reserved <!-- YOU MAY NOT REMOVE THIS COPYRIGHT NOTICE WITHOUT PERMISSION FROM THE UCCASS AUTHOR -->
</div>
$footer
</body>
</html>

Spikeman
10-22-2006, 11:18 PM
Well that template is already installed on the installation, or it did on my install, it probably failed to install on your install, so there must have been a problem in the config somewhere.

StarBuG
10-23-2006, 11:26 AM
It does not seem to work propaly

If I want to take a survey as a guest I get

"You have already completed the requested survey."

also guests should not be able to create new surveys.
Is this controlled via the permission system?

Spikeman
10-23-2006, 03:01 PM
It does not seem to work propaly

If I want to take a survey as a guest I get

"You have already completed the requested survey."

Normally, you can only complete a survey once, the same as polls, but i did not think this applied to guests in this case, have you already taken the survey once on my site?

also guests should not be able to create new surveys.
Is this controlled via the permission system?

The only reason guests are allowed to create surveys on my site is so you guys can test it, i changed the perms to allow for the testing

4yBak
10-23-2006, 04:38 PM
does this work correctly on vB 3.6.x ?

ChurchMedia
10-23-2006, 06:22 PM
I finally got mine working on 3.6.1. I had this installed on 3.5, so if you try a fresh install on 3.6.x I think you will get some database errors. The install script needs to be re-written for 3.6.x.

To get it working I had to:

1) Upload the survey directory to the main forums directory
2) AND ALSO upload the survey directory to the /forums/include directory (that's where it was looking for the templates for some reason)
3) chmod both survey directories and everything in them to 744
4) chown both survey directories to nobody.nobody (might be apache.apache for some people)

And presto! It works great :)

StarBuG
10-23-2006, 07:52 PM
Normally, you can only complete a survey once, the same as polls, but i did not think this applied to guests in this case, have you already taken the survey once on my site?

No I did not ;)