BBcodes? (General)

by Sara Nordling @, Monday, March 03, 2008, 21:32 (5869 days ago)

I have a short question. Wich BBcodes are implementet in My little forum?

Is there a list somewhere?

/Sara

locked
34875 views

BBcodes?

by Mattias Thorslund, Thursday, March 06, 2008, 19:14 (5866 days ago) @ Sara Nordling

One that I just discovered is "code". This is helpful for all kinds of typewriter-formatted text:


Items       Numbers
========    =======
Shoes            12
Shirts            5
locked
34300 views

BBcodes?

by Mattias Thorslund, Thursday, March 06, 2008, 19:18 (5866 days ago) @ Mattias Thorslund

Another: msg, which links to a post on the same forum by message ID.

Your Post

locked
34496 views
Avatar

List of BBCodes

by Alfie ⌂, Vienna, Austria, Thursday, March 13, 2008, 13:25 (5859 days ago) @ Sara Nordling
edited by Alfie, Thursday, March 13, 2008, 16:17

Dear Sara,

I try to come up with a list and some examples...

[b]foo[/b] --> foo (bold)
[i]foo[/i] --> foo (italic)
[u]foo[/u] --> foo (underlined)
[link=http://www.example.org]link text[/link] --> link text
[color=foo]bar[/color] --> bar (colors in hex notation, e.g., #f00 for red)
[size=foo]bar[/size] --> bar bar (foo = small or large)

These BBCodes for text-formatting are not case-sensitive: [b][/b], [i][/i], [u][/u].
For example [b]foo[/b] works as well as [B]foo[/B].
[size=foo]bar[/size] is partly case-sensitive; [size=LARGE]bar[/size] will not work, whereas [SIZE=large]bar[/SIZE] will do the job.

BBCodes which are not active in this forum, but can be easily implemented are [d][/d] for deleted text, [sub][/sub]/[sup][/sup] for sub-/superscript,...

[msg=foo]link text[/msg] --> link text (internal link to another post in the forum, where 'foo' is the 'id' of the post)

[list]
[*]foo
[*]bar
[/list]
-->

  • foo
  • bar

[img]URI[/img] --> [image]

Images may be formated apart from the default (left) to float to the right:
[img=right]URI[/img] -->
[image]
Remark: right now the implementation is a little bit buggy, because no

{ clear:left; }

is used, and the image may be placed where you don't expect it...

foo [inlinecode]bar[/inlinecode] foo --> foo bar foo (monospaced text within a single line)

[code]foo   bar
===   ===[/code]
--> monospaced text with leading/trailing linefeeds:

foo   bar
===   ===

Syntax highlighting (see forum/modules/geshi/geshi/ for languages included in the forum's standard installation; more than 50 are available at GeSHI).
[code=language]code-segment[/code]
The selected language is not case-sensitive, i.e., PHP works as well as php.

Examples:
[code=php]code-segment[/code]

$lastupdate=filemtime($PATH_TRANSLATED);
$monate_upd=array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug", "Sep","Oct","Nov","Dec");
$monat_upd=$monate_upd[date("n", $lastupdate)-1];
$datum_update="last update: ".$monat_upd." ".date("Y", $lastupdate); 
echo $datum_update;


[code=javascript]code-segment[/code]

function ReturnSquare (x) {
  var Result = x * x;
  alert(Result);
}


[code=html]code-segment[/code]

<div id="text">
  <h1>Heading</h1>
  <hr />
  <p class="citation">Paragraph in citation style...</p>
</div>


[code=css]code-segment[/code]

body {
  color: #000;
  background-color: #fff;
  font-size: 100.01%;
  font-family: Verdana,Arial,Helvetica,sans-serif;
  text-align: center;  /* Centering in Internet Explorer */
  margin: 0.25em 0 0.75em 0;
  padding: 1em 1em 0.1em 1em;
  min-width: 41em;
  }

[code=xml]code-segment[/code]

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="gss.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc>http://bebac.at/</loc>
    <lastmod>2008-01-03T17:56:00+01:00</lastmod>
    <changefreq>always</changefreq>
    <priority>1.00</priority>
  </url>
</urlset>

[code=sql]code-segment[/code]

SELECT UNIX_TIMESTAMP(TIME), subject, tid, text
FROM forum_entries
GROUP BY tid
ORDER BY tid DESC, TIME DESC
LIMIT 0, 20

[code=perl]code-segment[/code]

#!/usr/bin/perl -w
use strict;
print "Content-type: text/htmlnn";
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">', "n";
print "<html><head><title>Test</title></head><body>n";
print "<h1>Hello World!</h1>n";
print "</body></html>n";

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
64594 views
Avatar

BBCode [img=right] on IE6

by Alfie ⌂, Vienna, Austria, Tuesday, March 18, 2008, 12:31 (5854 days ago) @ Alfie
edited by Alfie, Thursday, March 20, 2008, 00:08

Dear all,

just discovered that [img=right]URI[/img] does not work at all (no image is displayed) in M$ Internet Explorer v6 (all patches; on XP Pro SP2 all patches).
IE7 (all patches; on Vista Business all patches) works according to standards (like Firefox).

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
34336 views

BBCode [img=right] on IE6: have you tried this?

by ralphdn, Friday, May 09, 2008, 00:27 (5802 days ago) @ Alfie

[image]Have you tried this? (edit or reply to this posting to see the script)

Ralph

locked
34079 views
Avatar

Have YOU tried this on IE6?

by Alfie ⌂, Vienna, Austria, Friday, May 09, 2008, 12:34 (5802 days ago) @ ralphdn

Dear Ralph!

As a diving instructor and cave diver, I love this rule:
STOP - [color=#00f]THINK[/color] - ACT

Have you tried this BBCode with the same configuration as stated in my original post?
You come up with [img=right]foo[/img], which is the correct syntax; but I was talking about an issue with IE6, which renders the code to something like this (screen width: 1600x1200, viewport: 1024x768, font-size: medium):

[image]

As you can see, the image is hidden behind the posts - and visible only in the space within. If the image is smaller (less height) than the post, it is entirely invisible.

I don't want to start a flame war, but are you sure not to be a troll?

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
34280 views

I shall in the future refrain from posting in your forum, A.

by ralphdn, Friday, May 09, 2008, 12:36 (5802 days ago) @ Alfie

Bye,
Ralph

locked
34010 views

List of BBCodes

by Peter, Wednesday, April 30, 2008, 19:07 (5811 days ago) @ Alfie

This may be a silly question, but how did you display the BB Code syntax in your post without it being converted?

locked
34141 views
Avatar

List of BBCodes

by Alfie ⌂, Vienna, Austria, Wednesday, April 30, 2008, 21:58 (5811 days ago) @ Peter

Hi Peter!

This may be a silly question, ...

... there are no silly questions!

... but how did you display the BB Code syntax in your post without it being converted?

I enclosed it within [inlinecode]foo[/inlinecode]; but this is not as intended (just for demonstrational purposes) ...

If you want to see the actual BBCodes I used, reply to my post and activate the quotes...

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
33950 views

List of BBCodes

by Peter, Friday, May 02, 2008, 06:35 (5809 days ago) @ Alfie

Hi Peter!

This may be a silly question, ...


... there are no silly questions!

What's the airspeed velocity of a fully laden swallow?

... but how did you display the BB Code syntax in your post without it being converted?


I enclosed it within [inlinecode]foo[/inlinecode]; but this is not as intended (just for demonstrational purposes) ...

Ah, another secret BBCode! What else are y'all hiding from us? :)

If you want to see the actual BBCodes I used, reply to my post and activate the quotes...

Duh, why didn't I think of that!

Thanks! :ok:

locked
34912 views
Avatar

List of BBCodes

by Alfie ⌂, Vienna, Austria, Friday, May 02, 2008, 12:16 (5809 days ago) @ Peter

Hi Peter!

... there are no silly questions!


What's the airspeed velocity of a fully laden swallow?

Depends. We need some more infomations: the density of the load, the current angle of the trajectory to the ground, windspeed, etc., etc.

Ah, another secret BBCode! What else are y'all hiding from us? :)

Oh, I think I did not forget one; they should be all listed in this post.

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
34233 views

RSS Feed of thread