<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[MyBB Community Forums - MyCodes]]></title>
		<link>https://community.mybb.com/</link>
		<description><![CDATA[MyBB Community Forums - https://community.mybb.com]]></description>
		<pubDate>Tue, 09 Jun 2026 09:51:08 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Polaroid Mycode]]></title>
			<link>https://community.mybb.com/thread-244894.html</link>
			<pubDate>Fri, 13 Feb 2026 19:52:02 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=156770">Gordie</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-244894.html</guid>
			<description><![CDATA[This mycode is great for anyone that enjoys posting pics<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Regular Expression</span>:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[photo=(.*?)\](.*?)\[/photo\]</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Replacement</span>:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;div style=&quot;background: #fff; padding: 10px 10px 30px 10px; border: 1px solid #ddd; box-shadow: 5px 5px 10px rgba(0,0,0,0.1); display: inline-block; max-width: 90%; transform: rotate(-2deg); margin: 20px;&quot;&gt;
    &lt;img src=&quot;$2&quot; style=&quot;width: 100%; height: auto; display: block;&quot; /&gt;
    &lt;div style=&quot;font-family: 'Comic Sans MS', cursive; text-align: center; padding-top: 15px; color: #333; font-size: 1.1rem;&quot;&gt;$1&lt;/div&gt;
&lt;/div&gt;
</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Useage</span>:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">[photo=Winter in my hometown]https://i.postimg.cc/BbpnZMZs/20260109-155010.jpg[/photo]</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Result</span>:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="JPEG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=48640" target="_blank" title="">Screenshot_20260213_155913_Samsung Internet.jpg</a> (Size: 651.02 KB / Downloads: 90)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[This mycode is great for anyone that enjoys posting pics<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Regular Expression</span>:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[photo=(.*?)\](.*?)\[/photo\]</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Replacement</span>:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;div style=&quot;background: #fff; padding: 10px 10px 30px 10px; border: 1px solid #ddd; box-shadow: 5px 5px 10px rgba(0,0,0,0.1); display: inline-block; max-width: 90%; transform: rotate(-2deg); margin: 20px;&quot;&gt;
    &lt;img src=&quot;$2&quot; style=&quot;width: 100%; height: auto; display: block;&quot; /&gt;
    &lt;div style=&quot;font-family: 'Comic Sans MS', cursive; text-align: center; padding-top: 15px; color: #333; font-size: 1.1rem;&quot;&gt;$1&lt;/div&gt;
&lt;/div&gt;
</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Useage</span>:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">[photo=Winter in my hometown]https://i.postimg.cc/BbpnZMZs/20260109-155010.jpg[/photo]</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Result</span>:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="JPEG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=48640" target="_blank" title="">Screenshot_20260213_155913_Samsung Internet.jpg</a> (Size: 651.02 KB / Downloads: 90)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Fixed] Embedding code for Instagram issue]]></title>
			<link>https://community.mybb.com/thread-243795.html</link>
			<pubDate>Tue, 22 Jul 2025 21:32:36 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=92669">Micheus</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243795.html</guid>
			<description><![CDATA[Does someone has any idea why a "template" created in MyCode works in its preview but doesn't want to work on the forum?<br />
<br />
Here is the MyCode page with the code and preview working:<br />
<a href="https://postimg.cc/ThqKfqCV" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/b20ebc33f43bc5724f44b9eb3b805b5138a189a5/68747470733a2f2f692e706f7374696d672e63632f5468714b667143562f4d792d42422d6d79636f64652d707265766965772e706e67" data-original-url="https://i.postimg.cc/ThqKfqCV/My-BB-mycode-preview.png" loading="lazy"  alt="[Image: My-BB-mycode-preview.png]" class="mycode_img" /></a><br />
<br />
Here is the MyCode being used in a post:<br />
<a href="https://postimg.cc/H82DRL0M" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/d44083338b9b4f51c7756d182761093007132a48/68747470733a2f2f692e706f7374696d672e63632f48383244524c304d2f4d792d42422d706f73742d656469742e706e67" data-original-url="https://i.postimg.cc/H82DRL0M/My-BB-post-edit.png" loading="lazy"  alt="[Image: My-BB-post-edit.png]" class="mycode_img" /></a><br />
and this is the result after save. It "breaks" the post content making it empty:<br />
<a href="https://postimg.cc/rzLDBYCy" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/d1761e6f3cae4820da04b9bdb558db78e58f73fc/68747470733a2f2f692e706f7374696d672e63632f727a4c44425943792f4d792d42422d706f73742d73617665642e706e67" data-original-url="https://i.postimg.cc/rzLDBYCy/My-BB-post-saved.png" loading="lazy"  alt="[Image: My-BB-post-saved.png]" class="mycode_img" /></a> <br />
<br />
while removing it the entire post is OK:<br />
<a href="https://postimg.cc/0Kx1VSSx" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/6ebae7fbdcd5cbba54bf537f496f2140fe197d14/68747470733a2f2f692e706f7374696d672e63632f304b7831565353782f4d792d42422d706f73742d73617665642d6f6b2e706e67" data-original-url="https://i.postimg.cc/0Kx1VSSx/My-BB-post-saved-ok.png" loading="lazy"  alt="[Image: My-BB-post-saved-ok.png]" class="mycode_img" /></a><br />
<br />
Thanks for any tip.]]></description>
			<content:encoded><![CDATA[Does someone has any idea why a "template" created in MyCode works in its preview but doesn't want to work on the forum?<br />
<br />
Here is the MyCode page with the code and preview working:<br />
<a href="https://postimg.cc/ThqKfqCV" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/b20ebc33f43bc5724f44b9eb3b805b5138a189a5/68747470733a2f2f692e706f7374696d672e63632f5468714b667143562f4d792d42422d6d79636f64652d707265766965772e706e67" data-original-url="https://i.postimg.cc/ThqKfqCV/My-BB-mycode-preview.png" loading="lazy"  alt="[Image: My-BB-mycode-preview.png]" class="mycode_img" /></a><br />
<br />
Here is the MyCode being used in a post:<br />
<a href="https://postimg.cc/H82DRL0M" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/d44083338b9b4f51c7756d182761093007132a48/68747470733a2f2f692e706f7374696d672e63632f48383244524c304d2f4d792d42422d706f73742d656469742e706e67" data-original-url="https://i.postimg.cc/H82DRL0M/My-BB-post-edit.png" loading="lazy"  alt="[Image: My-BB-post-edit.png]" class="mycode_img" /></a><br />
and this is the result after save. It "breaks" the post content making it empty:<br />
<a href="https://postimg.cc/rzLDBYCy" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/d1761e6f3cae4820da04b9bdb558db78e58f73fc/68747470733a2f2f692e706f7374696d672e63632f727a4c44425943792f4d792d42422d706f73742d73617665642e706e67" data-original-url="https://i.postimg.cc/rzLDBYCy/My-BB-post-saved.png" loading="lazy"  alt="[Image: My-BB-post-saved.png]" class="mycode_img" /></a> <br />
<br />
while removing it the entire post is OK:<br />
<a href="https://postimg.cc/0Kx1VSSx" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/6ebae7fbdcd5cbba54bf537f496f2140fe197d14/68747470733a2f2f692e706f7374696d672e63632f304b7831565353782f4d792d42422d706f73742d73617665642d6f6b2e706e67" data-original-url="https://i.postimg.cc/0Kx1VSSx/My-BB-post-saved-ok.png" loading="lazy"  alt="[Image: My-BB-post-saved-ok.png]" class="mycode_img" /></a><br />
<br />
Thanks for any tip.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Embed Reddit post mycode]]></title>
			<link>https://community.mybb.com/thread-243100.html</link>
			<pubDate>Fri, 14 Mar 2025 09:54:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=132128">MixRo</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243100.html</guid>
			<description><![CDATA[Can some one help me with a Embed Reddit mycode ?<br />
<br />
it should look something like this : <!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=47775" target="_blank" title="">reddit.PNG</a> (Size: 457.72 KB / Downloads: 140)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Can some one help me with a Embed Reddit mycode ?<br />
<br />
it should look something like this : <!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=47775" target="_blank" title="">reddit.PNG</a> (Size: 457.72 KB / Downloads: 140)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[A custom MyCode works in the Admin sandbox but not in actual posts?]]></title>
			<link>https://community.mybb.com/thread-243069.html</link>
			<pubDate>Fri, 07 Mar 2025 00:17:00 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=127095">king kashue</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-243069.html</guid>
			<description><![CDATA[So, I'm trying to get a BlueSky embed working on my forum and they do not make it easy.<br />
<br />
I realized though that the BlueSky "embed post" function gives you the full "&lt;blockquote&gt; + &lt;script&gt;" combo to copy &amp; paste that Twitter uses for embeds (i.e., it's already giving what my working Twitter MyCode spits out when you give it a normal twitter url to use).<br />
<br />
So, I tried just creating the simplest tags possible and the replacement is literally just the whole 'embed post' block the site gives you (i.e., the content in the regular expression is just (.*?) and the replacement is just &#36;1)<br />
<br />
This actually works...but <span style="font-style: italic;" class="mycode_i">only</span> in the Custom MyCode sandbox. When I try and use it on the forum, it just returns the text.<br />
<br />
<br />
Any clue as to why? Gotta say it's not much of a sandbox if it doesn't reflect how the forum works.]]></description>
			<content:encoded><![CDATA[So, I'm trying to get a BlueSky embed working on my forum and they do not make it easy.<br />
<br />
I realized though that the BlueSky "embed post" function gives you the full "&lt;blockquote&gt; + &lt;script&gt;" combo to copy &amp; paste that Twitter uses for embeds (i.e., it's already giving what my working Twitter MyCode spits out when you give it a normal twitter url to use).<br />
<br />
So, I tried just creating the simplest tags possible and the replacement is literally just the whole 'embed post' block the site gives you (i.e., the content in the regular expression is just (.*?) and the replacement is just &#36;1)<br />
<br />
This actually works...but <span style="font-style: italic;" class="mycode_i">only</span> in the Custom MyCode sandbox. When I try and use it on the forum, it just returns the text.<br />
<br />
<br />
Any clue as to why? Gotta say it's not much of a sandbox if it doesn't reflect how the forum works.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[text with background MyCode?]]></title>
			<link>https://community.mybb.com/thread-241329.html</link>
			<pubDate>Wed, 03 Jul 2024 19:33:02 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=148198">SELLECK87</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-241329.html</guid>
			<description><![CDATA[Is it possible to have Mycode inherent in the text with background?]]></description>
			<content:encoded><![CDATA[Is it possible to have Mycode inherent in the text with background?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[x.com MyCode?]]></title>
			<link>https://community.mybb.com/thread-241050.html</link>
			<pubDate>Sun, 19 May 2024 12:32:48 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=151506">MisterHelp</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-241050.html</guid>
			<description><![CDATA[<div style="text-align: left;" class="mycode_align">Does anyone have a working x.com MyCode?</div>
<div style="text-align: left;" class="mycode_align">Thanks for any help.</div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: left;" class="mycode_align">Does anyone have a working x.com MyCode?</div>
<div style="text-align: left;" class="mycode_align">Thanks for any help.</div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[re-assign a button in the editor]]></title>
			<link>https://community.mybb.com/thread-241043.html</link>
			<pubDate>Sat, 18 May 2024 15:17:03 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=153297">rozbud</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-241043.html</guid>
			<description><![CDATA[Hello All,<br />
Is it possible to re-assign a button in the below editor*, to say "Hello World"?<br />
<br />
<br />
<a href="https://postimages.org/" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/a72fc3c6dd0f63c0b7e5ed95d5c7782120603e8d/68747470733a2f2f692e706f7374696d672e63632f4e303073743951762f65642e706e67" data-original-url="https://i.postimg.cc/N00st9Qv/ed.png" loading="lazy"  alt="[Image: ed.png]" class="mycode_img" /></a><br />
<br />
* Quick Advanced Editor Plus[url=https://github.com/martec/quickadveditorplus][/url]]]></description>
			<content:encoded><![CDATA[Hello All,<br />
Is it possible to re-assign a button in the below editor*, to say "Hello World"?<br />
<br />
<br />
<a href="https://postimages.org/" target="_blank" rel="noopener" class="mycode_url"><img src="https://camo.mybb.com/a72fc3c6dd0f63c0b7e5ed95d5c7782120603e8d/68747470733a2f2f692e706f7374696d672e63632f4e303073743951762f65642e706e67" data-original-url="https://i.postimg.cc/N00st9Qv/ed.png" loading="lazy"  alt="[Image: ed.png]" class="mycode_img" /></a><br />
<br />
* Quick Advanced Editor Plus[url=https://github.com/martec/quickadveditorplus][/url]]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Wanna have embedded Telegram with only MyCode?]]></title>
			<link>https://community.mybb.com/thread-240252.html</link>
			<pubDate>Fri, 09 Feb 2024 09:31:22 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=153280">meisme</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-240252.html</guid>
			<description><![CDATA[Hi,<br />
<br />
i tossing around with MyCode for fun and suddenly *bang* i had embedded Telegram in my forum <img src="https://community.mybb.com/images/smilies/confused.gif" alt="Confused" title="Confused" class="smilie smilie_35" /> <br />
<br />
If you are interessted in this feature, here is the salt:<br />
<br />
1. It is a cascading MyCode. We need 2 MyCode for to do one thing.<br />
<br />
Telegram1:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46630" target="_blank" title="">telegram1.png</a> (Size: 52.48 KB / Downloads: 187)
<!-- end: postbit_attachments_attachment --><br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><a href="https://t.me/(.*)" target="_blank" rel="noopener" class="mycode_url">https://t.me/(.*)</a></blockquote>
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[telegram]&#36;1[/telegram]</blockquote>
<br />
<br />
Do not use (.*?) in Telegram1!!!! Use (.*)!!! <br />
<br />
(there is a thread where you can smell my despair cause of that <a href="https://community.mybb.com/thread-240205.html" target="_blank" rel="noopener" class="mycode_url">https://community.mybb.com/thread-240205.html</a>)<br />
<br />
and Telegram2:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46631" target="_blank" title="">telegram2.png</a> (Size: 63.83 KB / Downloads: 184)
<!-- end: postbit_attachments_attachment --><br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>\[telegram\](.*?)\[/telegram\]</blockquote>
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>&lt;x&gt;&lt;script src="https://telegram.org/js/telegram-widget.js?22" data-telegram-post="&#36;1" data-width="100%" &gt;&lt;/script&gt;&lt;/x&gt;</blockquote>
<br />
<br />
What is essential is the "parse-order". Telegram1 has the 0, will executed first. Telegram2 has the 1, will be executed after Telegram1 has did its thing. <br />
<br />
<br />
2. Also we have to add some code in global.css<br />
<br />
x {<br />
border: 1px solid #ccc;<br />
margin: 0;<br />
background: #fff;<br />
padding: 10px;<br />
display: inline-flex;<br />
flex-flow: row wrap;<br />
justify-content: center;<br />
}<br />
<br />
Yes, i just define a new "tag" x for that. You also can use "blockquote" or "span" ect. for that. But cause of all others are often used and somtimes specialized, there is a high chance that we would interfere in some formats e,g, the normal "blockquote cite" or like that. So better do a stand alone tag.<br />
<br />
3. How it works<br />
<br />
copy the url of a single Telegram-post, e.g. <a href="https://t.me/fcukalender/6" target="_blank" rel="noopener" class="mycode_url">https://t.me/fcukalender/6</a>, paste it in your post-reply, send your post reply, and then you get this telegram-post automatic embedded in your post in your forum, what then looks like that<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46632" target="_blank" title="">Bildschirmfoto vom 2024-02-09 10-28-14.png</a> (Size: 97.54 KB / Downloads: 205)
<!-- end: postbit_attachments_attachment --><br />
<br />
Have fun with it <img src="https://community.mybb.com/images/smilies/smile.gif" alt="Smile" title="Smile" class="smilie smilie_1" />]]></description>
			<content:encoded><![CDATA[Hi,<br />
<br />
i tossing around with MyCode for fun and suddenly *bang* i had embedded Telegram in my forum <img src="https://community.mybb.com/images/smilies/confused.gif" alt="Confused" title="Confused" class="smilie smilie_35" /> <br />
<br />
If you are interessted in this feature, here is the salt:<br />
<br />
1. It is a cascading MyCode. We need 2 MyCode for to do one thing.<br />
<br />
Telegram1:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46630" target="_blank" title="">telegram1.png</a> (Size: 52.48 KB / Downloads: 187)
<!-- end: postbit_attachments_attachment --><br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite><a href="https://t.me/(.*)" target="_blank" rel="noopener" class="mycode_url">https://t.me/(.*)</a></blockquote>
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[telegram]&#36;1[/telegram]</blockquote>
<br />
<br />
Do not use (.*?) in Telegram1!!!! Use (.*)!!! <br />
<br />
(there is a thread where you can smell my despair cause of that <a href="https://community.mybb.com/thread-240205.html" target="_blank" rel="noopener" class="mycode_url">https://community.mybb.com/thread-240205.html</a>)<br />
<br />
and Telegram2:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46631" target="_blank" title="">telegram2.png</a> (Size: 63.83 KB / Downloads: 184)
<!-- end: postbit_attachments_attachment --><br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>\[telegram\](.*?)\[/telegram\]</blockquote>
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>&lt;x&gt;&lt;script src="https://telegram.org/js/telegram-widget.js?22" data-telegram-post="&#36;1" data-width="100%" &gt;&lt;/script&gt;&lt;/x&gt;</blockquote>
<br />
<br />
What is essential is the "parse-order". Telegram1 has the 0, will executed first. Telegram2 has the 1, will be executed after Telegram1 has did its thing. <br />
<br />
<br />
2. Also we have to add some code in global.css<br />
<br />
x {<br />
border: 1px solid #ccc;<br />
margin: 0;<br />
background: #fff;<br />
padding: 10px;<br />
display: inline-flex;<br />
flex-flow: row wrap;<br />
justify-content: center;<br />
}<br />
<br />
Yes, i just define a new "tag" x for that. You also can use "blockquote" or "span" ect. for that. But cause of all others are often used and somtimes specialized, there is a high chance that we would interfere in some formats e,g, the normal "blockquote cite" or like that. So better do a stand alone tag.<br />
<br />
3. How it works<br />
<br />
copy the url of a single Telegram-post, e.g. <a href="https://t.me/fcukalender/6" target="_blank" rel="noopener" class="mycode_url">https://t.me/fcukalender/6</a>, paste it in your post-reply, send your post reply, and then you get this telegram-post automatic embedded in your post in your forum, what then looks like that<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46632" target="_blank" title="">Bildschirmfoto vom 2024-02-09 10-28-14.png</a> (Size: 97.54 KB / Downloads: 205)
<!-- end: postbit_attachments_attachment --><br />
<br />
Have fun with it <img src="https://community.mybb.com/images/smilies/smile.gif" alt="Smile" title="Smile" class="smilie smilie_1" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Mycode auto url]]></title>
			<link>https://community.mybb.com/thread-239812.html</link>
			<pubDate>Sat, 16 Dec 2023 13:24:42 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=27213">lkop</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239812.html</guid>
			<description><![CDATA[is it possible to make mycode for this? it will be really helpful if someone can guide me.<br />
<br />
input:<br />
[link]https://domain/file/demo.zip[/link]<br />
<br />
<br />
<br />
output:<br />
&lt;span class="link"&gt;&lt;a href="https://domain/file/demo.zip"&gt;demo.zip&lt;/a&gt;&lt;/link&gt;]]></description>
			<content:encoded><![CDATA[is it possible to make mycode for this? it will be really helpful if someone can guide me.<br />
<br />
input:<br />
[link]https://domain/file/demo.zip[/link]<br />
<br />
<br />
<br />
output:<br />
&lt;span class="link"&gt;&lt;a href="https://domain/file/demo.zip"&gt;demo.zip&lt;/a&gt;&lt;/link&gt;]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[MyCode  Read More]]></title>
			<link>https://community.mybb.com/thread-239759.html</link>
			<pubDate>Mon, 11 Dec 2023 22:33:46 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=20639">JLP423</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239759.html</guid>
			<description><![CDATA[Hi all, <br />
I just want to share this MyCode I whipped up. It's pretty self-explanatory. I wrote this for my forum because I don't want to have posts that are too long. Sure, some people can say I could just use hide or spoiler plugins, but those completely hide the contents I believe. This one will work almost like an excerpt of a WordPress blog post, but for chosen parts of a post:<br />
<br />
Demo: <a href="https://mybb.vn/Thread-test-test-more-tag?pid=180#pid180" target="_blank" rel="noopener" class="mycode_url">https://mybb.vn/Thread-test-test-more-ta...180#pid180</a><br />
<br />
Let's get started:<br />
<br />
1. Add this into your global.css:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">/*Read More CSS*/

    .readmore {
      border: 1px solid #214f7e;
      background-color: #fdf6e3;
      transition: max-height 0.5s ease;
      overflow: hidden;
      max-height: 150px;
      width: 90%;
      margin: 10px auto;
      padding: 15px;
      border-left: 4px solid #214f7e;
      position: relative;
    }

    .readmore.expanded {
      max-height: none /* Set height to auto for expanded state */
    }

    .readmore-button-container {
    position: relative;
	color: #214f7e;
    border-bottom: 1px solid #214f7e;
    padding-bottom: 3px;
    margin: 0 0 10px 0;
    font-style: normal;
    font-weight: bold;
    }

    .readmore-button {
      margin-right: 10px;
    }
/*End Read More CSS */</code></pre><br />
2. Add this into your headerinclude template:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">  &lt;script&gt;
    function toggleReadMore(button) {
      var content = button.closest('.readmore');
      content.classList.toggle('expanded');
      var readMoreButton = content.querySelector('.readmore-button');

      if (content.classList.contains('expanded')) {
        readMoreButton.innerHTML = &quot;Read Less&quot;;
      } else {
        readMoreButton.innerHTML = &quot;Read More&quot;;
      }
    }
  &lt;/script&gt;</code></pre><br />
3. Add MyCode:<br />
Regular expression:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[more\](.*?)\[/more\]</code></pre><br />
Replacement:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">  &lt;div class=&quot;readmore&quot;&gt;
    &lt;div class=&quot;readmore-button-container&quot;&gt;
      &lt;button class=&quot;readmore-button&quot; onclick=&quot;toggleReadMore(this)&quot;&gt;Read More&lt;/button&gt;
    &lt;/div&gt;
    &lt;p&gt;$1&lt;/p&gt;
  &lt;/div&gt;</code></pre><br />
4. How to use:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">[more] Your long, lengthy content here [/more]
</code></pre><br />
Feel free to style or change it to fit your forum's needs. If there's enough request I can turn it into a simple plugin with some basic options. But for now, enjoy this MyCode tutorial <img src="https://community.mybb.com/images/smilies/smile.gif" alt="Smile" title="Smile" class="smilie smilie_1" />]]></description>
			<content:encoded><![CDATA[Hi all, <br />
I just want to share this MyCode I whipped up. It's pretty self-explanatory. I wrote this for my forum because I don't want to have posts that are too long. Sure, some people can say I could just use hide or spoiler plugins, but those completely hide the contents I believe. This one will work almost like an excerpt of a WordPress blog post, but for chosen parts of a post:<br />
<br />
Demo: <a href="https://mybb.vn/Thread-test-test-more-tag?pid=180#pid180" target="_blank" rel="noopener" class="mycode_url">https://mybb.vn/Thread-test-test-more-ta...180#pid180</a><br />
<br />
Let's get started:<br />
<br />
1. Add this into your global.css:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">/*Read More CSS*/

    .readmore {
      border: 1px solid #214f7e;
      background-color: #fdf6e3;
      transition: max-height 0.5s ease;
      overflow: hidden;
      max-height: 150px;
      width: 90%;
      margin: 10px auto;
      padding: 15px;
      border-left: 4px solid #214f7e;
      position: relative;
    }

    .readmore.expanded {
      max-height: none /* Set height to auto for expanded state */
    }

    .readmore-button-container {
    position: relative;
	color: #214f7e;
    border-bottom: 1px solid #214f7e;
    padding-bottom: 3px;
    margin: 0 0 10px 0;
    font-style: normal;
    font-weight: bold;
    }

    .readmore-button {
      margin-right: 10px;
    }
/*End Read More CSS */</code></pre><br />
2. Add this into your headerinclude template:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">  &lt;script&gt;
    function toggleReadMore(button) {
      var content = button.closest('.readmore');
      content.classList.toggle('expanded');
      var readMoreButton = content.querySelector('.readmore-button');

      if (content.classList.contains('expanded')) {
        readMoreButton.innerHTML = &quot;Read Less&quot;;
      } else {
        readMoreButton.innerHTML = &quot;Read More&quot;;
      }
    }
  &lt;/script&gt;</code></pre><br />
3. Add MyCode:<br />
Regular expression:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[more\](.*?)\[/more\]</code></pre><br />
Replacement:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">  &lt;div class=&quot;readmore&quot;&gt;
    &lt;div class=&quot;readmore-button-container&quot;&gt;
      &lt;button class=&quot;readmore-button&quot; onclick=&quot;toggleReadMore(this)&quot;&gt;Read More&lt;/button&gt;
    &lt;/div&gt;
    &lt;p&gt;$1&lt;/p&gt;
  &lt;/div&gt;</code></pre><br />
4. How to use:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">[more] Your long, lengthy content here [/more]
</code></pre><br />
Feel free to style or change it to fit your forum's needs. If there's enough request I can turn it into a simple plugin with some basic options. But for now, enjoy this MyCode tutorial <img src="https://community.mybb.com/images/smilies/smile.gif" alt="Smile" title="Smile" class="smilie smilie_1" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Search code help]]></title>
			<link>https://community.mybb.com/thread-239681.html</link>
			<pubDate>Sun, 03 Dec 2023 04:44:35 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=27213">lkop</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239681.html</guid>
			<description><![CDATA[i want to create a search using mycode<br />
<br />
regular expression<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[search](.*?)\[/search\]</code></pre><br />
replacement<br />
<pre class="block-code line-numbers language-none"><code class="language-none">https://domainname.com/search.php?action=do_search&amp;keywords=$1...</code></pre><br />
<br />
now it seems if i use "&amp;" mycode returns blank, what to use instead of "&amp;"?]]></description>
			<content:encoded><![CDATA[i want to create a search using mycode<br />
<br />
regular expression<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[search](.*?)\[/search\]</code></pre><br />
replacement<br />
<pre class="block-code line-numbers language-none"><code class="language-none">https://domainname.com/search.php?action=do_search&amp;keywords=$1...</code></pre><br />
<br />
now it seems if i use "&amp;" mycode returns blank, what to use instead of "&amp;"?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[MYcode for image link]]></title>
			<link>https://community.mybb.com/thread-239635.html</link>
			<pubDate>Tue, 28 Nov 2023 20:20:49 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=27213">lkop</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239635.html</guid>
			<description><![CDATA[this is the mycode input i added. but when i use [pop]imagelink[/pop] in thread nothing is showing in thread. what is the mistake am i doing?<br />
<br />
<br />
<a href="https://i.imgur.com/WL6BMW6.png" target="_blank" rel="noopener" class="mycode_url">https://i.imgur.com/WL6BMW6.png</a>]]></description>
			<content:encoded><![CDATA[this is the mycode input i added. but when i use [pop]imagelink[/pop] in thread nothing is showing in thread. what is the mistake am i doing?<br />
<br />
<br />
<a href="https://i.imgur.com/WL6BMW6.png" target="_blank" rel="noopener" class="mycode_url">https://i.imgur.com/WL6BMW6.png</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Code tag how to just have inside text and Not parse link]]></title>
			<link>https://community.mybb.com/thread-239599.html</link>
			<pubDate>Fri, 24 Nov 2023 22:29:57 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=152419">Jano564</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239599.html</guid>
			<description><![CDATA[<pre class="block-code line-numbers language-none"><code class="language-none">..
</code></pre>Hi i want to in my forum use code tag but when i use it and add a link inside is parse the link as url to click i just want to all inside the code tag was texte to copy only. How i can disabled inside tag code everything who is a link because inside code https:.... link do This in blue <a href="http://test" target="_blank" rel="noopener" class="mycode_url">test</a> is short the link and offer to click on but like explained i just want to all be text only.<br />
<br />
How ? thank]]></description>
			<content:encoded><![CDATA[<pre class="block-code line-numbers language-none"><code class="language-none">..
</code></pre>Hi i want to in my forum use code tag but when i use it and add a link inside is parse the link as url to click i just want to all inside the code tag was texte to copy only. How i can disabled inside tag code everything who is a link because inside code https:.... link do This in blue <a href="http://test" target="_blank" rel="noopener" class="mycode_url">test</a> is short the link and offer to click on but like explained i just want to all be text only.<br />
<br />
How ? thank]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Spoiler (hide\show) by MyCode]]></title>
			<link>https://community.mybb.com/thread-239045.html</link>
			<pubDate>Tue, 22 Aug 2023 11:05:36 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=151123">kolubov</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239045.html</guid>
			<description><![CDATA[Trying to create spoiler option in posts by old good recipe.<br />
<br />
regexp:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[spoiler\](.*?)\[/spoiler\]</code></pre><br />
replacement:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;div style=&quot;padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; width: 100%;&quot; &gt;&lt;div style=&quot;text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;&quot;&gt;&lt;span onClick=&quot;if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '&lt;b&gt;Spoiler &lt;/b&gt;&lt;a href=\'#\' onClick=\'return false;\'&gt;Hide&lt;/a&gt;'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '&lt;b&gt;Spoiler &lt;/b&gt;&lt;a href=\'#\' onClick=\'return false;\'&gt;Show&lt;/a&gt;'; }&quot; /&gt;&lt;b&gt;Spoiler &lt;/b&gt;&lt;a href=&quot;#&quot; onClick=&quot;return false;&quot;&gt;Show&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;quotecontent&quot;&gt;&lt;div style=&quot;display: none;&quot;&gt;$1&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</code></pre><br />
It works pretty well in the testbox of visual MyCode editor on admin CP but doesn't work in real posts. The text into the spoiler tag just invisible and nothing shows like the post is absolutely empty. Maybe anyone tryied this and knows how to adjust it?<br />
<br />
Or maybe there are some other ways to put spoiler option in the latest version of myBB.]]></description>
			<content:encoded><![CDATA[Trying to create spoiler option in posts by old good recipe.<br />
<br />
regexp:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">\[spoiler\](.*?)\[/spoiler\]</code></pre><br />
replacement:<br />
<pre class="block-code line-numbers language-none"><code class="language-none">&lt;div style=&quot;padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; width: 100%;&quot; &gt;&lt;div style=&quot;text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;&quot;&gt;&lt;span onClick=&quot;if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '&lt;b&gt;Spoiler &lt;/b&gt;&lt;a href=\'#\' onClick=\'return false;\'&gt;Hide&lt;/a&gt;'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '&lt;b&gt;Spoiler &lt;/b&gt;&lt;a href=\'#\' onClick=\'return false;\'&gt;Show&lt;/a&gt;'; }&quot; /&gt;&lt;b&gt;Spoiler &lt;/b&gt;&lt;a href=&quot;#&quot; onClick=&quot;return false;&quot;&gt;Show&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;quotecontent&quot;&gt;&lt;div style=&quot;display: none;&quot;&gt;$1&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</code></pre><br />
It works pretty well in the testbox of visual MyCode editor on admin CP but doesn't work in real posts. The text into the spoiler tag just invisible and nothing shows like the post is absolutely empty. Maybe anyone tryied this and knows how to adjust it?<br />
<br />
Or maybe there are some other ways to put spoiler option in the latest version of myBB.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Define new colors for [color]]]></title>
			<link>https://community.mybb.com/thread-239029.html</link>
			<pubDate>Sun, 20 Aug 2023 11:44:19 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://community.mybb.com/member.php?action=profile&uid=144649">ArtemidaForum</a>]]></dc:creator>
			<guid isPermaLink="false">https://community.mybb.com/thread-239029.html</guid>
			<description><![CDATA[<span style="color: #000000;" class="mycode_color">So my users could type, for example, </span><br />
<pre class="block-code line-numbers language-none"><code class="language-none">[color=cien]text[/color]</code></pre><span style="color: #000000;" class="mycode_color"><span style="color: #000000;" class="mycode_color"> instead of </span></span><br />
<pre class="block-code line-numbers language-none"><code class="language-none">[color=#996633]text[/color]</code></pre><span style="color: #000000;" class="mycode_color"><span style="color: #000000;" class="mycode_color">I don't even know how to go about doing this.</span></span>]]></description>
			<content:encoded><![CDATA[<span style="color: #000000;" class="mycode_color">So my users could type, for example, </span><br />
<pre class="block-code line-numbers language-none"><code class="language-none">[color=cien]text[/color]</code></pre><span style="color: #000000;" class="mycode_color"><span style="color: #000000;" class="mycode_color"> instead of </span></span><br />
<pre class="block-code line-numbers language-none"><code class="language-none">[color=#996633]text[/color]</code></pre><span style="color: #000000;" class="mycode_color"><span style="color: #000000;" class="mycode_color">I don't even know how to go about doing this.</span></span>]]></content:encoded>
		</item>
	</channel>
</rss>