0

Here is a question for the code bbcode in phpbb3. As we can see here (official site of phpbb3) two ways of presenting a code are used. Is this a bbcode? If so, how can I add it to the board? If not, is this a mod? If yes, where can I find it?

I have searched a lot of how I can achieve a result like this but I came up empty. I appreciate for your help.

Edit: I am talking of course about the code that is presented as an inline next to the text.

1 Answer 1

1

I'm not sure how phpBB implement it, but you could use BBcode to achieve the same effect. To add custom BBcode go to the Posting tab in your ACP, and BBcodes is the first option in the left column.

BBcode usage:

[inline-code]{TEXT}[/inline-code]

HTML replacement:

<span style="background: #fff none repeat scroll 0 0;border: 1px solid #c9d2d8;color: #2e8b57;display: inline;font-family: Monaco,"Andale Mono","Courier New",Courier,monospace;font-size: 0.9em;font-style: normal;line-height: 1.3em;padding: 0 3px;">{TEXT}</span>

Help line:

[inline-code]Your code here[/inline-code]

The above css is taken from the link you posted so should look the same on your site.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you.. That worked. Well PhpBB is full of surprises !! But the code you gave works perfect.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.