Log in

View Full Version : Custom BB Codes


mikaelweb1
09-27-2004, 04:48 PM
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, 04:53 PM
i dunno if hide hack allowed around but where is the problem ?

mikaelweb1
09-27-2004, 04:57 PM
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/satellite/editor/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, 04:59 PM
you want me to code
code that only on reply user can see the info inside the tags ?

mikaelweb1
09-27-2004, 05:02 PM
you want me to code
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, 05: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
// [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 :

// [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, 05:17 PM
i have this code

functions_showthread.php

Look for: require_once('./includes/functions_bbcodeparse.php');
// ##### Start #####
require_once('./includes/functions_hide.php');
// ##### End #####

and some to to it

but i need Custom BB Code to admincp

miz
09-27-2004, 05:22 PM
// [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, 05:25 PM
// [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 ??