vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom BB Codes (https://vborg.vbsupport.ru/showthread.php?t=69921)

mikaelweb1 09-27-2004 03:48 PM

Custom BB Codes
 
Custom BB Codes to hide hack from vbstyles.com

i have tested to get some info from vbstyles.com but support on that site is not upp and runing

can any one help me whit this

miz 09-27-2004 03:53 PM

i dunno if hide hack allowed around but where is the problem ?

mikaelweb1 09-27-2004 03:57 PM

Quote:

Originally Posted by miz
i dunno if hide hack allowed around but where is the problem ?

no only i now how to use it http://www.coderslabz.com/images/sat...ditor/hide.gif and i like to jave it like this and on vb code page to

i need this

Tag

Replacement

miz 09-27-2004 03:59 PM

you want me to code [hide] [/hide]
code that only on reply user can see the info inside the tags ?

mikaelweb1 09-27-2004 04:02 PM

Quote:

Originally Posted by miz
you want me to code [hide] [/hide]
code that only on reply user can see the info inside the tags ?

i have that hide hack from vbstyles.com But i need Custom BB Code to it

now it will not be on my VB code page

miz 09-27-2004 04:12 PM

its weird you got only the function and not the bbcode this both supuse to be on the same php script

here is the bbcode addon :
open includes/functions_bbcodeparse.php
Code:

        // [HIGHLIGHT]
        $bbcodes['custom']['find']['[highlight]'] = '#\[highlight\](.*)\[/highlight\]#esiU';
        $bbcodes['custom']['replace']['[highlight]'] = "handle_bbcode_parameter('\\1', '" . str_replace("'", "\'", '<span class="highlight">\1</span>') . "')";
        $bbcodes['custom']['recurse']['highlight'][0] = array('replace_html' => "<span class=\"highlight\">\\7</span>");

below that add :

Code:

        // [HIDE]
        $bbcodes['custom']['find']['[hide]'] = '#\[hide\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/hide\]#esiU';
        $bbcodes['custom']['replace']['[hide]'] = "handle_bbcode_hide('\\2')";
        $bbcodes['custom']['recurse']['hide'][0] = array('handler' => 'handle_bbcode_hide');

and thats all - bbcode added
but you need to add function on this page, thats why im not sure your hack is working

mikaelweb1 09-27-2004 04:17 PM

i have this code

functions_showthread.php

Look for: require_once('./includes/functions_bbcodeparse.php');
PHP Code:

// ##### [hide] [/hide] Start #####
require_once('./includes/functions_hide.php');
// ##### [hide] [/hide] End ##### 

and some to to it

but i need Custom BB Code to admincp

miz 09-27-2004 04:22 PM

Code:

// [HIDE]
        $bbcodes['custom']['find']['[hide]'] = '#\[hide\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/hide\]#esiU';
        $bbcodes['custom']['replace']['[hide]'] = "handle_bbcode_hide('\\2')";
        $bbcodes['custom']['recurse']['hide'][0] = array('handler' => 'handle_bbcode_hide');

this code add costum bbcode to forums

mikaelweb1 09-27-2004 04:25 PM

Quote:

Originally Posted by miz
Code:

// [HIDE]
        $bbcodes['custom']['find']['[hide]'] = '#\[hide\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/hide\]#esiU';
        $bbcodes['custom']['replace']['[hide]'] = "handle_bbcode_hide('\\2')";
        $bbcodes['custom']['recurse']['hide'][0] = array('handler' => 'handle_bbcode_hide');

this code add costum bbcode to forums

can it be done like this
tag: hide
Replacement : <HIDE>{param}</HIDE>
Example: <hide>Hide this text</hide>
Use {option} Yes or No ??


All times are GMT. The time now is 04:02 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.01730 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete