Alternative [code] BBCode

Support for PhpBB3 BBCodes. Post here to get help with any BBCode related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe exactly what it is you want.
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
pebblefish
BBCoder I
BBCoder I
Posts: 2
Joined: 09 Jul 2010, 07:22

Alternative [code] BBCode

Post 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!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 847
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Alternative [code] BBCode

Post 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 ;)
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
pebblefish
BBCoder I
BBCoder I
Posts: 2
Joined: 09 Jul 2010, 07:22

Re: Alternative [code] BBCode

Post 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
FlingeR
BBCoder I
BBCoder I
Posts: 2
Joined: 23 Jul 2010, 01:39
Contact:

Re: Alternative [code] BBCode

Post 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.
Locked