Icy Phoenix

     
 

SOLVED CODE And MOD TEMPLATE In Bbcode - How To Make It Real?

SOLVED CODE And MOD TEMPLATE In Bbcode - How To Make It Real?

Article
Reply with quote    Download Post  
Post 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: [Download] [Hide] [Select]
test


And i want this function:
OPEN
FIND
Code: [Download] [Hide] [Select]
test

REPLACE WITH
Code: [Download] [Hide] [Select]
testings


So how i can do this?
I found no explanation for this. -.-"



 
Last edited by Ghostsearcher on Tue 29 Dec, 2009 07:53; edited 1 time in total 
Ghostsearcher - View user's profile Send private message  
Ghostsearcher [ Sat 26 Dec, 2009 16:43 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


SOLVED CODE And MOD TEMPLATE In Bbcode - How To Make It Real?

Comments
Reply with quote    Download Post  
Post 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 BBcodeBox3.

Well, i'm just a very big fan of Black Pearl.



 
Ghostsearcher - View user's profile Send private message  
Ghostsearcher [ Tue 29 Dec, 2009 07:52 ]
Reply with quote    Download Post  
Post 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.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Tue 29 Dec, 2009 11:34 ]
Reply with quote    Download Post  
Post 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 ^^



 
Ghostsearcher - View user's profile Send private message  
Ghostsearcher [ Thu 31 Dec, 2009 09:13 ]
Reply with quote    Download Post  
Post 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:
Code: [Download] [Hide] [Select]
[modfile={SIMPLETEXT1}]{TEXT1}[/modfile]{TEXT2}


HTML Replacement:
Code: [Download] [Hide] [Select]
OPEN <strong>{SIMPLETEXT1}</strong><br />
<br />
FIND:<br />
<div class="codetitle"><b>{L_CODE}:</b></div><div class="codecontent">{TEXT1}</div><br />
<br />
REPLACE WITH:<br />
<div class="codetitle"><b>{L_CODE}:</b></div><div class="codecontent">{TEXT2}</div><br />
<br />




Then flag Display on posting page.

_________

You can then use something like this:

Code: [Download] [Hide] [Select]
[modfile=forum.php]Test[/modfile]Testing


You need to perform some tweaking of course... this is just a basic demo.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Thu 31 Dec, 2009 11:02 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1