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 - Show Checked Icon if User voted on Poll (https://vborg.vbsupport.ru/showthread.php?t=91634)

Andreas 07-04-2005 10:00 PM

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
  1. 1 Query is added for each Forum Display where Threads contain Polls.
    If there are no Polls on the Page being displayed, it does not add a Query
  2. The check only works for Registered Users.
    So if you allow guests to vote on Polls they won't see the checked Icon, even if they have voted. This might change in future Versions.

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!

Chris M 07-05-2005 12:11 AM

Nice idea :)

Satan

Andreas 07-05-2005 12:13 AM

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

Chris M 07-05-2005 12:15 AM

You should request it on .com ;)

I can confirm this works though :)

Satan

Andreas 07-05-2005 12:16 AM

I already requested it several days ago ;)

Andreas 07-27-2005 02:49 PM

Updated for RC1.
Does also support Search, User CP and Subscriptions now.

If you are updating, please delete the old Pluin first

Boofo 07-27-2005 09:10 PM

Is there a setting anywhere for this or is it all automatic?

Andreas 07-27-2005 09:13 PM

No setting. It just does show the Icon/Prefix when the Product is enabled.
To disable it, disable the Product :)

Boofo 07-27-2005 09:16 PM

Thank you, sir. That's all I needed to know. ;)

FleaBag 07-27-2005 10:06 PM

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?


All times are GMT. The time now is 12:32 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.00992 seconds
  • Memory Usage 1,728KB
  • 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
  • (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