Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mark Voted Polls On Forum Details »»
Mark Voted Polls On Forum
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-21-2004 Last Update: Never Installs: 14
 
No support by the author.

[ Feature Description ]
This feature marks all polls you have already voted in with a little check mark. Useful if a particular forum has a lot of polls or if you want to keep track of where you haven't voted yet. One simple file edit and it's done.

[ Tested on ]
vBulletin version 3.0.1 (should work on any vBulletin 3 series)

[ Example ]
http://www.gamingforce.com/forums/


Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-22-2004, 08:48 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea.. I'm sure I can find this useful..

[high]* Oblivion Knight clicks install and wonders off to make a new checked poll image.. [/high]
Reply With Quote
  #3  
Old 06-22-2004, 09:39 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou for sharing your work
Reply With Quote
  #4  
Old 06-22-2004, 10:10 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool this will work great
Reply With Quote
  #5  
Old 06-29-2004, 07:48 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice!! Thanks for this...
Reply With Quote
  #6  
Old 07-06-2004, 11:01 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure if this was changed since 3.0.1 since, if I'm honest, I never got around to installing it. Though now I'm upgrading to 3.0.3 and am FINALLY installing your hack, the image should be named poll_posticon_checked.gif instead of poll_posticon_check.gif

Thanks again for sharing your work (and I hope you do decide to release ChocoJournal.!).
Reply With Quote
  #7  
Old 07-28-2004, 10:14 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice and useful hack, but it has some problems
  1. It does not support table prefixes
  2. It adds a query for every thread that contains a poll

Fix for #1
In functions_fordumdisplay.php FIND
PHP Code:
function process_thread_array($thread$lastread = -1$allowicons = -1)

BELOW that ADD
PHP Code:
global $DB_site
Still in functions_forumdisplay.php FIND
PHP Code:
$pollvotecheckq mysql_query("SELECT votedate FROM pollvote WHERE userid=$bbuserinfo[userid] AND pollid=$thread[pollid]");
$pollvotecheck mysql_fetch_array($pollvotecheckq); 
REPLACE that with
PHP Code:
$pollvotecheck $DB_site->query_first("SELECT votedate FROM " TABLE_PREFIX "pollvote WHERE userid=$bbuserinfo[userid] AND pollid=$thread[pollid]"); 
Anyone got ideas for problem #2?

This is really bad as I got a forum which is dedicated to polls, so this would add 40 queries when this forum dis being displayed

Edit:Nevermind. I got it working with just 1 additional query (which will only be executexc when there are any polls and it is not a guest). Unfortunately this does currenlty only work in forum display, but not ich searches and subscribed threads.
Reply With Quote
  #8  
Old 07-29-2004, 06:10 AM
Gamingforce's Avatar
Gamingforce Gamingforce is offline
 
Join Date: Oct 2001
Location: New York City
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack will be updated soon. Thanks.
Reply With Quote
  #9  
Old 07-29-2004, 09:16 PM
OmaniMan OmaniMan is offline
 
Join Date: Nov 2002
Location: Oman
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great
* Install *
Reply With Quote
  #10  
Old 09-09-2004, 05:43 PM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, i had this installed for a while, but now, I find it no longer works. The poll_posticon_check.gif is still there, as is the correct code in the includes/functions_forumdisplay.php, but now polls I've voted on use the same post icon as polls I haven't voted on.

What is the problem? I really liked it, too

EDIT: Nevermind, I fixed the problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05001 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete