https://www.icyphoenix.com/viewtopic.php?f=32&t=6813 ----------------------------------- Ghostsearcher Sat 26 Dec, 2009 16:43 CODE And MOD TEMPLATE In Bbcode - How To Make It Real? ----------------------------------- Hello again! I got a little Problem. I want to make the "code" "/code" in my posting editor because i got only the normal "code"-function. Hope you understand what i mean? Example like this: [code linenumbers=false]test[/code] And i want this function: OPEN [b][/b] FIND [codeblock]test[/codeblock] REPLACE WITH [codeblock]testings[/codeblock] So how i can do this? I found no explanation for this. -.-" ----------------------------------- Ghostsearcher Tue 29 Dec, 2009 07:52 Re: CODE And MOD TEMPLATE In Bbcode - How To Make It Real? ----------------------------------- Oops, i guess i have to say i'm sorry. This seems to be a normal bbcode from phpbb3. It is because, i never used subsilver2 nor prosilver and i could not find this with the implemented [url=http://www.phpbb.de/community/viewtopic.php?t=182351]BBcodeBox3. Well, i'm just a very big fan of Black Pearl. ;) ----------------------------------- Mighty Gorgon Tue 29 Dec, 2009 11:34 Re: [SOLVED] CODE And MOD TEMPLATE In Bbcode - How To Make It Real? ----------------------------------- So you solved your issue? I think you can create a custom BBCode in ACP to get what you need. ----------------------------------- Ghostsearcher Thu 31 Dec, 2009 09:13 Re: CODE And MOD TEMPLATE In Bbcode - How To Make It Real? ----------------------------------- Nope, not solved. If i knew how i would implement the bbcode. But in this case.... I let it be ^^ ----------------------------------- Mighty Gorgon Thu 31 Dec, 2009 11:02 Re: [SOLVED] CODE And MOD TEMPLATE In Bbcode - How To Make It Real? ----------------------------------- If you go to ACP => POSTING => BBCODES you can customize BBCODES. Add a new one and try this: BBCode Usage: [codeblock][modfile={SIMPLETEXT1}]{TEXT1}[/modfile]{TEXT2}[/codeblock] HTML Replacement: [codeblock]OPEN {SIMPLETEXT1}

FIND:
{L_CODE}:
{TEXT1}


REPLACE WITH:
{L_CODE}:
{TEXT2}


[/codeblock] Then flag [b]Display on posting page[/b]. _________ You can then use something like this: [codeblock][modfile=forum.php]Test[/modfile]Testing[/codeblock] You need to perform some tweaking of course... this is just a basic demo.