MyBB Community Forums

Full Version: Format-Nullifying Format
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have a forum and I need a way so that, in a post, I can say
Name

While showing the hidden
[b][/b]

This is so people can copy and paste a template, post their own and have it be bolded the way I format it.
However if they can't see the

[b][/b]

just

Name

Then they can't copy it bolded.

I'm looking for a format similar to
[code]
So that it nullifies any formatting and leaves it visible.

[code]
Cannot work though, because it puts a scroll bar inside the "code".
For instance,
[b]Your username:[/b]


[b]Your In-Game name:[/b]


[b]The name of the staff member:[/b]


[b]Where did this happen: Server, Website or Other[/b]


[b]If Other, please state where:[/b]


[b]Approximate time:[/b]


[b]What did they do to abuse their rights:[/b]


[b]Anything else that may help:[/b]

There is an unnecessary scroll bar.
If clarification is need, I will provide.
you can remove the maximum height set for code block so that the scroll bar disappears.
in global.css, remove max-height: 200px; for the element .codeblock code
Thank you! This is exactly what I was looking for. I'm very grateful!

(2013-06-04, 02:06 PM).m. Wrote: [ -> ]you can remove the maximum height set for code block so that the scroll bar disappears.
in global.css, remove max-height: 200px; for the element .codeblock code

But, Also, on the topic of, is there a way to change the fact that is says "Code" on top, like
Code:
Your username:
?

I'm aware you can change it through "Languages", but I want to change it for this specific post only.
^ can you show above requirement with an image. here is an attempt with custom MyCode (Documentation - MyCode)

Title --> code
Short Description --> modifying code block
Regular Expression --> \[code(?: )?(?:title="([^"]+)")?(?: )?\](.+)\[\/code\]
Replacement -->
<div class="codeblock">
<div class="title">Code:<br />$1</div>
<div class="body" dir="ltr"><code>$2</code></div>
</div>
Enabled? --> yes

usage example --> [code title="your details"]here is the content[/code]
[Image: codel.gif]

regular usage -->
here is the regular code content
(2013-06-04, 05:33 PM).m. Wrote: [ -> ]^ can you show above requirement with an image. here is an attempt with custom MyCode (Documentation - MyCode)

Title --> code
Short Description --> modifying code block
Regular Expression --> \[code(?: )?(?:title="([^"]+)")?(?: )?\](.+)\[\/code\]
Replacement -->
<div class="codeblock">
<div class="title">Code:<br />$1</div>
<div class="body" dir="ltr"><code>$2</code></div>
</div>
Enabled? --> yes

usage example --> [code title="your details"]here is the content[/code]
[Image: codel.gif]

regular usage -->
here is the regular code content

Sorry for all the hassle, but I decided I don't need that. If you DO feel like helping more, check out this thread I made, Having HUGE, MAJOR spam problems.
http://community.mybb.com/thread-140416.html