PDA

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


Pages : [1] 2

tamarian
14 Jun 2005, 02:58
A 3.6.x version by spikeman is posted here:
http://www.vbulletin.org/forum/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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=83038) if you have installed this mod.

FleaBag
14 Jun 2005, 17:42
Truly oustanding - I look forward to installing this! :D

Beermonster
14 Jun 2005, 18:16
I'm sure I can find a use for this, thanks

BLykMik
03 Jul 2005, 07:22
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Marco van Herwaarden
03 Jul 2005, 08:08
What vB version are you running?

BLykMik
03 Jul 2005, 08:11
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
03 Jul 2005, 08:26
None of the vB3.5 hacks will work on 3.0.x.

There have been too many internal changes.

tamarian
03 Jul 2005, 13:36
[QUOTE=BLykMik]I'm running 3.0.7..../QUOTE]

There is a version for 3.0.7:

http://www.vbulletin.org/forum/showthread.php?s=&threadid=82384

BLykMik
03 Jul 2005, 16:43
Thanks... sorry for my confusion.

tamarian
03 Jul 2005, 18:09
Thanks... sorry for my confusion.

No problem. Enjoy :)

BLykMik
04 Jul 2005, 04:31
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
04 Jul 2005, 05:11
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
10 Jul 2005, 14:50
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
10 Jul 2005, 15:16
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
10 Jul 2005, 15:58
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
02 Aug 2005, 20:06
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
02 Aug 2005, 20:42
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
02 Aug 2005, 21:43
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
03 Aug 2005, 00:16
ok, sounds good, thanks.

will this work on rc1?

tamarian
03 Aug 2005, 00:21
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
03 Aug 2005, 01:10
Confirm it works well on 3.5.0 RC1 .. installed with no problems.
Clicked install.

tamarian
03 Aug 2005, 01:11
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
03 Aug 2005, 01:18
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
03 Aug 2005, 01:40
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
03 Aug 2005, 01:51
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
03 Aug 2005, 01:56
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
07 Aug 2005, 01:28
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
07 Aug 2005, 01:42
Well I think I fixed it. Had to make all the TPL files to 777.

tamarian
07 Aug 2005, 01:46
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
07 Aug 2005, 01:49
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
07 Aug 2005, 02:19
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
07 Aug 2005, 02:33
Thanks :) I love this :)

Drakah
07 Aug 2005, 15:04
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
07 Aug 2005, 16:04
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
07 Aug 2005, 16:50
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
07 Aug 2005, 17:18
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
07 Aug 2005, 21:20
Thank you much :)

hydrostatic
07 Aug 2005, 22:53
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
07 Aug 2005, 23:02
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 Aug 2005, 00:08
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 Aug 2005, 00:29
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 Aug 2005, 00:41
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 Aug 2005, 03:22
Also, when you go to Edit Survey, the top of the page doesn't say anthing. It just says:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

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

tamarian
08 Aug 2005, 13:58
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 Aug 2005, 14:00
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 Aug 2005, 14:04
Also, when you go to Edit Survey, the top of the page doesn't say anthing. It just says:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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 Aug 2005, 14:06
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 Aug 2005, 14:08
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 Aug 2005, 14:12
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 Aug 2005, 14:20
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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And replace with the page you want.

Drakah
08 Aug 2005, 14:24
Very cool, thank you so much!!

peterska2
19 Aug 2005, 14:58
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
19 Aug 2005, 15:01
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
19 Aug 2005, 15:08
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
19 Aug 2005, 15:19
I'm not familiar with FlashFXP. Have you verified that the permissions and ownership have been correctly set in the sub directories?

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

peterska2
19 Aug 2005, 16:12
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
19 Aug 2005, 16:37
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
01 Oct 2005, 23:19
Hi,

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

Regards,

Tobi

tamarian
01 Oct 2005, 23:35
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
05 Oct 2005, 04:47
thanks very much dude!
/me installs

silurius
05 Oct 2005, 06:25
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
07 Oct 2005, 14:54
amazing hack!
/me 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
07 Oct 2005, 15:17
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
09 Oct 2005, 02:27
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
09 Oct 2005, 02:34
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
09 Oct 2005, 03:26
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
09 Oct 2005, 03:37
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
09 Oct 2005, 03:40
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
11 Oct 2005, 10:16
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
11 Oct 2005, 14:32
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
13 Oct 2005, 10:51
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
13 Oct 2005, 15:19
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
13 Oct 2005, 20:47
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
13 Oct 2005, 21:02
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
13 Oct 2005, 21:26
Wonderful!

tamarian
13 Oct 2005, 23:29
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
13 Oct 2005, 23:31
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
14 Oct 2005, 04:03
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
14 Oct 2005, 04:07
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:

http://www.vbulletin.org/forum/attachment.php?attachmentid=27047

DrewM
15 Oct 2005, 22:49
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
15 Oct 2005, 22:52
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
15 Oct 2005, 23:15
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
16 Oct 2005, 00:07
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
16 Oct 2005, 01:48
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
16 Oct 2005, 02:29
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
16 Oct 2005, 09:58
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
22 Oct 2005, 22:20
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
22 Oct 2005, 22:31
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
22 Oct 2005, 22:44
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
22 Oct 2005, 22:58
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
22 Oct 2005, 23:14
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
22 Oct 2005, 23:33
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
22 Oct 2005, 23:57
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
23 Oct 2005, 00:11
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
23 Oct 2005, 00:17
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
23 Oct 2005, 01:26
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
25 Oct 2005, 09:31
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
25 Oct 2005, 12:16
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
02 Nov 2005, 07:01
works good :) clicked install :D

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

tamarian
02 Nov 2005, 17:46
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
02 Nov 2005, 17:47
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
10 Nov 2005, 00:34
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
10 Nov 2005, 00:59
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

dilbert
10 Nov 2005, 01:13
Wow, thanks for the quick reply.
Silly question, what do I name the template?

tamarian
10 Nov 2005, 01:21
vbsurvey :)

dilbert
10 Nov 2005, 01:25
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
10 Nov 2005, 01:38
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
15 Nov 2005, 21:25
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
16 Nov 2005, 03:36
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
16 Nov 2005, 05:49
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
16 Nov 2005, 13:30
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
17 Nov 2005, 04:53
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
17 Nov 2005, 04:54
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
17 Nov 2005, 04:57
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
21 Nov 2005, 08:59
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
21 Nov 2005, 12:43
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
22 Nov 2005, 07:19
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
10 Dec 2005, 19:24
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
11 Dec 2005, 09:45
Just installed this great addon, thanks it works with 3.5.2 with no problems.

tamarian
11 Dec 2005, 15:40
I am getting this error at the top when I access the survey.php file.

Have you done the file permissions steps?

Valithor
14 Dec 2005, 08:28
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
14 Dec 2005, 09:45
Couldn´t this install script be replaced by a product/plugins ?

mariannet
22 Dec 2005, 14:08
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
22 Dec 2005, 14:39
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
22 Dec 2005, 14:52
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
03 Jan 2006, 16:18
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
04 Jan 2006, 22:46
Is the survey recording name of respondents?
There is an option in chart review of results, BUT no name is recorded.

Thank you

mcyates
06 Jan 2006, 14:53
the download file does not work. Its corrupted.

WNxWakko
08 Jan 2006, 00:56
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
08 Jan 2006, 02:36
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
08 Jan 2006, 04:57
yup reinstalling templates fixed it. For whatever reason the upgrade took them out.

dd4w2000
12 Jan 2006, 09:38
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
18 Jan 2006, 14:01
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
18 Jan 2006, 16:55
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?

Chris-777
18 Jan 2006, 21:36
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
20 Jan 2006, 09:29
again puttting up this question as this seems to have gone unnoticed :

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
22 Jan 2006, 01:59
I just downloaded it, and all the files are blank.

?!!?

Chris-777
22 Jan 2006, 02:08
I just downloaded it, and all the files are blank.

?!!?

Downloaded just fine for me. Try it again.

Staircase
22 Jan 2006, 02:12
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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Well, that's line 66. Help?

Staircase
22 Jan 2006, 04:17
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
22 Jan 2006, 23:16
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.

http://www.vbulletin.org/forum/showpost.php?p=876174&postcount=135

Strat
05 Feb 2006, 07:28
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
05 Feb 2006, 16:26
This is an OUTSTANDING feature!!!

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

Thank you!

tamarian
06 Feb 2006, 01:58
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
09 Feb 2006, 23:24
I can confirm this works with 3.5.3 as it's now running on my forum.

Excellent! Thanks.

Strat
12 Feb 2006, 05:55
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
12 Feb 2006, 05:57
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
14 Feb 2006, 00:47
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
14 Feb 2006, 07:40
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
15 Feb 2006, 00:14
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
15 Feb 2006, 00:45
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
17 Feb 2006, 21:30
What is meant by "Copy the survey directory below your forum directory (cannot change the directory name)"

bashy
17 Feb 2006, 22:53
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
18 Feb 2006, 03:28
Anyone have luck on 3.5.3?

zweefer
18 Feb 2006, 21:02
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
19 Feb 2006, 11:58
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
02 Mar 2006, 17:54
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
02 Mar 2006, 18:30
Anyone have luck on 3.5.3?


yes and 3.5.4

klaush
02 Mar 2006, 21:17
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
02 Mar 2006, 23:43
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 Mar 2006, 00:32
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 Mar 2006, 00:33
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 Mar 2006, 00:44
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 Mar 2006, 08:34
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
04 Mar 2006, 22:42
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
04 Mar 2006, 23:10
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
04 Mar 2006, 23:13
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
04 Mar 2006, 23:14
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
05 Mar 2006, 05:06
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
05 Mar 2006, 20:51
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
05 Mar 2006, 21:52
Does the file exist at that path?

Yes!

zingo
06 Mar 2006, 13:25
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
06 Mar 2006, 14:14
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
06 Mar 2006, 23:30
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
10 Mar 2006, 13:00
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
10 Mar 2006, 14:37
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
10 Mar 2006, 14:42
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
13 Mar 2006, 05:47
Nice, clean survey!

[SUBSCRIBING for later reference...]

Ramsesx
19 Apr 2006, 20:01
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
19 Apr 2006, 20:04
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
19 Apr 2006, 20:21
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
19 Apr 2006, 22:06
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
19 Apr 2006, 23:09
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
20 Apr 2006, 02:13
OK found the problem.

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

:banana:

poliveira
20 Apr 2006, 02:15
Can we upgrade to uccass 1.81 and keep the vb integration intact?

tamarian
20 Apr 2006, 02:52
Can we upgrade to uccass 1.81 and keep the vb integration intact?

No, won't work.

tamarian
20 Apr 2006, 08:33
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
20 Apr 2006, 09:52
Yes, maybe a new vb customer :)

Torqued
20 Apr 2006, 14:36
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
20 Apr 2006, 14:48
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
20 Apr 2006, 16:29
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
20 Apr 2006, 22:20
Same here, the export only exports the headers...

poliveira
20 Apr 2006, 23:19
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
21 Apr 2006, 20:10
Are there any errors reported in the apache error log?

Torqued
21 Apr 2006, 20:17
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
21 Apr 2006, 20:59
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
22 Apr 2006, 05:39
Will this work on vb 3.5.3 & 3.5.4 ?

Torqued
22 Apr 2006, 13:32
I have it working on 3.5.4 (except for the export issue)

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

Torqued
26 Apr 2006, 02:59
Cool. Thanks for the update. :)

freefallu
02 May 2006, 03:54
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
02 May 2006, 11:58
I see this was last updated in August 05. I assume it works fine in 3.5.4?

Torqued
03 May 2006, 15:28
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
04 May 2006, 01:28
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
12 May 2006, 00:01
Any updates on the export issue? :)

bashy
12 May 2006, 00:54
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
23 May 2006, 01:28
*bump for the export issue... ? :)

TSR
23 May 2006, 22:58
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 ?


I too receive the BLANK screen. I read all 14 pages and see that we need to focus on the permission, ive done that, no luck. I even tried chmoding 777 and no luck, just draws a blank.

Anyone have any other ideas?

theodonnells
24 May 2006, 14:00
Im also getting this error in 3.5.4


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


And the files are there and have been chmod correctly.

Arngrim
26 May 2006, 10:04
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
08 Jun 2006, 19:16
Anyone have any other ideas/updates on the export issues? :(

Shoebuddy
12 Jun 2006, 06:51
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
21 Jun 2006, 17:56
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
21 Jun 2006, 21:00
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
22 Jun 2006, 02:39
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
28 Jun 2006, 22:09
Message edited because I was able to resolve the issue on my own! :-)

bada_bing
29 Jun 2006, 13:44
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
30 Jun 2006, 17:26
Is it possible to let unregistered members use this?

thanks

-Allenport :bunny:

bada_bing
06 Jul 2006, 18:30
Can anyone help with this please
tamarian

Are you sleeeeeping..

PamelaE
16 Jul 2006, 11:19
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
04 Aug 2006, 02:06
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
16 Aug 2006, 07:07
is this compatible with 3.6?

hoangminh
16 Aug 2006, 07:16
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
23 Sep 2006, 21:45
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

ChurchMedia
24 Sep 2006, 04:36
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 Oct 2006, 19:25
Damn such a good and needed mod and no vb3.6.2v availlable?

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

MUDERCOOL
14 Oct 2006, 23:00
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
17 Oct 2006, 02:20
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
17 Oct 2006, 02:40
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
18 Oct 2006, 09:26
really like this mod and would need it for 3.6.2 maybe as a plugin?

Datenpapst
19 Oct 2006, 16:57
please transfer it =)

allanh
20 Oct 2006, 10:18
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
21 Oct 2006, 13:49
nope no update there :(

StarBuG
22 Oct 2006, 00:23
Hi

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

StarBuG

Spikeman
22 Oct 2006, 04:59
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
22 Oct 2006, 09:41
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
22 Oct 2006, 11:49
@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
22 Oct 2006, 14:15
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
22 Oct 2006, 18:01
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
22 Oct 2006, 18:12
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
22 Oct 2006, 21:11
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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Spikeman
23 Oct 2006, 01:18
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
23 Oct 2006, 13:26
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
23 Oct 2006, 17:01
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
23 Oct 2006, 18:38
does this work correctly on vB 3.6.x ?

ChurchMedia
23 Oct 2006, 20:22
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
23 Oct 2006, 21:52
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 ;)