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 - Thread Notes (https://vborg.vbsupport.ru/showthread.php?t=323042)

MarkFL 07-25-2016 01:56 PM

Quote:

Originally Posted by Stratis (Post 2573887)
I mention above that i tested in all browsers, i will find a way to work as it is.
IE is not my option, but user and mod-smods use him rather than FF that closes every time, this is other discuss


Thank you very much

Let's try to address the issue of visitors seeing the link to all thread notes. Please go to the product's plugin titled "Set Permissions". It is hooked at "global_bootstrap_init_complete". Click the "Edit" link for that plugin...do you see the correct "Hook Location?"

Stratis 07-25-2016 02:30 PM

1 Attachment(s)
That's ok and active



https://vborg.vbsupport.ru/attachmen...1&d=1469464170

MarkFL 07-25-2016 02:43 PM

Well, that's for another product, but at least I know now that your older vB version does have that PHP plugin hook.

Go to the Navigation Manager and check what permissions are given for the link and the tab. :)

Stratis 07-25-2016 02:54 PM

Yes I was rushed, here it is


PHP Code:

global $vbulletin$show['threadnotes'] = false$show['threadnotes2'] = false; if ($vbulletin->options['markfl_tn_active'] AND (is_member_of($vbulletin->userinfoexplode(','$vbulletin->options['markfl_tn_groups'])) OR in_array(strtolower($vbulletin->userinfo['username']), array_map('trim'array_map('strtolower'explode(PHP_EOL$vbulletin->options['markfl_tn_managers'])))))) {     if ($vbulletin->options['markfl_tn_link'] == 'tab')     {         $show['threadnotes'] = true;     }     elseif ($vbulletin->options['markfl_tn_link'] == 'menu')     {         $show['threadnotes2'] = true;     } } 


Target URL: threadnotes.php
Show Permission Name: threadnotes
Tab Script(s): threadnotes

MarkFL 07-25-2016 02:57 PM

What do you have set for "All Thread Notes Link Placement" in the settings?

Stratis 07-25-2016 03:08 PM

Sorry I do not understand the answer, but please I made a change to my .htaccess
EXPIRES CACHING,
I delete all the commands and now I don't see as visitor the tab. Can this be possible?
Thank you

MarkFL 07-25-2016 03:11 PM

I have no idea how .htaccess would affect permissions like that.

Stratis 07-25-2016 03:36 PM

I put again the EXPIRES CACHING commands but until now visitors don't see the tab, as supposed to be. If you remember I had sent you by p.m the live link of my forum. I don't know what is happening because I test with all browsers and from different PC.

Sorry for the fuss, but it made me crazy..
Thank you for big patient of you.

MarkFL 07-25-2016 03:46 PM

I've never had any need to use any rewrite rules, so I simply have no idea how these caching commands would affect my plugin setting certain elements of the $show array to be used as permissions for navbar elements as intended.

I get so many PMs and so many links to sites with associated login credentials, I have to ask people to send them at the time an issue is being explored, so I don't have to keep track of a long list. :D

MarkFL 08-02-2016 02:21 AM

Update - Version 1.5:
  • Added code to delete thread notes associated with hard-deleted threads.
  • Added code to update threadids of notes associated with a threads merged into other threads.


All times are GMT. The time now is 04:58 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.01235 seconds
  • Memory Usage 1,744KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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