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)

Exitilus 04-29-2008 11:58 PM

It appears to work fine in 3.7 as well ....

Boofo 02-27-2011 11:34 AM

Believe it or not, one little line edit and it works on vb 4.1.0 PL2.

Manoel J?nior 02-27-2011 12:29 PM

Quote:

Originally Posted by Boofo (Post 2167498)
Believe it or not, one little line edit and it works on vb 4.1.0 PL2.

Please tell us what line we have to edit.

Boofo 02-27-2011 04:16 PM

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.

Boofo 02-28-2011 09:46 AM

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':
            foreach ($GLOBALS['itemids'] AS $pollcheck)
            {
                if ($pollcheck['pollid'] AND $pollcheck['open'] != 10)
                {
                    $pollids[] = $pollcheck['pollid'];
                }
            }
            break;


Andreas, can this be fixed or updated for vb 4?


All times are GMT. The time now is 01: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
  • Page Generation 0.01136 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (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
  • (5)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