vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Post Body CSS For Specified Users (https://vborg.vbsupport.ru/showthread.php?t=324881)

BrettC Frontier 11-21-2017 05:27 AM

Small report, this seems to be an issue with activity.php and how it's polling for forum data with the addon active.

template_render_output hook is causing the Forum Name text, and the forum ID to not render on activity.php. It's completely stripped out, everything else is displayed.

Adding in
Code:

AND !in_array(THIS_SCRIPT, array('activity', 'usercp')
at the end of the first if (line 3) of Quick Reply/Edit appears to have resolved the issue - as weird as it seems.

Script effectively becomes this...
Code:

($vbulletin->options['markfl_pbsu_active'] AND ($vbulletin->options['markfl_pbsu_usergroups'] OR $vbulletin->options['markfl_pbsu_users']) AND in_array(THIS_SCRIPT, array('editpost', 'newreply')) AND array_intersect(explode(',', $foruminfo['parentlist']), explode(',', $vbulletin->options['markfl_pbsu_forums'])) AND in_array($this->template, array('postbit', 'postbit_legacy')) AND !in_array(THIS_SCRIPT, array('activity', 'usercp'))

MarkFL 11-21-2017 06:07 AM

1 Attachment(s)
Those scripts have no issues with this product active for me. The condition:

PHP Code:

in_array(THIS_SCRIPT, array('editpost''newreply')) 

already keeps the plugin from executing if THIS_SCRIPT is not in the given array, so adding that new condition should have no effect.

On reviewing the difference between the current version and the version here, I now see what is likely the issue. I have updated the product at the sites on which I offer support (in my signature).

I am attaching this update here to this post.

MarkFL 11-21-2017 05:58 PM

Version 1.2 introduced a new issue, which I have resolved in version 1.2.1 and can be found on the sites on which I actively provide support.


All times are GMT. The time now is 01:46 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.01033 seconds
  • Memory Usage 1,714KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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