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)

Lynne 04-21-2013 07:29 PM

You are welcome to ask again about it.

Adem GEN? 04-23-2013 10:30 AM

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

l'm sorry, I'm beginner.
Your Message #17
hook location strip_bbcode:
PHP Code:

$fast_and_dirty true 

functions.php
Is it possible to disable the this code with plugin?
PHP Code:

    if ($fast_and_dirty)
    {

        
// any old thing in square brackets
        
$find[] = '#\[.*/?\]#siU';
        
$replace[] = '';

        
$message preg_replace($find$replace$message);
    } 

I get my need in this way.
$message; //= preg_replace($find, $replace, $message);

Thanks

Lynne 04-23-2013 03:57 PM

If you want to disable that code, then you can set $fast_and_dirty to false and then that code won't be run.

Adem GEN? 04-23-2013 04:30 PM

When I set $fast_and_dirty=false; to false, this time else section runs.

[php],[html],[code],[VIDEO],[quote],[IMG],[url],[email] => Isn't there any way to show these tags with their contents?

Lynne 04-23-2013 04:41 PM

You mean like in the regular posts? You will need to basically write a plugin to do that that uses the same code used in posts.

Adem GEN? 04-23-2013 05:41 PM

functions.php line 2341
PHP Code:

        if ($keepquotetags)
        {
            
$regex '#\[(?!quote)(\w+?)(?>[^\]]*?)\](.*)(\[/\1\])#siU';
        }
        else
        {
            
$regex '#\[(\w+?)(?>[^\]]*?)\](.*)(\[/\1\])#siU';
        } 

How can I control this code with plugin?
Find: $regex = '#\[(?!quote)(\w+?)(?>[^\]]*?)\](.*)(\[/\1\])#siU';

Replace: $regex = '#\[(?!quote|php|html|code|video|url|img)(\w+?)(?>[^\]]*?)\](.*)(\[/\1\])#siU';
How can I replace the code above?

Lynne 04-23-2013 06:05 PM

I think the only way to replace it is to actually modify the file itself.

Adem GEN? 04-23-2013 06:54 PM

Thank you very much for taking the time

Best Regards

Adem GEN? 04-25-2013 10:36 AM

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

What hook location for Activity Stream AND Activity Stream in Member Profile?

Thanks

Lynne 04-25-2013 05:36 PM

I don't understand your question. But to see what hooks are being used on a particular page, you may turn on debug mode and they will all be listed on the bottom of the page in the order they are called.


All times are GMT. The time now is 01:33 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.01052 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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