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)
-   -   Miscellaneous Hacks - Poll Survey (https://vborg.vbsupport.ru/showthread.php?t=135223)

Renee 12-31-2006 10:00 PM

Poll Survey
 
Info

Display all polls in a list from your forum.
http://yourforum.ltd/misc.php?do=survey

Polls are displayed by forumpermission. If a user hasn't the permission to see a forum where a poll is in, the poll will not display.


Installation (info.txt)

(The pagenav is limited to 25 polls on a site.
If you want change the limit, open the xml file and search for:
Code:

sanitize_pageresults($scount['scount'], $pagenumber, $perpage, 100, 25);
Change the '25' to your whished limit.)

1. Login to your admin control panel
2. Go to "Plugins & Products" -> "Manage products"
3. Click on "Add/Import product"
4. Browse for "Poll_Survey.xml" (included in the zip file), and click "Import"
5. Optional: Make a link to the poll survey where always you want.

I used the navbar dropdown menu "useful links".
If you want too, then did this:

Search in template "navbar" for:

Code:

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
Add below:

Code:

<!-- Poll Survey begin -->
        <tr><td class="vbmenu_option"><a href="misc.php?$session[sessionurl]do=survey">$vbphrase[survey_all_polls]</a></td></tr>
<!-- Poll Survey end -->

That was all :)

*Added forget table_prefix
*Added variable for hand closed polls

Shazz 01-01-2007 03:33 AM

Nice that it shows all the polls on the site :)
Very useful

projectego 01-01-2007 08:10 AM

Looks very handy but your site appears to be down at the moment.

MaestroX 01-01-2007 09:52 AM

Nice, thanks for sharing

asj 01-01-2007 10:22 AM

thanks

SkyCatcher 01-01-2007 11:34 AM

Quote:

Originally Posted by projectego (Post 1148415)
Looks very handy but your site appears to be down at the moment.

um...

I don't think he owns http://yourforum.ltd :laugh: :laugh: :laugh:

basilrath 01-01-2007 02:19 PM

loooooooooooooooooooooooooooooooooooooooooool

Shazz 01-01-2007 03:56 PM

Quote:

Originally Posted by projectego (Post 1148415)
Looks very handy but your site appears to be down at the moment.

His site isen't "yourforum" its a example ;)

da420 01-01-2007 03:59 PM

Very nice. Thank you.

DannyMilner 01-01-2007 04:13 PM

Looks great, nicely done!


All times are GMT. The time now is 06:42 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.03998 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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