<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Udvikleren.dk - Seneste [bbcode] forum tråde</title>
    <description>De seneste forum tråde i [bbcode] på Udvikleren.dk</description>
    <link>http://www.udvikleren.dk/</link>
    <pubDate>Wed, 29 Apr 2026 04:14:38 GMT</pubDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Udvikleren.dk RSS Feeder</generator>
    <ttl>60</ttl>
    <item>
      <title>PHP Convert HTML Tags til BBCode</title>
      <description>Hej alle sammen hvordan kan jeg konverter fx &amp;lt;a href="index.php"&amp;gt;Hjem&amp;lt;/a&amp;gt; til [url=index.php]Hjem[/url] eller noget i den stil.&lt;br /&gt;&lt;br /&gt;Nogen ideer. </description>
      <link>http://www.udvikleren.dk/forum/42834/php-convert-html-tags-til-bbcode/</link>
      <pubDate>Wed, 26 Feb 2014 17:41:22 GMT</pubDate>
    </item>
    <item>
      <title>BBcode ÆØÅ vises forkert?</title>
      <description>Hej &lt;img src="/images/smileys/smiley.gif" alt=":)" title=":)" /&gt; &lt;br /&gt;&lt;br /&gt;Jeg har igang med at lave et forum, og er nået til bbcode, men har det problem at nu vises æ, ø og å forkert, selvom det på intet tidspunkt har været noget problem før. Jeg har defineret min charset i header, jeg har sat alt til utf-8 i databasen osv. Det har altså ikke været et problem før. &lt;br /&gt;&lt;br /&gt;Men så lige pludselig nu, når jeg tilføjer bbcode functionen. Hvad kan jeg gøre? &lt;br /&gt;Kode:&lt;br /&gt;&lt;div class="codeboxheader" id="code_993551022" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_993551022_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_993551022code" style="border-top: 0px; display: none;"&gt;
function BBCode ($string) {
$string = htmlentities($string);
$search = array(
'@\[(?i)b\](.*?)\[/(?i)b\]@si',
'@\[(?i)i\](.*?)\[/(?i)i\]@si',
'@\[(?i)u\](.*?)\[/(?i)u\]@si',
'@\[(?i)img\](.*?)\[/(?i)img\]@si',
'@\[(?i)code\](.*?)\[/(?i)code\]@si',
'@\[(?i)url=(.*?)\](.*?)\[/(?i)url\]@si',
'@\[(?i)s\](.*?)\[/(?i)s\]@si'


);
$replace = array(
'&amp;lt;b&amp;gt;\\1&amp;lt;/b&amp;gt;',
'&amp;lt;i&amp;gt;\\1&amp;lt;/i&amp;gt;',
'&amp;lt;u&amp;gt;\\1&amp;lt;/u&amp;gt;',
'&amp;lt;img src="\\1"&amp;gt;',
'&amp;lt;code&amp;gt;\\1&amp;lt;/code&amp;gt;',
 '&amp;lt;a href="\\1"&amp;gt;\\2&amp;lt;/a&amp;gt;',
'&amp;lt;s&amp;gt;\\1&amp;lt;/s&amp;gt;'

);
return preg_replace($search , $replace, $string);
}


&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Kode til udpostningen: &lt;br /&gt;&lt;div class="codeboxheader" id="code_1220210227" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_1220210227_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;Kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_1220210227code" style="border-top: 0px; display: none;"&gt;
echo nl2br(BBcode($post_content)) . ' &amp;lt;/div&amp;gt;';
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;På forhånd tak for hjælpen.</description>
      <link>http://www.udvikleren.dk/forum/37852/bbcode-aeoeaa-vises-forkert/</link>
      <pubDate>Mon, 14 May 2012 09:41:54 GMT</pubDate>
    </item>
    <item>
      <title>fra html til bbcode</title>
      <description>Hej &lt;br /&gt;&lt;br /&gt;Jeg prøver at  vende mit html til bbcode. når jeg udskriver får jeg slet ikke noget frem &lt;img src="/images/smileys/confused.gif" alt=":S" title=":S" /&gt;&lt;br /&gt;&lt;div class="codeboxheader" id="code_764016532" onclick="ToggleCodeBox(this.id);"&gt;&lt;img id="code_764016532_arrow" src="/images/icons/codeboxarrow_down.gif" alt="Fold kodeboks ind/ud" title="Fold kodeboks ind/ud" /&gt;PHP kode&amp;nbsp;&lt;/div&gt;&lt;pre id="code_764016532code" style="border-top: 0px; display: none;"&gt;&lt;ol&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #0000FF;"&gt;function&lt;/span&gt;&lt;span style="color: #000000;"&gt; bbcode( &lt;/span&gt;&lt;span style="color: #800080;"&gt;$input&lt;/span&gt;&lt;span style="color: #000000;"&gt; ){&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #008000;"&gt;//&lt;/span&gt;&lt;span style="color: #008000;"&gt;Array pattern leder efter hvad der skal &amp;#230;ndres&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #008000;"&gt;        //replace det den skal &amp;#230;ndres til&lt;/span&gt;&lt;span style="color: #008000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #008000;"&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #800080;"&gt;$pattern&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;strong&amp;gt;(.*?)&amp;lt;/strong&amp;gt;/i&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #800080;"&gt;$replace&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;/\[b\](.*?)\[\/b\]&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #800080;"&gt;$pattern&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;i&amp;gt;(.*?)&amp;lt;/i&amp;gt;/i&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #800080;"&gt;$replace&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;1&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;/\[i\]$1\[\/i\]&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #800080;"&gt;$pattern&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;lt;u&amp;gt;(.*?)&amp;lt;/u&amp;gt;/i&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #800080;"&gt;$replace&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;] &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;/\[u\]$1\[\/u\]&lt;/span&gt;&lt;span style="color: #000000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;            &lt;/span&gt;&lt;span style="color: #800080;"&gt;$bbcoded&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #008080;"&gt;preg_replace&lt;/span&gt;&lt;span style="color: #000000;"&gt;(&lt;/span&gt;&lt;span style="color: #800080;"&gt;$pattern&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800080;"&gt;$replace&lt;/span&gt;&lt;span style="color: #000000;"&gt;,&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800080;"&gt;$input&lt;/span&gt;&lt;span style="color: #000000;"&gt;);&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;        &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800080;"&gt;$bbcoded&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;    }&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="padding: 0; margin: 0;"&gt; &lt;span style="color: #000000;"&gt;&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;echo&lt;/span&gt;&lt;span style="color: #000000;"&gt; bbcode(&lt;/span&gt;&lt;span style="color: #800080;"&gt;$row&lt;/span&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;&lt;span style="color: #000000;"&gt;'&lt;/span&gt;&lt;span style="color: #000000;"&gt;reply_text&lt;/span&gt;&lt;span style="color: #000000;"&gt;'&lt;/span&gt;&lt;span style="color: #000000;"&gt;]);&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
      <link>http://www.udvikleren.dk/forum/37844/fra-html-til-bbcode/</link>
      <pubDate>Sun, 13 May 2012 18:52:07 GMT</pubDate>
    </item>
    <item>
      <title>BBCode knapper til input</title>
      <description>Heej alle&lt;br /&gt;&lt;br /&gt;Jeg er begyndt at lege lidt med BBCode også vil jeg gerne have ligesom her på siden. (Se billed &lt;a href="http://offlines.dk/bbcode.png" rel="nofollow"&gt;her&lt;/a&gt;!)&lt;br /&gt;Er der nogen der kan forklare mig hvordan dette kan gøres?</description>
      <link>http://www.udvikleren.dk/forum/34797/bbcode-knapper-til-input/</link>
      <pubDate>Thu, 07 Jul 2011 12:06:59 GMT</pubDate>
    </item>
  </channel>
</rss>