vb.org Archive

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

Spikeman 11-17-2006 12:30 AM

Quote:

Originally Posted by drdeathuk69 (Post 1119038)
i have an admincp folder with nothing in it is that right?

I deliberatly left it in there so users would see the structure showing that folders needed to go into forum folder ;) well that was the logic.

Dont forget to click install :)

Quote:

Originally Posted by hoangminh (Post 1119039)
Thank you very much. I have waited for this for long time.

Love you!

Your welcome

hoangminh 11-17-2006 12:52 AM

Hi SpikeMan, after remove all previous version, I install this hack, no error occured, but when I click on Edit Survey, Create new survey, view result or Click on the link of existed survey, only that page refresh, no other page :(

I logged in as the super administrator (usergroup 6).

Can you help me ? Thanks a lot

Spikeman 11-17-2006 12:59 AM

Quote:

Originally Posted by hoangminh (Post 1119066)
Hi SpikeMan, after remove all previous version, I install this hack, no error occured, but when I click on Edit Survey, Create new survey, view result or Click on the link of existed survey, only that page refresh, no other page :(

I logged in as the super administrator (usergroup 6).

Can you help me ? Thanks a lot

How did you remove previous version? Did you uninstall using the original script? If not try this

1. Install previous version with install script
2. Uninstall previous version with install script
3. Delete Survey Folder and survey.php from server
4. Follow instructions for this version.

If it does not work after you have completed all above, pm me url and admin details and I will take a look for you.

If you did uninstall previous version with script pm details.

StarBuG 11-17-2006 06:55 AM

What about using cookies for guests?
After a guest took the survey, place a cookie to stop him from doing the survey again?

I know this is easy to circumvent but better then guests not beeing able to take the survey

Would be great

StarBuG

Datenpapst 11-17-2006 09:54 AM

yes, the surveys are deleted.

Datenpapst 11-17-2006 09:55 AM

Quote:

Originally Posted by Spikeman (Post 1118539)
I have seen this before and will look into it, although you receive this message is the survey still deleted?

yes, the surveys are deleted.


Quote:

Originally Posted by Spikeman (Post 1118544)
Have you tried to change the server permissions on the directory?

I gave the directory a 777 chmod permission.

Spikeman 11-17-2006 04:46 PM

I know this may seem a little strange to you guys, but anyway, i have had 2 emails stating that there are 2 new posts here however, i cannot see them!! I have emailed vb.org and informed them of this, hopefully I will get an answer soon, and can reply to the posts.

EasyTarget 11-17-2006 05:13 PM

I've been meaning to give this a try for a long time.. time to do it.

/me clicks install

blogtorank 11-18-2006 03:41 AM

Quote:

Originally Posted by Spikeman (Post 1119071)
How did you remove previous version? Did you uninstall using the original script? If not try this

1. Install previous version with install script
2. Uninstall previous version with install script
3. Delete Survey Folder and survey.php from server
4. Follow instructions for this version.

If it does not work after you have completed all above, pm me url and admin details and I will take a look for you.

If you did uninstall previous version with script pm details.

How can you install it if the install.php file is not correct for vb 3.6.3? :cool:

Columns don't match and etc... So there is no way around it I suppose but to modify the install file to make this new version you have here to work on a 3.6.3 version... I have tried everything and nothing is happening....

I wouldn't suggest sending no more people to the other thread unless this portion is fixed. Because the refresh issue is what I'm facing and I found your thread saying to install the OLD version of this survey script, well the area of this issue is below...

Just some old code that needs to be fixed in the vbsurvey_install.php file:

PHP Code:

    $db->query_write("REPLACE INTO " TABLE_PREFIX "phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', '" $varname "', '" addslashes($text) ."', '$phrasetype')"); 

and:

PHP Code:

$db->query_write("REPLACE INTO " TABLE_PREFIX "phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', '" $varname "', '" addslashes($text) ."', '$phrasetype')"); 


Just my thoughts. :cool:

Spikeman 11-18-2006 07:22 AM

Quote:

Originally Posted by blogtorank (Post 1119844)
How can you install it if the install.php file is not correct for vb 3.6.3? :cool:

Columns don't match and etc... So there is no way around it I suppose but to modify the install file to make this new version you have here to work on a 3.6.3 version... I have tried everything and nothing is happening....

I wouldn't suggest sending no more people to the other thread unless this portion is fixed. Because the refresh issue is what I'm facing and I found your thread saying to install the OLD version of this survey script, well the area of this issue is below...

Just some old code that needs to be fixed in the vbsurvey_install.php file:

PHP Code:

    $db->query_write("REPLACE INTO " TABLE_PREFIX "phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', '" $varname "', '" addslashes($text) ."', '$phrasetype')"); 

and:

PHP Code:

$db->query_write("REPLACE INTO " TABLE_PREFIX "phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', '" $varname "', '" addslashes($text) ."', '$phrasetype')"); 


Just my thoughts. :cool:

The old code cannot be fixed to work on 3.6.3, that is why it was rewritten.

1.Do you host with yahoo? or another host that does not allow special characters on the server?
2.Check that all the files from the survey folder are on your server.
3.Have you set the permissions for the files?

dutchbb 11-18-2006 01:08 PM

Hello,

I have translated about 90% of the hack, just wanted to know where this red sentence can be found? I could only find the variable.

https://vborg.vbsupport.ru/

thank you

gedsta 11-18-2006 03:12 PM

Installed

However whenever I take a survey and click on finish or view a survey's results i get

Error retrieving questions: Table 'nameofdatabse_.vb1_survey_results_text' doesn't exist

any ideas?

tia

Spikeman 11-18-2006 04:26 PM

Quote:

Originally Posted by dutchbb (Post 1120024)
Hello,

I have translated about 90% of the hack, just wanted to know where this red sentence can be found? I could only find the variable.

http://img375.imageshack.us/img375/3...anslateto6.gif

thank you

You will find the line in survey.class.php within survey/classes line 211, you will find quite a few phrases in there that you may want to translate that you have not been shown yet. Actually all the classes files will need to be translated ;)

Spikeman 11-18-2006 04:30 PM

Quote:

Originally Posted by gedsta (Post 1120068)
Installed

However whenever I take a survey and click on finish or view a survey's results i get

Error retrieving questions: Table 'nameofdatabse_.vb1_survey_results_text' doesn't exist

any ideas?

tia

Have you checked to see if that table is in your db?

dutchbb 11-18-2006 05:10 PM

Quote:

Originally Posted by Spikeman (Post 1120097)
You will find the line in survey.class.php within survey/classes line 211, you will find quite a few phrases in there that you may want to translate that you have not been shown yet. Actually all the classes files will need to be translated ;)

Thanks :D

gedsta 11-18-2006 09:50 PM

Quote:

Originally Posted by Spikeman (Post 1120103)
Have you checked to see if that table is in your db?

Table 'nameofdatabse_.vb1_survey_results is but not Table 'nameofdatabse_.vb1_survey_results.txt or whatever it says

Am at a loss now, as I followed the instructions completely :(

gedsta 11-18-2006 11:52 PM

Thank you Gareth for sorting it out - it works perfect now :)

Spikeman 11-19-2006 01:20 AM

Quote:

Originally Posted by gedsta (Post 1120376)
Thank you Gareth for sorting it out - it works perfect now :)

[Resolved] The database would not accept the survey_results_text table, this may/may not be a result of the windows server mysql was running on, table was manually imported with changes through phpmyadmin. A fix should be ready in next update of the product-survey.xml

morrow 11-19-2006 04:56 AM

Installed with No problems other than permissioning which was noted in the install doc. Once changed, everything is good.

Now, how about a few sample surveys so I can get an idea of what the hell I'm going to use this for! :) It seams to be a nice hack and I'm sure I'll find a spot on my site for it. I just need some ideas.

Spikeman 11-19-2006 05:26 AM

Quote:

Originally Posted by morrow (Post 1120517)
Now, how about a few sample surveys so I can get an idea of what the hell I'm going to use this for! :) It seams to be a nice hack and I'm sure I'll find a spot on my site for it. I just need some ideas.

Folllowing a quick visit to your homepage:

How about a survey on fishing equipment used, how many fishing trips per year, how far do you travel to fish, best times to fish, quantity caught, places, equipment etc.. ;)

ivps-Samuel 11-29-2006 03:41 PM

Hello,

I added usergroup 1 (Guest/Not Logged In) to answer survey questions but it still seems to require login when the survey is clicked on.

Any ideas?

Spikeman 11-29-2006 05:21 PM

Quote:

Originally Posted by ivps-Samuel (Post 1128133)
Hello,

I added usergroup 1 (Guest/Not Logged In) to answer survey questions but it still seems to require login when the survey is clicked on.

Any ideas?

Please remember the point of a survey is to compile data across a given site to a set of people, however allowing guests the oppurtunity to take the survey would surely make for different results as they could retake the survey many times, therefore throwing your results out. That said here is what you need.

Find this code in survey.php
Code:

if ($vbulletin->userinfo['userid']==0) { // override permissions for guests, since userid zero is messy
                                // They can only see the results, if allowed in the admincp settings
        $vbulletin->userinfo['can_admin_surveys'] = 0;
        $vbulletin->userinfo['can_take_surveys'] = 0;
        $vbulletin->userinfo['can_create_surveys'] = 0;
        $vbulletin->userinfo['can_edit_surveys'] = 0;

You will need to change it to some like this:
Code:

if ($vbulletin->userinfo['userid']==1) { // override permissions for guests, since userid zero is messy
                                // They can only see the results, if allowed in the admincp settings
        $vbulletin->userinfo['can_admin_surveys'] = 0;
        $vbulletin->userinfo['can_take_surveys'] = 1;
        $vbulletin->userinfo['can_create_surveys'] = 0;
        $vbulletin->userinfo['can_edit_surveys'] = 0;

Once you have changed that you will need to allow guests to take survey more than once, otherwise guests will be informed that they have already taken the survey, so

Find this line in survey/classes/survey.class.php around line 127 either delete or comment the line out.
Code:

if($check === ALREADY_COMPLETED) eval(print_standard_error("You have already completed the requested survey.", 0));
That should do it.

Datenpapst 12-01-2006 07:30 AM

I have got a problem with the survey. Its not showing the results afert I answered the questions. Dont know why :(

Spikeman 12-01-2006 02:39 PM

Quote:

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

Does this happen to all results you are trying to view or is this a new error? have you seen results before? what mySQL version are you running?

Antivirus 12-03-2006 02:50 PM

If i were to install the previous version on my vb 3.5.x boards, then upgraded vb to latest version (3.6.x), how much does upgrading this hack to the 3.6 version entail? I didnt see ay instructions for upgrading. is it simply an overwrite of the included files, or are there db changes, etc... does previous survey data get overwritten?

Spikeman 12-03-2006 07:41 PM

Quote:

Originally Posted by Antivirus (Post 1130851)
If i were to install the previous version on my vb 3.5.x boards, then upgraded vb to latest version (3.6.x), how much does upgrading this hack to the 3.6 version entail? I didnt see ay instructions for upgrading. is it simply an overwrite of the included files, or are there db changes, etc... does previous survey data get overwritten?

This is not an upgrade from the previous releases, It is a new install, you must uninstall old version. When you upgrade to 3.6 some tables and some fields that were present in vB 3.5 were removed that were needed to allow the previous version of this hack to function. That said if you take a backup of your survey data you should be able to import it back into the new survey as no changes have been made to the Survey Tables.

Installing this hack is a 2 minute job

Antivirus 12-04-2006 01:48 PM

Quote:

Originally Posted by Spikeman (Post 1131094)
It is a new install, you must uninstall old version.

so there is an uninstall script with the old version?

Thanks :)

Spikeman 12-04-2006 01:54 PM

Quote:

Originally Posted by Antivirus (Post 1131603)
so there is an uninstall script with the old version?

Thanks :)

Yes just load up the previous install script and chose option to uninstall.

Antivirus 12-05-2006 05:43 PM

okie, thanks for clarifying.

nanaimobar 12-09-2006 11:58 PM

Installation went smoothly, hooks and vBulletin Options updated perfectly, but admincp shows no changes and no vbSurvey section is visible anywhere.

Suggestions?

Martin-TMGRS 12-10-2006 10:23 AM

I installed this hack but when I click on any of the examples, the page just reloads to the same page also does the same when I try to create a new survey or edit any of them. Any help would be great, thanks.

Spikeman 12-11-2006 09:26 AM

Quote:

Originally Posted by nanaimobar (Post 1135447)
Installation went smoothly, hooks and vBulletin Options updated perfectly, but admincp shows no changes and no vbSurvey section is visible anywhere.

Suggestions?

ACP -> vBulletin Options -> Survey System Options. Does not exist?

Quote:

Originally Posted by Martin-TMGRS (Post 1135606)
I installed this hack but when I click on any of the examples, the page just reloads to the same page also does the same when I try to create a new survey or edit any of them. Any help would be great, thanks.

Did you set the correct permissions?

nanaimobar 12-11-2006 02:17 PM

[QUOTE=Spikeman;1136227]ACP -> vBulletin Options -> Survey System Options. Does not exist?

Survey System Options exists and everything was left at default setting.

What is missing is any ability to create a Survey or other settings in the far left scroll column where RSS feeds, Styles and Templates, vBulletion Options, Plugins & Products, etc are located.

Biggles 12-11-2006 04:58 PM

[QUOTE=nanaimobar;1136365]
Quote:

Originally Posted by Spikeman (Post 1136227)
ACP -> vBulletin Options -> Survey System Options. Does not exist?

Survey System Options exists and everything was left at default setting.

What is missing is any ability to create a Survey or other settings in the far left scroll column where RSS feeds, Styles and Templates, vBulletion Options, Plugins & Products, etc are located.

Yes indeed. I have experienced precisely the same problem.

Everything went smoothly in the uploads and the product import. I have Survey Systems Options too and have set the necessary fields to allow Admin (usergroup 6) to create a survey.

But, like nanaimobar, I cannot find a function anywhere that actually allows me to create the survey. Where is it supposed to show up? Should it be in the ACP list or is it within threads or elsewhere in the forums.? I've looked everywhere I can think of and can't find a darned thing.

Biggles

Spikeman 12-11-2006 05:36 PM

[QUOTE=nanaimobar;1136365]
Quote:

Originally Posted by Spikeman (Post 1136227)
ACP -> vBulletin Options -> Survey System Options. Does not exist?

Survey System Options exists and everything was left at default setting.

What is missing is any ability to create a Survey or other settings in the far left scroll column where RSS feeds, Styles and Templates, vBulletion Options, Plugins & Products, etc are located.

[QUOTE=Biggles;1136450]
Quote:

Originally Posted by nanaimobar (Post 1136365)
Yes indeed. I have experienced precisely the same problem.

Everything went smoothly in the uploads and the product import. I have Survey Systems Options too and have set the necessary fields to allow Admin (usergroup 6) to create a survey.

But, like nanaimobar, I cannot find a function anywhere that actually allows me to create the survey. Where is it supposed to show up? Should it be in the ACP list or is it within threads or elsewhere in the forums.? I've looked everywhere I can think of and can't find a darned thing.

Biggles

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

nanaimobar 12-11-2006 05:45 PM

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

Quote:

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

Thanks, Spikeman. Survey create section now appears, but there is an error message:
Warning: Smarty error: problem writing './survey/smarty/templates_c/Default^available_surveys.tpl.' in /survey/smarty/Smarty.class.php on line 589

Spikeman 12-11-2006 06:20 PM

[QUOTE=nanaimobar;1136484][QUOTE=Spikeman;1136474]
Quote:

Originally Posted by nanaimobar (Post 1136365)



Thanks, Spikeman. Survey create section now appears, but there is an error message:
Warning: Smarty error: problem writing './survey/smarty/templates_c/Default^available_surveys.tpl.' in /survey/smarty/Smarty.class.php on line 589

You need to set your server permissions

nanaimobar 12-11-2006 06:59 PM

[QUOTE=Spikeman;1136511][QUOTE=nanaimobar;1136484]
Quote:

Originally Posted by Spikeman (Post 1136474)
You need to set your server permissions

Thanks, Spikeman.:D Deleted directories under template_c and all is well. Thanks as well for your quick help and this great product.

Spikeman 12-11-2006 07:31 PM

[QUOTE=nanaimobar;1136537][QUOTE=Spikeman;1136511]
Quote:

Originally Posted by nanaimobar (Post 1136484)

Thanks, Spikeman.:D Deleted directories under template_c and all is well. Thanks as well for your quick help and this great product.

you are welcome, hit the install link as you are still showing as not installed ;)

nanaimobar 12-11-2006 09:08 PM

Quote:

Originally Posted by Spikeman (Post 1118214)
Fantastic ;) please hit that install button.

Installed button hit now. Was checking out the program and getting to understand all of its parts, which look fantastic.


All times are GMT. The time now is 05:05 PM.

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

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

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

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