Page 1 of 1

Alternative [code] BBCode

Posted: 22 Jul 2010, 21:41
by pebblefish
I am currently using phpBB 3.0.7-PL1.

Our forums are simply making a BBCode and Emoticon list of our own (not using installed MODS). For this purpose, we need a [noparse] tag. We are placing each code inside a column/table, so we do not want the code box which appears around the text when using the normal

Code: Select all

 tag.

I'm looking for a way to install a [noparse] tag onto my forum, or if there is an alternative [code] tag I could use that I can modify to not show the box?

Thanks!

Re: Alternative [code] BBCode

Posted: 22 Jul 2010, 21:55
by Steve
Just use the [quote] tag.

but if you want to make the code box taller with no border.
open your prosilver based style/theme/content.css
find:

Code: Select all

dl.codebox code {
	/* Also see tweaks.css */
	overflow: auto;
	display: block;
	height: auto;
	max-height: 200px;
and adjust the max-height of 200px

Code: Select all

	max-height: 200px;
Open your prosilver based style/theme/colours.css

Code: Select all

/* Code block */
dl.codebox {
	background-color: #FFFFFF;
	border-color: #C9D2D8;
}

dl.codebox dt {
	border-bottom-color:  #CCCCCC;
}

dl.codebox code {
	color: #2E8B57;
}
and remove the borders etc.
hth.

* and edit search for a table bbcode ;)

Re: Alternative [code] BBCode

Posted: 22 Jul 2010, 21:58
by pebblefish
Thanks a lot Steve!

I was going to try and modify the actual code css they use, but I wasn't able to find the file it was located in!

This will help :D

Re: Alternative [code] BBCode

Posted: 23 Jul 2010, 01:55
by FlingeR
Hi, I'm having this problem:

I want to use this code to make a text frame (without links in it):

Code: Select all

<div style="margin-bottom: 10px; background: #000000; padding: 6px; height:auto; border: 2px solid #8C8984; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;color:#bbbbbb;font-family:Courier New">{TEXT}</div>
The problem is that phpbb3 turns de dirrections "http://www...." to a link automatically.
So i check de Code BB tag y i find the <code></code> HTML tag:
Example of code BB tag:

Code: Select all

<code>http://www.opentz.com.ar http://www.opentz.com.ar</code>
I use the same thing in my bbcode:

Code: Select all

<div style="margin-bottom: 10px; background: #000000; padding: 6px; height:auto; border: 2px solid #8C8984; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;color:#bbbbbb;font-family:Courier New"><code>{TEXT}</code></div>
Now, for some reason that i dont understand:

Code: Select all

<code>http://www.opentz.com.ar <!-- m --><a class="postlink" href="http://www.opentz.com.ar">http://www.opentz.com.ar</a><!-- m --></code>
Like you can see, the first direction is OK, but the second it's modified, WHY?

Thanks for the help, and sorry if I'm not clear.