vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change Find about (https://vborg.vbsupport.ru/showthread.php?t=297236)

Adem GEN? 04-25-2013 08:43 PM

See: http://awesomescreenshot.com/09a17haoa9

I know the list, So many options available
List see: http://awesomescreenshot.com/0c117hau4b

Thanks

Lynne 04-25-2013 11:01 PM

Those templates are "activitystream_forum_thread" (and other "activity_stream_*" templates) and so if I search in the files for where the template is rendered, it looks like it happens in the function fetchStream. You probably want to do a search in the files to find where that function gets called and see if there are any hooks just beforehand.

Adem GEN? 05-16-2013 01:26 PM

Hello again, I'm sorry, I am taking your time so much.

The code "exluded forums" below works everywhere but it doesn't work in "threadbit_process". What is the problem? Can you help?

Hook: threadbit_process
PHP Code:

eval('$adem_exluded_forums = in_array($forum[forumid], array(' $vbulletin->options['adem_exluded_forums'] . '));');

if (
$vbulletin->options['adem_thread_preview'])
{
if (!(
$vbulletin->userinfo['userid'] > 0))
{
if (!
in_array($forum['forumid'], array($adem_exluded_forums)))
{
$thread['preview'] = '';
}
}


Thanks in advance

Adem GEN? 09-17-2013 12:46 PM

Quote:

Originally Posted by Lynne (Post 2416541)
Could try something like....

hook location - bbcode_fetch_tags

php:
PHP Code:

if (!($vbulletin->userinfo['userid'] > 0)) {


$tag_list['no_option']['php'] = array(
                
'html'          => 'No viewing allowed'
            
);


(You will need to test it and also replace the html with what you want.)

Hello;
Can I ask something? Why doesn't the code above run on 4.2.0 version?
Thanks...


All times are GMT. The time now is 02:30 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.02550 seconds
  • Memory Usage 1,730KB
  • 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_php_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
  • (4)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