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)
-   -   vBSurvey v1.0 (https://vborg.vbsupport.ru/showthread.php?t=71834)

draculanowaday 11-19-2004 10:41 AM

hix. I did as you asked in readme file but i just recived a blank page.

Zero Tolerance 11-19-2004 01:58 PM

Quote:

Originally Posted by draculanowaday
hix. I did as you asked in readme file but i just recived a blank page.

The templates install on your default skin, change your default skin to another and run the skin install part again to add the templates on other skins you may have :)

- Zero Tolerance

alkatraz 11-19-2004 08:01 PM

Quote:

Originally Posted by Zero Tolerance
The templates install on your default skin, change your default skin to another and run the skin install part again to add the templates on other skins you may have :)

- Zero Tolerance

was just about to ask that, that worked for me

great script and installer! works perfectly (1 suggestion, add a selector for the vbstyle to modifiy)

thank you!!

Zero Tolerance 11-21-2004 03:33 PM

Quote:

Originally Posted by alkatraz
was just about to ask that, that worked for me

great script and installer! works perfectly (1 suggestion, add a selector for the vbstyle to modifiy)

thank you!!

Yeah i will do that in future, stops confusion and extra work :)

- Zero Tolerance

Loki12 11-21-2004 03:59 PM

Fantastic! Just what I needed....

Cheertobi 11-22-2004 04:03 PM

Hi,

is it possible to view the stats, but only admins can see the usernames who voted?!

Regards,

Tobias

alkatraz 11-25-2004 03:04 AM

Quote:

Originally Posted by Cheertobi
Hi,

is it possible to view the stats, but only admins can see the usernames who voted?!

Regards,

Tobias

Beaten to the punch again!

Just discovered that my members can see who voted, I'd love an option for it to be visable to admins only.

Just wanted to mention again, this is a great hack for doing market research and R&D, thanks a ton!

akiy 11-25-2004 03:39 AM

Quote:

Originally Posted by alkatraz
Just discovered that my members can see who voted, I'd love an option for it to be visable to admins only.

It looks like you're going to have to modify the code as the table rows/cells that make up the "Who voted" row isn't template-ized.

Any way, here's one way to do this if you only want Administrators (usergroupid = 6) to see the stats:

Replace:
Code:

                $Options .= "<tr>               
                  <td width='80%' class='alt2'>{$opt['q']}</td>               
                  <td width='20%' class='alt1' align='center'>This has had {$opt['votes']} vote(s)</td>
                  </tr>                       
                  <tr>                       
                  <td width='100%' class='alt1' colspan='2'><b>Who Voted:</b> {$thisVoted}</td>
                  </tr>                       
                    \n";

with:
Code:

                $Options .= "<tr>               
                  <td width='80%' class='alt2'>{$opt['q']}</td>               
                  <td width='20%' class='alt1' align='center'>This has had {$opt['votes']} vote(s)</td>
                    </tr>";
                    if ($bbuserinfo[usergroupid] == 6) {
                    $Options .="<tr>                   
                  <td width='100%' class='alt1' colspan='2'><b>Who Voted:</b> {$thisVoted}</td>
                  </tr>                       
                    \n";
                  }

You can modify the "if" confitional to include more usergroupids (eg "if ($bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 7)") if you want other usergroups to see the stats...

Hope that helps!

Cheertobi 11-25-2004 09:24 AM

Hi,

@akiy
yep, found that out last night and worked great! Thanks for helping anyway.

Regards,

Tobias

alkatraz 11-25-2004 08:55 PM

awesome! thx for the support

one problem in your fix tho
missing a } to close the if condition. added one after \n"; and it works great


All times are GMT. The time now is 08:28 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.02244 seconds
  • Memory Usage 1,741KB
  • 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
  • (5)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