MyBB Community Forums

Full Version: Annoying Paperclip Speech Bubble
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Using the Smiley Sign as inspiration I set on making my own Mycode and here it is

Title: Annoying Paperclip
Description: Place your text inside a speech bubble from the annoying paperclip

Regular Expression:
\[clip\](.*?)\[/clip\]

Replacement:
<table width="169" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/cliptop.gif" /></td>
  </tr>
  <tr>
    <td background="images/clipmiddle.gif" align="center"><span style="font-size: 9pt">$1</strong></span></td>
  </tr>
  <tr>
    <td><img src="images/clipbottom.gif" /></td>
  </tr>
  <tr>
    <td><img src="images/clipbottomarrow.gif" /></td>
  </tr>
  <tr>
    <td><img src="images/clip.gif" /></td>
  </tr>
</table>

Upload all attached images to your forum 'images' directory

How to use:
[clip]I'm that silly annoying paperclip[/clip]

Result:
[Image: paperclip.jpg]
Haha this is the most pointless but coolest Mycode ever.
(2010-01-10, 02:03 AM)Zomaian Wrote: [ -> ]Haha this is the most pointless but coolest Mycode ever.

I agree!
I love it! ^_^ It's fun
Funny code!

I added a little animation to the eyes:

[Image: clip.gif]
This is great and I've created a modded version of it to show my own animation. However, it has a problem on different themes. The text in the bubble defaults to the theme's text colour. I want to make it a fixed colour so it blends well in light and dark themes. How can I set a colour for the text?
ROFL! I had to add this to my site just for the fun of it - maybe I'll get people talking or even just playing with it...

Quote:I want to make it a fixed colour so it blends well in light and dark themes. How can I set a colour for the text?
Try this code instead (for the replacement):
<table width="169" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/cliptop.gif" /></td>
  </tr>
  <tr>
    <td background="images/clipmiddle.gif" align="center"><span style="font-size: 9pt; color: #000000">$1</strong></span></td>
  </tr>
  <tr>
    <td><img src="images/clipbottom.gif" /></td>
  </tr>
  <tr>
    <td><img src="images/clipbottomarrow.gif" /></td>
  </tr>
  <tr>
    <td><img src="images/clip.gif" /></td>
  </tr>
</table>

That should make it stay black. Basically, just add "color:" and then your color in the span style code (but you have to include a ; between the font size and the color).
I thought it was something like that but I couldn't get it right. I'm not very good when it comes to web coding! Thanks a lot for this.
Thanks punked Big Grin
damn! this what I am looking for.
I am thinking about creating "bubble" theme Smile