![]() |
Show Checked Icon if User voted on Poll
1 Attachment(s)
Show Checked Icon if User voted on Poll
Description This Hack show a checked Icon and a Voted Poll:-Thread-Prefix if the User has already voted on a Poll. Details 1 Plugin XML 2 Phrases 1 Image Please note
History 1.0.0 Initial Version 1.0.1 Updated for vBulletin 3.5 RC 1 Also supports Search, User CP and Subscriptions now. Attention: This Hack is only compatible with vBulletin 3.5 RC1 and up! Compatibility This Add-on is compatible with vBulletin 3.5.X, 3.6.X, 3.7.X and 3.8.X Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer! |
Nice idea :)
Satan |
Been using this since almost 1 1/2 years on my Boad, now converted to a Plugin :)
But I am not that happy with the Code yet ... another Hook would make it easier |
You should request it on .com ;)
I can confirm this works though :) Satan |
I already requested it several days ago ;)
|
Updated for RC1.
Does also support Search, User CP and Subscriptions now. If you are updating, please delete the old Pluin first |
Is there a setting anywhere for this or is it all automatic?
|
No setting. It just does show the Icon/Prefix when the Product is enabled.
To disable it, disable the Product :) |
Thank you, sir. That's all I needed to know. ;)
|
OK, I may be being a little stupid here.
But there were 2 XML files, I imported product-votedpolls.xml. I don't have to do anything with the other file, right? |
Instead of the 2nd XML there should have been readme.txt, fixed now ;)
|
Ah cool, thanks for the heads up.
|
Quote:
|
Delete the Plugins that show Product=vBulletin.
|
Quote:
|
As this Hack uses only 1 Plugin, I guess 2 is correct - if you had 1 without Product :)
|
Really cool. Shows the "power" of the Product System! :)
Thanks Kirby |
Awesome, I didn't realise this mod had already been ported! :D
Cheers Kirby. |
Now if you could only search for polls. :D Hmmm...
|
Just thought I would stop by and advise that this works in 3.6 as well. Not many people seem to be using this one but I think it's a nice touch. Andreas, get it into the main code so I can have one less product. ;)
|
It appears to work fine in 3.7 as well ....
|
Believe it or not, one little line edit and it works on vb 4.1.0 PL2.
|
Quote:
|
Change this line:
Code:
$thread['threadiconpath'] = "$stylevar[imgdir_misc]/poll_posticon_checked.gif"; to this: Code:
$thread['threadiconpath'] = vB_Template_Runtime::fetchStyleVar('imgdir_misc') . "/poll_posticon_checked.gif"; $stylevar doesn't work in vb 4. |
I guess there is more to this that doesn't work with vb 4. The following give a foreach error during a What's New search.
Code:
case 'search': Andreas, can this be fixed or updated for vb 4? |
All times are GMT. The time now is 02:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|