PDA

View Full Version : Miscellaneous Hacks - Sidebar Poll


ry215
02-06-2009, 10:00 PM
I see the request here (https://vborg.vbsupport.ru/showthread.php?t=187382)!

Description:
If your forum using sidebar, you want to give poll out this sidebar, this Mod will do it.

Info:
Plugins: 3
Phrases: 16
Templates: 6
Settings: 5

Install:

1. Import Product via Manage Products
ACP >> Plugins & Products >> Manage Products >> [Add/Import Product]

2. Edit Template:
Add in your sidebar template:

$poll_sidebarwhere you want show "Poll"

3. Settings:
ACP >> vBulletin Options >> Sidebar Polls Settings

PS: Work fine with 3.7.x (Tested)

Similar MOD:
Sidebar Column (https://vborg.vbsupport.ru/showthread.php?t=204773)
Sidebar Lastest Threads (https://vborg.vbsupport.ru/showthread.php?t=204659)

F0xy
02-07-2009, 08:32 PM
works like a charm mate, thanking you!

ry215
02-07-2009, 08:35 PM
works like a charm mate, thanking you!

you're welcome ;)

F0xy
02-07-2009, 08:40 PM
i installed this on 3.7.3 in case anyone is interested and it works flawlessly.

students_forum
02-07-2009, 09:17 PM
is it possible to have it set to various forumids?
but yeah cool mod

edit - worked it out ;)

Chadi
02-08-2009, 02:06 AM
Cool mod, but not working for me in 3.8.1 on forumhome.

www.talkjesus.com (http://www.talkjesus.com)

I went to setup and posted "21" for forum id and selected forum ID as choice. I did global enable as well.

All I get is blank in the side column.

In my poll forum, it totally messed up my font style/size too.

students_forum
02-08-2009, 05:02 AM
^^^^ you can move it anywhere you want on the homepage, but you need to have a sidebar already ....

Allan
02-08-2009, 06:12 AM
Thank for this hack :)

Chadi
02-08-2009, 06:02 PM
Students...that doesn't make sense. I already have a sidebar as you can see in the link and the output is blank as you can see in that box that says "polls"

To be specific, this is the sidebar I'm using:
https://vborg.vbsupport.ru/showthread.php?t=117989

Is this a specific "sidebar" mod that is needed?

ry215
02-08-2009, 06:57 PM
Students...that doesn't make sense. I already have a sidebar as you can see in the link and the output is blank as you can see in that box that says "polls"

To be specific, this is the sidebar I'm using:
https://vborg.vbsupport.ru/showthread.php?t=117989

Is this a specific "sidebar" mod that is needed?

Edit template footer, then find:

$forumhome_sidecolumn_right

add below:

$poll_sidebar

Done! :D

Chadi
02-08-2009, 11:59 PM
Did that, it showed up at the very bottom of the side column. So I cannot adjust where it should go then from here.

Also, still messes up the font style/size as well.

dfc005
02-09-2009, 09:18 AM
So, once installed, I should be able to just whack $poll_sidebar in any template and it will show the poll there?

saihat
02-09-2009, 09:40 AM
Thank

dfc005
02-09-2009, 10:05 AM
So, once installed, I should be able to just whack $poll_sidebar in any template and it will show the poll there?

Cause it isn't working for me....

Fynnon
02-09-2009, 04:26 PM
it would be nice to be able to make a poll with a question you desire on index

example: "do you like this forum ?"

mmurtha
02-09-2009, 05:10 PM
it would be nice to be able to make a poll with a question you desire on index

example: "do you like this forum ?"

Yes, I agree. That would be awesome!


Hey ry215,

What are the chances of you updating the Mod to be able to put in our own questions and Polls?

Thanks ...


Mary

ry215
02-09-2009, 05:32 PM
it would be nice to be able to make a poll with a question you desire on index

example: "do you like this forum ?"

Yes, I agree. That would be awesome!


Hey ry215,

What are the chances of you updating the Mod to be able to put in our own questions and Polls?

Thanks ...


Mary

Sorry, I do not understand.

You can create a poll in any forum with your questions, then go to ACP >> vBulletin Options >> Sidebar Polls Settings and enter forumid or threadid of Poll Thread.

dfc005
02-09-2009, 07:25 PM
So, once installed, I should be able to just whack $poll_sidebar in any template and it will show the poll there?

ry215, is that the case?

ry215
02-09-2009, 07:50 PM
ry215, is that the case?

Please try before you ask. I think, that is ok.

PS: at this time, I do not see you "Mark as Installed" for this Mod :D

dfc005
02-09-2009, 08:02 PM
Please try before you ask. I think, that is ok.

PS: at this time, I do not see you "Mark as Installed" for this Mod :D

I have tried and it showed nothing. And I generally only click "Mark as Installed" when I have it installed AND working! But I'll give you the benefit of the doubt this time.

dfc005
02-09-2009, 08:27 PM
I have tried and it showed nothing. And I generally only click "Mark as Installed" when I have it installed AND working! But I'll give you the benefit of the doubt this time.

OK, so it does work if I stick it in a template. Sorry.

What I'd like to be able to do though is include it in my custom right hand side menu I have. Which would require me to insert it into a global_start plugin. This does not work. I assume because you're plugins aren't active yet?

dfc005
02-10-2009, 02:29 AM
No worries, I'm now using parse_templates as my hook for the plugin. Works a charm!

Fynnon
02-10-2009, 07:13 PM
Sorry, I do not understand.

You can create a poll in any forum with your questions, then go to ACP >> vBulletin Options >> Sidebar Polls Settings and enter forumid or threadid of Poll Thread.


What i mean is: to make a poll which can be shown on the index page without making a topic for it in the forums
We should be able to create a poll from ACP where we choose the poll questions, how long will it be displayed and who can vote

soqzippo
02-11-2009, 03:50 AM
Slightly limited. Good mod because its sorta what i was looking for. However there should be an option to select newest poll or all polls in that forumid. Also an option to show more than one forum id.

Fynnon
02-11-2009, 02:46 PM
it should say how many voters are and a button to see the results of the voting without voting

after a short fight with it i managed to install it ...here it is: http://bvlist.com

i had to delete this part of the mod because it didn`t integrate well with my skin:
<thead>
<tr>
<td class="tcat" align="left">
<strong>$vbphrase[sidebar_poll]</strong>
</td>
</tr>
</thead>

Thank you, another great mod from Viet Vbb-Team ...could be improved in the future!

jorgejgm
02-11-2009, 05:39 PM
Congratulations on the mod.

But I have some problems:
If I put it on display all the pages it does not in any (FACEBOOK Style).
No avatars .Gif

Tip:
Option to show members to guests, or both.

thanks

dfc005
02-13-2009, 11:44 PM
Hmmm, this mod, when enabled stops my polls from working in the normal threads. Like wise, when I try and vote in the sidebar poll, it doesn't work because the poll functionality isn't working....

dfc005
02-14-2009, 02:27 AM
Actually, if I have this mod enabled and I edit a poll, it also causes trouble. Any ideas?

dfc005
02-16-2009, 12:26 AM
Any updates ry215? Love the idea behind the mod and would love to be using it but it's just breaking all my polls.

blue6995
02-19-2009, 09:07 PM
The poll is being displayed in my sidebar ok, but I says I have already voted, but I haven't.
How can I fix this?

Thanks

dfc005
02-19-2009, 09:21 PM
The poll is being displayed in my sidebar ok, but I says I have already voted, but I haven't.
How can I fix this?

Thanks

I also get this same problem. Blue6995, can you still vote in your normal thread polls? I find that I can't, that the sidebar poll breaks stops me from being able to vote in the polls.

blue6995
02-20-2009, 10:06 AM
I also get this same problem. Blue6995, can you still vote in your normal thread polls? I find that I can't, that the sidebar poll breaks stops me from being able to vote in the polls.

I have just tried that and yes, I can vote in other polls without any problems

I have just logged on as a recent member (this week) and they have the opportunity of voting. If I log on as a member that has been with us for some time (and hasn't already voted) the option to vote isn't shown - only that they have already voted!

Update: It seems that if you have read the original thread you can't vote. If you haven't read it, you can!

Nimrod.
02-20-2009, 06:03 PM
Well I just cant get this thing to even show up on my board...

Nimrod.
02-20-2009, 06:05 PM
I have just tried that and yes, I can vote in other polls without any problems

I have just logged on as a recent member (this week) and they have the opportunity of voting. If I log on as a member that has been with us for some time (and hasn't already voted) the option to vote isn't shown - only that they have already voted!

Update: It seems that if you have read the original thread you can't vote. If you haven't read it, you can!So if you are the creator of the poll, then it will automatically show up as read and therefore cant vote?

aakhan136
02-20-2009, 07:55 PM
Thank

smnet
03-01-2009, 11:26 AM
When i vote in the poll on the homepage, i am taken to a thread that has nothing to do with the poll in question - how strange.

mk craig 42
03-16-2009, 09:45 PM
Hey mate any chance you can get rid of the header where it says Sidebar Poll along with the skins header section? As on my sidebar i already have a section where it says Poll

So it looks stupid with 2 headers..
https://vborg.vbsupport.ru/

Also would be very greatful if you can change text to white..
Or at least tell me how to please, Thank you.

Big-K
03-16-2009, 09:59 PM
Hey mate any chance you can get rid of the header where it says Sidebar Poll along with the skins header section? As on my sidebar i already have a section where it says Poll

So it looks stupid with 2 headers..
http://img11.imageshack.us/img11/2111/32387969.png

Also would be very greatful if you can change text to white..
Or at least tell me how to please, Thank you.

Here's a suggestion:

Go into sidebar_pollresults_table template
comment out: <span>$vbphrase[sidebar_poll]</span>

mk craig 42
03-16-2009, 11:20 PM
Oh yea, lol. Totally forgot about editing the templates i was thinking of editing the xml file for some reason. Got too many things going on at once.

Thank you :)

smnet
03-17-2009, 09:58 AM
This mod doesnt work. If you have read the thread, and sometimes when you have not then you have apparently already voted. Also, after voting when you are given the opportunity you are then redirected to the wrong thread.

Hope this gets sorted at some point. Uninstalled, but tagged.

mk craig 42
03-17-2009, 11:26 AM
Okay well i managed to get it working fine, but theres one slight problem that i need help with.. I'm asking rather than trying myself as i 1. dont want to waste time and 2. i dont want to mess things up.

This is when i have this hack disabled.
http://img23.imageshack.us/img23/5848/normalt.png

and this is when i have the hack enabled.
http://img25.imageshack.us/img25/7459/messedup.png

As you can see the poll is slightly too big for my navigational bar width.
Can someone please tell me where to change the width of this poll please? :)
I'm not entirely sure on it.

Many thanks.

Sweeks
04-05-2009, 08:55 PM
Can I use this to display latest polls? like more than 1.
________
CONFUCIANISM FORUMS (http://www.religionboard.org/confucianism/)

mikelangelo2005
04-25-2009, 05:52 PM
Help

I am Using ULTIMATE SIDE COLUMN 2.2 (https://vborg.vbsupport.ru/showthread.php?t=175181&highlight=ultimate+side+column) and I just installed this Porduct, But I don?t show polls in a Block Of ultimate side column.

Check HTML in box 13 of USC where I want show. How can I show the poll in this Block?

solong2
09-03-2009, 11:25 PM
i import the product but not show in in fourm

http://qatarhost.us/vb

solong2
09-03-2009, 11:45 PM
work thanks

segwayon
09-20-2009, 02:13 PM
Help

I am Using ULTIMATE SIDE COLUMN 2.2 (https://vborg.vbsupport.ru/showthread.php?t=175181&highlight=ultimate+side+column) and I just installed this Porduct, But I don?t show polls in a Block Of ultimate side column.

Check HTML in box 13 of USC where I want show. How can I show the poll in this Block?

I use the same Ultimate Side Column mod, and learned that the individual sidebar template rows don't like to use these phrases, that you would need to use the templates named "usc_sidecolumn_left" or "usc_sidecolumn_right". In any case, I couldn't get this poll mod to show up.

At the bottom of my template I inserted the tag cloud phrase which works, while the sidebar poll phrase wouldn't work for me. Hope this helps.

</tbody>
</if>
</table>
$vbcloud
</td>
<td width="$stylevar[spacersize]" valign="top"><img src="clear.gif" border="0" width="$stylevar[spacersize]" />
</td>

Charged
09-29-2009, 12:39 AM
I have just tried that and yes, I can vote in other polls without any problems

I have just logged on as a recent member (this week) and they have the opportunity of voting. If I log on as a member that has been with us for some time (and hasn't already voted) the option to vote isn't shown - only that they have already voted!

Update: It seems that if you have read the original thread you can't vote. If you haven't read it, you can!

This mod doesnt work. If you have read the thread, and sometimes when you have not then you have apparently already voted. Also, after voting when you are given the opportunity you are then redirected to the wrong thread.

Hope this gets sorted at some point. Uninstalled, but tagged.

+1

polls work fine with this disabled, get the same problem with it enabled (saying you have already voted)

saravanan
09-30-2009, 11:29 AM
Hello,

I have installed this hack. It is showing in my forum.But with no questions.

But I don't know where to create poll question.

Could any one tell me?

Thanks

Charged
09-30-2009, 11:44 AM
just make a new thread with the poll in it, take note of that thread id and put that threadid in the options for the sidebarpoll (under the vbulletin options in admincp) make sure to set it to use thread id in there instead of forum id as well

as I said I got that bit working but the plugin makes the poll not actually work (appears to be if that user has seen the thread before voting as others reported)

if this happens to you as well could you please say so, as i've got it disabled until this is fixed

mbentley
10-27-2009, 02:23 PM
+1

polls work fine with this disabled, get the same problem with it enabled (saying you have already voted)

i'm with you there. i would really like to get this working whether you have read the thread or not.

DZaidle
11-01-2009, 05:30 PM
Installed in V3.8.4, the sidebar poll does not display poll results or register votes. It also cripples voting in the normal thread poll. Normal thread poll works okay when sidebar is disabled.

Any suggestions?

UPDATE

Installed the poll only and it does the same thing. When a user votes from the sidebar, it registers the user as having voted but does not update the poll vote tally. Thus, the user is locked out from voting again but his vote is not counted. Also does not show poll results in the sidebar to that user.

Frank Sinatra
02-13-2010, 12:38 AM
Might someone make this work?
It seems to be difficult, I have not seen mods as this one :(

chipc0i
04-24-2010, 09:29 AM
hi, ry215! you can upgrade this mod for vb4 as widget??

kennykre
05-23-2010, 12:15 AM
Where do I find the sidebar template?
Thanks

Silmarillion
05-26-2010, 12:39 PM
+1

polls work fine with this disabled, get the same problem with it enabled (saying you have already voted)Dito.

Anybody able to fix this? Would be great.

Markro
08-10-2010, 09:41 PM
Running 3.7.2. When I set "Allpages OR Index?" in Admin Options to "All Pages", the vote doesn't happen. I tested it on a new account and a long time (~400 post) account. First, I set the option to "Index", did a vote on a new account. The vote went through, poll results were updated perfectly. Then I set the option to "All Pages", the vote did not go through (still presented me with voting options), then when I attempted to vote again it said "You already voted on that poll". A possible error?

Also, amazing addon, I love the idea and how it works! Thanks for your work :)

RichieBoy67
10-21-2010, 02:11 PM
I would kill to have this work on 4.07....

LouisB
10-22-2010, 10:48 AM
I would kill to have this work on 4.07....

Would love this for v4 too.

RichieBoy67
11-03-2010, 07:08 PM
Still a no go on 4.0? I am surprised that nobody has done this yet..

jupiter5
11-21-2010, 06:40 AM
It would be a great modification if somebody solved problems. What a pity.

COL NIL SATIS
11-21-2010, 05:00 PM
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/showthread.php?t=244396&highlight=poll

But I wish to have it in sidebar / widget like this in 4.0
https://vborg.vbsupport.ru/showthread.php?t=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):
if (THIS_SCRIPT == 'index')

Replace it with:
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?