PDA

View Full Version : Forum Home Enhancements - Show poll in forumhome


Developer
08-13-2007, 10:00 PM
Show poll in forumhome
V. 1.0.0
Description::.

This is a ported version from my hack for vB3.5.4
This hack shows poll of ur choice in forumhome with some conditions
Hack Features::.
1-easy yo install
2-on/off
3-display order for polls/options
4-if user voted, poll disappear
Installation::.
1-Import The product.
2-open template forumhome
find: $navbar
below it add:<if condition="$show[devel_poll]">
$poll
</if>
or just use
$poll if you want to display results
History::.
1.0.0 On 14. Aug 2007 Initial Version.
Hack Languages::.

English

Details::.
2 plugins, 9 phrases, 0 templates, 4 options, 2 queries(for any option uses additonally query)[reading]

Hornstar
08-14-2007, 08:34 AM
Maybe show a picture of what it looks like on the forumhome?

Developer
08-14-2007, 09:00 AM
just let it go with your imagination :D
it is the same as in the pic displayed at the bottom of the navbar ...

Deepdog009
08-14-2007, 03:04 PM
alrighty then...

rayphua
08-14-2007, 03:29 PM
Interesting idea. Tried installing it, but ran into some problems.

1. I have 3 polls running currently, but only 1 is showing at forumhome. I did place all 3 threadids as per your instructions in the settings but it doesn't show.
2. You left 2 options in your instructions for $poll, can you please elaborate what the difference is for the two of them.
3. Wouldn't the use of pollid be more suitable than threadid?

Please advice, thanks.

Zaiaku
08-14-2007, 06:50 PM
This can be pretty useful but I give it time to develop more.

Techno05
08-15-2007, 04:00 AM
well no image no download but thanks anyway. I like to know what I am getting.

Triky
08-15-2007, 11:18 AM
Installed. Thank you, Developer.
This could be helpfull on the future of Web City. :)

Developer
08-15-2007, 02:38 PM
Interesting idea. Tried installing it, but ran into some problems.

1. I have 3 polls running currently, but only 1 is showing at forumhome. I did place all 3 threadids as per your instructions in the settings but it doesn't show.
2. You left 2 options in your instructions for $poll, can you please elaborate what the difference is for the two of them.
3. Wouldn't the use of pollid be more suitable than threadid?

Please advice, thanks.

1- this will work if you choose to order by randomly, voters number, last vote date
and ofcourse when the condition becomes true ..
2- if someone voted on the poll it will not shows the results in the forumhome .. so you have to choose what to put as u like ..
3- i doesn't really matter, it is the same thing ..

Developer
08-15-2007, 02:40 PM
well no image no download but thanks anyway. I like to know what I am getting.

as i said nothing different from the original poll after the navbar the poll appears before forums list .. btw: those screen shots was taked from the mod in the forumhome ..

MaxBentum13
08-16-2007, 04:46 AM
Nice addon, was looking for this. Thanks a lot.
Is it possible to show the results of the poll on forumhome after someone voted?
I tried both:

<if condition="$show[devel_poll]">
$poll
</if>

and

$poll


but both didn't show the poll results on forumhome after someone voted.

Greets

rayphua
08-16-2007, 08:30 AM
I have the following problems.

I have 3 polls currently selected. But...

1. I have used Random, Voters Number, Last Vote Date, but all 3 polls do not show up at the same time even when voter has not voted on any of the 3 polls. I only see one showing up.

2. As per the above post, I would like to see all selected polls showing up even after voter has voted.

Adam21
08-16-2007, 10:20 AM
how do we change the dimensions to display it in a sidebar?

erdiyilmaz
08-16-2007, 09:34 PM
i'm using vbSEO and my threads have no id, they have names.
for ex. www.forum.com/poll.html

how can i show polls? or how can i find its id number?

ABDALWAHID
08-25-2007, 12:13 AM
i'm using vbSEO and my threads have no id, they have names.
for ex. www.forum.com/poll.html

how can i show polls? or how can i find its id number?

Edit your pool and see this number :)

rb290
08-25-2007, 05:39 AM
Can I get it to stay even after you voted?

SuperTaz
08-25-2007, 06:13 AM
Very nice. Installed.

vspro
08-27-2007, 05:38 AM
why it only show result 0% ( i hav voted ) n that's not right??
can it vote for that poll??

Pvtiste
10-03-2007, 05:07 PM
Hi,

I have a problem: I don't vote the poll but I see the result instead of the poll...
Any idea ?

thx

The Fathom
11-16-2007, 12:02 PM
How can you change the width of this poll?

wii
11-16-2007, 12:43 PM
What the difference from the old version ? I´m using the old code on my vBulletin 3.6.8 - works just fine.

tirol07
11-19-2007, 02:18 PM
Installed,Thank you

max8028
11-19-2007, 02:54 PM
Is there a way to put in side columns?

ChurchMedia
12-08-2007, 05:31 AM
Clarification:
Looking at the code I don't see how this mod could show more than one poll at a time.
????

A modification you can make:
People may not know what the poll is about, so I added a small piece of code that will add a link to the thread for the poll.

You need to make the same change in TWO TEMPLATES -- the polloptions_table template and the pollresults_table template.

FIND:
$pollinfo[question]

ADD AFTER:
<if condition="(THIS_SCRIPT == 'index')"> (<a href="showthread.php?t=$pollinfo[threadid]">Go To Thread</a>)</if>

Sarcoth
02-13-2008, 07:12 PM
I occasionally do like to get some attention to important polls, but I'm not a big fan of posting the polls at the top of the forums like that. I much would rather there be a popup; similiar to new private messages; that tell the users there is a new poll requiring their attention.

Good job though.

CLF
02-14-2008, 05:33 AM
Is there a way to put in side columns?

snowlion
04-14-2008, 08:58 AM
how do i make more than 1 poll show on forumhome ?

Baldilocks
04-16-2008, 07:32 PM
Can i put this code anywhere in a side column?

Chadi
05-17-2008, 01:18 AM
This does not seem to work in 3.7

Astrof
05-26-2008, 03:56 PM
This does not seem to work in 3.7

It works, it's just disabled by default.

You need to go to AdminCP -> vBulletin Options -> Show Polls in Forumhome.

F0xy
06-04-2008, 06:20 PM
It works, it's just disabled by default.

You need to go to AdminCP -> vBulletin Options -> Show Polls in Forumhome.

i follow your options but i can't find 'Show Polls in Forumhome' in 3.7.1 in the location you said

EDIT: its ok, i was being an idiot!

want3ed
06-09-2008, 10:02 AM
in 3.7.1 my any users saying this,

When i use poll in forumhome that time i saw this error :

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

futureye
07-06-2008, 06:09 AM
i wish the poll to be showen always
to show the result

futureye
07-06-2008, 06:10 AM
works fine in 3.7.2

xtrung
08-18-2008, 09:23 AM
works fine in 3.7.2
work in 3.7.2 ???
i use 3.7.1 don't work

edytwinky
09-06-2008, 01:07 AM
Does anybody have a link to their forum using this I can take a look at?

Amaresh
09-10-2008, 10:08 AM
not working in 3.7.3

gatorenvy
09-10-2008, 06:32 PM
I'm getting this:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

any fixes?

SIINSI
10-15-2008, 12:58 AM
This works but, like others said, how do I put this in a sidebar on forumhome?

crkgb
12-02-2008, 11:07 AM
I'm getting this:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

any fixes?

Will this ever be addressed? The mod adds a useful feature, but is worthless till the issue is fixed. Or at least let us know please where the magic line needs to be added.

Desesperao
12-03-2008, 10:55 PM
It doesn't works in vB 3.7.4 :(

anwar.abdullakh
03-16-2009, 12:31 AM
If you have multiple polls separated with comma, even then only one poll is shown on forumhome.

I wonder when a proper 3.7.x or 3.8.x will be out for this.

Shaheen
08-03-2009, 04:46 PM
its really a nice hack but not working on 3.8.3 , any updates ?

DeanLag
08-20-2009, 08:48 PM
Hmm works fine with 3.8.3
Thanks for that!

DeanLag
08-20-2009, 09:27 PM
Would be nice to add a collapsable button to it :)

eevanesscence
08-30-2010, 11:01 PM
its its really a nice hack but not working on 3.8.3 , any updates ?

minik
05-29-2011, 02:07 PM
its working with 4.1.x ???

KJA4U
06-13-2011, 03:12 PM
Tested on 3.8.7 , it works fine. Before enabling the plugin, You need to go to AdminCP -> vBulletin Options -> Show Polls in Forumhome.
and add the number of the tread that contains the poll. If enabled before adding the number of the thread you may get a data base error.
Regards

dj83
12-08-2014, 02:33 PM
Is there anyway that only members can see the polls?

ozzy47
12-08-2014, 09:33 PM
Perhaps change:
<if condition="$show[devel_poll]">

To this:
<if condition="$show[devel_poll] AND $show['member']">

dj83
12-14-2014, 03:42 PM
Thanks ozzy47!

I have one more question is there away to have this mod show polls in the order that they were posted?

For example:
Option 1
Option 2
Option 3

instead of
Option 1
Option 3
Option 2