vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Survey (UCCASS Survey app integration) (https://vborg.vbsupport.ru/showthread.php?t=82384)

tamarian 08-22-2005 09:00 PM

Quote:

Originally Posted by eljeffe
I installed this hack and ran the install process. Everything seemed to install just fine. Went to run the hack at http://www.mydoman.com/forums/survey.php and the browser just hangs.

Any ideas?

You have posted this twice, in the 3.0 version, and the 3.5 version, so I don't know which hack you installed.

Second, the link you posted shows that the file was not there, so you may not have uploaded it, or uploaded it to the wrong location.

eljeffe 08-22-2005 10:13 PM

Quote:

Originally Posted by tamarian
You have posted this twice, in the 3.0 version, and the 3.5 version, so I don't know which hack you installed.

Second, the link you posted shows that the file was not there, so you may not have uploaded it, or uploaded it to the wrong location.

Sorry, I accidently posted in the 3.5 forum. I thought I deleted it.

Anyway it's the 3.0 version (1.5 vBSurvey).

The URL is just an example. I'll PM you the URL when I get it reinstalled again.

eljeffe 08-26-2005 03:25 AM

Quote:

Originally Posted by eljeffe
Sorry, I accidently posted in the 3.5 forum. I thought I deleted it.

Anyway it's the 3.0 version (1.5 vBSurvey).

The URL is just an example. I'll PM you the URL when I get it reinstalled again.

I got it to work. For some reason, it doesn't like running on a NFS mounted volume. Every time I tried to access the survey.php file, it would hang at the first function call and create a .nfs<string of 9 numbers> file in the template/Default directory. I've got no idea why, but that is the behavior that is being exhibited.

The work around was to create the survey directory on the local disk and create a symbolic link to that directory in the /home/www/mydomain.com/forums directory.

I've created my first survey and it works great.

A couple questions:

1. Is there a modification or hack to the survey that will make Multiple Choice Single Selection into a dropdown listbox instead of a bunch of radio select buttons?

2. I'd like to only display the "Edit Survey" box only when a user has the permissions to do so. Have you got anything to do that?

Thanks. Works great -- very flexible, very powerful!!!

tamarian 08-26-2005 11:57 AM

Quote:

Originally Posted by eljeffe
I got it to work. For some reason, it doesn't like running on a NFS mounted volume. Every time I tried to access the survey.php file, it would hang at the first function call and create a .nfs<string of 9 numbers> file in the template/Default directory. I've got no idea why, but that is the behavior that is being exhibited.

The work around was to create the survey directory on the local disk and create a symbolic link to that directory in the /home/www/mydomain.com/forums directory.

Glad you got it to work :)

Quote:

1. Is there a modification or hack to the survey that will make Multiple Choice Single Selection into a dropdown listbox instead of a bunch of radio select buttons?
It's already available. Just edit the multiple choice question, change it from vertical to dropdown, then it will become a select box allowing multiple picks.

Quote:

2. I'd like to only display the "Edit Survey" box only when a user has the permissions to do so. Have you got anything to do that?
I've overlooked this, but it does make sense. Download the new zip file, and just upload 2 files:
1. survey/templates/Default/available_surveys.tpl
2. survey/classes/survey.class.php

eljeffe 08-26-2005 02:53 PM

Quote:

Originally Posted by tamarian
Glad you got it to work :)



It's already available. Just edit the multiple choice question, change it from vertical to dropdown, then it will become a select box allowing multiple picks.



I've overlooked this, but it does make sense. Download the new zip file, and just upload 2 files:
1. survey/templates/Default/available_surveys.tpl
2. survey/classes/survey.class.php

You are DA-MAN!!!

Thanks.

BTW, I added the following to survey.php to keep people who didn't belong in the survey page in the first place completely out:

Find:

PHP Code:

require("./global.php");
require(
'survey/classes/main.class.php'); 

Paste After:

PHP Code:

// enabled check
        
if (!$vboptions['enablememberlist'])
        {
                eval(
print_standard_error('error_nomemberlist'));
        }

// permissions check
        
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
        {
                
print_no_permission();
        } 


pachitalk 09-02-2005 03:40 PM

Looking forward to using this! Installed fine, changed the survey folder to 744 and all subfolders. Did the Admincp changes. Using vb 3.07

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

Line 8 is require('survey/classes/main.class.php'); CHMOD is 744

What am I missing?

Did I delete my install file too soon?

tamarian 09-02-2005 03:45 PM

Quote:

Originally Posted by pachitalk
Looking forward to using this! Installed fine, changed the survey folder to 744 and all subfolders. Did the Admincp changes. Using vb 3.07

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

Line 8 is require('survey/classes/main.class.php'); CHMOD is 744

What am I missing?

Did I delete my install file too soon?

For this error, no need to re-install, just check the ownership on the directories.

pachitalk 09-02-2005 03:51 PM

Thanks for the quick reply, is that setting through my FTP program?

tamarian 09-02-2005 03:59 PM

Quote:

Originally Posted by pachitalk
Thanks for the quick reply, is that setting through my FTP program?


I don't think so, I usually set it from the command line through SSH.

But to confirm that it's an ownership issue, chmod to 777, and see if it works. With FTP, make sure you give it enough time to recursively change all files and directories.

pachitalk 09-02-2005 04:10 PM

Okay, 777 allows it to work. So??? The 744 isn't sticking? Or is it's the SSH?

My parent folder "forums" is set to 755. Could that be interfering?


All times are GMT. The time now is 08:01 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02134 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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