vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mark Voted Polls On Forum (https://vborg.vbsupport.ru/showthread.php?t=66382)

Gamingforce 06-21-2004 10:00 PM

Mark Voted Polls On Forum
 
[ 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/
https://vborg.vbsupport.ru/

Enjoy!

Oblivion Knight 06-22-2004 08:48 AM

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.. :D[/high]

Dean C 06-22-2004 09:39 AM

Thankyou for sharing your work :)

ryancooper 06-22-2004 10:10 PM

Cool this will work great

Alien 06-29-2004 07:48 PM

Very nice!! Thanks for this... ;)

Oblivion Knight 07-06-2004 11:01 PM

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.!).

Andreas 07-28-2004 10:14 PM

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.

Gamingforce 07-29-2004 06:10 AM

This hack will be updated soon. Thanks.

OmaniMan 07-29-2004 09:16 PM

Great
* Install *

Megareus Rex 09-09-2004 05:43 PM

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.


All times are GMT. The time now is 09:59 PM.

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.00998 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete