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)

dutchbb 11-16-2006 02:23 PM

Hm so since there are no phrases , where can we translate most of the system please?

Spikeman 11-16-2006 02:31 PM

Quote:

Originally Posted by dutchbb (Post 1118653)
Hm so since there are no phrases , where can we translate most of the system please?

The admin phrases are easy enough todo, the UCCASS system uses smarty templates which can be edited to suit your language.

dutchbb 11-16-2006 02:40 PM

Can't find the right files though :o

edit: Nevermind I found it

StarBuG 11-16-2006 02:57 PM

Hi

I need to know where to define the background for the survey itself and the results page.

My forum uses a background image but on long surveys this breaks the design, so I need to replace it with a color.

Also it seems that guests can't take the survey, even though I have set permissions to allow usergroup 1 (not registered) to take surveys.

Any ideas?

Spikeman 11-16-2006 03:27 PM

Quote:

Originally Posted by StarBuG (Post 1118677)
Hi
I need to know where to define the background for the survey itself and the results page.
My forum uses a background image but on long surveys this breaks the design, so I need to replace it with a color. Can i ask where you normally define the image?

vBsurvey uses smarty templates that are located at survey/templates/Default there is also the vbsurvey template within the style manager if you have added your background as a custom style. However your default color that is defined within vB should be displayed?

Quote:

Originally Posted by StarBuG (Post 1118677)
Also it seems that guests can't take the survey, even though I have set permissions to allow usergroup 1 (not registered) to take surveys.

If you take a look 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;

change to
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;

That should work

StarBuG 11-16-2006 05:06 PM

Hi

If I change that, I can't admin nor take the survey anymore.

It uses the css definitions for the background of the survey, but that is the problem.
I need to define the color by hand in this place because the background image from css breaks if the survey is to long.

Any idea where the background is defined?

Great hack by the way.
Thank you for getingit to run on 3.6 ;)

StarBuG

Spikeman 11-16-2006 08:25 PM

Quote:

Originally Posted by StarBuG (Post 1118767)
Hi
If I change that, I can't admin nor take the survey anymore.

I had to play with those setting to get guests set up to test the survey, although it is not foolproof as some guests still get refused. The problem with letting guests take a survey is they could keep taking the same survey and you would not get accurate results.

Quote:

Originally Posted by StarBuG (Post 1118767)
It uses the css definitions for the background of the survey, but that is the problem.
I need to define the color by hand in this place because the background image from css breaks if the survey is to long.
Any idea where the background is defined?

Ok, I understand now, leave it with me and let me see if i can find a solution.

Spikeman 11-16-2006 08:49 PM

Quote:

Originally Posted by StarBuG (Post 1118767)
Hi
I need to define the color by hand in this place because the background image from css breaks if the survey is to long.
Any idea where the background is defined?

I belive the best approach would be to add an additional css definition, then do a search in your smarty template files for "panel" and replace with new, example:- "surveypanel" with you new color declared in "surveypanel" to test I would edit display_answers.tpl first.

drdeathuk69 11-17-2006 12:24 AM

i have an admincp folder with nothing in it is that right?

hoangminh 11-17-2006 12:27 AM

Thank you very much. I have waited for this for long time.

Love you!


All times are GMT. The time now is 06:33 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.02569 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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