YAFLogo

xuanvu
  • xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
Hello all,

Can anyone help me to integrate the IMMEM tag so it work like YOUTUBE, SPOILER? I've looked at the XML for those two but have no idea what to do to the IMEEM tag. This is an example of the IMMEM html code:


<div style="width:300px;"><object width="300" height="110"><param name="movie" value="http://media.imeem.com/m/LGcn0-8CH7/aus=false/"></param><param name="wmode" value="transparent"></param><embed src="http://media.imeem.com/m/LGcn0-8CH7/aus=false/" type="application/x-shockwave-flash" width="300" height="110" wmode="transparent"></embed></object><div style="background-color:#E6E6E6;padding:1px;"><div style="float:left;padding:4px 4px 0 0;"><a href="http://www.imeem.com/"><img src="http://www.imeem.com/embedsearch/E6E6E6/" border="0"  /></a></div><form method="post" action="http://www.imeem.com/embedsearch/" style="margin:0;padding:0;"><input type="text" name="EmbedSearchBox" /><input type="submit" value="Search" style="font-size:12px;" /><div style="padding-top:3px;"><a href="http://www.imeem.com/ads/banneradclick.ashx?ep=0&ek=LGcn0-8CH7" rel="nofollow"><img src="http://www.imeem.com/ads/bannerad/152/10/" border="0" /></a><a href="http://www.imeem.com/ads/banneradclick.ashx?ep=1&ek=LGcn0-8CH7" rel="nofollow"><img src="http://www.imeem.com/ads/bannerad/153/10/" border="0" /></a><a href="http://www.imeem.com/ads/banneradclick.ashx?ep=2&ek=LGcn0-8CH7" rel="nofollow"><img src="http://www.imeem.com/ads/bannerad/154/10/" border="0" /></a><a href="http://www.imeem.com/ads/banneradclick.ashx?ep=3&ek=LGcn0-8CH7" rel="nofollow" ><img src="http://www.imeem.com/ads/bannerad/155/10/LGcn0-8CH7/" border="0" /></a></div></form></div></div><br/><a href="http://www.imeem.com/jazzmusic/music/ITBnjRex/david-sanborn-this-masquerade/">This Masquerade - David Sanborn</a>

http://www.imeem.com/jazzmusic/music/ITBnjRex/david-sanborn-this-masquerade/ 

Thanks a lot.

Sponsor
xuanvu
  • xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
I did some more searching and found this code that is needed to embed immeem:

Where {TEXT} will be replaced with the ID, for example "_60UWrGU6U".

Can anyone help me from here :)

Thanks,

Kenny.

xuanvu
  • xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
Can anyone with understanding to RegEx help me here? 🙂 I really don't know anything about RegEx and what is needed to replace that block of code.

Thanks a lot!

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
15 years ago
Try RegexBuilder and Regulazy; programmes to help you build regex.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

xuanvu
  • xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
Alrite, I've figured it out 🙂 I didn't know any RegEx, I've just based on the YouTube BBCode and made some adjustment, luckily, it work!!! Here is the code in case anyone one:

Go to the BBCode Extensions, add a new one. This is my settings:

Description box:

[IMEEM]Put the IMEEM ID (just the ID) here [/IMEEM]

Search RegEx box:

\[imeem\](?<inner>(?<id>[0-9A-Za-z-_]{10}))[^[]*\[/imeem\]

Replace RegEx box:

<!-- BEGIN IMEEM --><object width="450" height="120"><param name="movie" value="http://media.imeem.com/m/${id}/aus=false/"></param><param name="wmode" value="transparent"></param><embed src="http://media.imeem.com/m/${id}/aus=false/" type="application/x-shockwave-flash" width="450" height="120" wmode="transparent"></embed></object><!-- END IMEEM -->

Replace Variables box:

id

That should do it.

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
15 years ago
Good stuff; thanks for posting back your solution :-)


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )