vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Sidebar Poll (https://vborg.vbsupport.ru/showthread.php?t=204586)

COL NIL SATIS 11-21-2010 05:00 PM

Quote:

Originally Posted by RichieBoy67 (Post 2117608)
Still a no go on 4.0? I am surprised that nobody has done this yet..

Agreed...this needs to be ported over too 4 :D

way2xtreme 11-29-2010 04:31 PM

4.0 please !!

LouisB 12-20-2010 04:07 PM

bump. Someone must be able to convert this to v4? :)

Hawkgirl 01-05-2011 04:46 PM

Surely a smart person with time on his/her hands could update this for 4.1 ... :)

way2xtreme 01-27-2011 01:06 PM

I got this to work in forum home..
https://vborg.vbsupport.ru/showthrea...highlight=poll

But I wish to have it in sidebar / widget like this in 4.0
https://vborg.vbsupport.ru/showthrea...=204586&page=5

Anyone here can help?

g00gl3r 09-06-2011 02:37 PM

Any version 4 for this?

valdet 08-23-2013 12:55 PM

I have the same problem as many others.

This is an incredible hack, but the problem with not allowing to vote is very annoying.
If you already voted on that poll, the results will show up just fine.

I hope ry215, find time to update this into a working version.

Thanks.

valdet 09-26-2013 10:27 AM

Just an update for those who had troubles with polls not submitting in pages other than index.
I made a fairly simple workaround, so you can show the polls in other pages and the voting works correctly.

In vB options, you need to set the polls to show on Index, choose the ThreadID option.
The fix is in the plugin Sidebar Poll Include and this simple replacement does the trick.

Find this (Line 3):
PHP Code:

if (THIS_SCRIPT == 'index'

Replace it with:
PHP Code:

if (THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'

You may change THIS_SCRIPT locations as you wish.

Hope that helps.
Val.

DCD.RB 02-01-2019 04:39 AM

After voting, it takes people to the thread. Is there a way to redirect them back to the index instead?


All times are GMT. The time now is 10:48 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.01028 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
  • (2)bbcode_php_printable
  • (1)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
  • (9)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