• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to make Code bbcode like Quote bbcode

Veer

Well-known member
#1
Hi guys,

Looking for way [template or file edit] to make Code bbcode work like Quote bbcode, I mean using Code bbcode I want to allow html formatting (i.e link tags, line break, font size etc) same as Quote bbcode does.

Hope there's a way to do this.
 

Brogan

XenForo moderator
Staff member
#2
The Code BB Code tag is specifially designed not to parse HTML content.
Why not just use Quote in that case?

You could do it with file edits but they would need to be redone every upgrade.

Otherwise you would be better off asking for an add-on to be created.
 

Veer

Well-known member
#3
The Code BB Code tag is specifially designed not to parse HTML content.

Why not just use Quote in that case?

You could do it with file edits but they would need to be redone every upgrade.
Actually I need a bbcode that parse HTML content other than the Quote bbcode, Im gonna use it on usergroup permission base, and in that case I can't use Quote bbcode.
Yeah, I know its a pain but at the moment I don't see a better solution.
 

Veer

Well-known member
#5
Have you considered using King Kovifor's BBCode Manager add-on?

http://xenforo.com/community/threads/bbcode-manager.5657/

I'm not sure whether it will suit your requirements but you can create custom BB Code with it.
I'm already using that add-on but I don't know how to make a custom bbcode that not only parse HTML content but also have 2 different permission based result. (1) show actual content under bbcode to logged in users only and (2) on guest view show different message to them.

In Code bbcode case I've done both things by editing template but yet I'm not successful with HTML parsing.