Author Topic: Youtube plugin  (Read 6214 times)

Offline DC187

  • Jr. Member
  • **
  • Posts: 10
Youtube plugin
« on: May 06, 2010, 10:31:30 AM »
Hi all,

I've just written my first roundcube plugin which embeds youtube videos when a youtube url is found in the message body.

Forgive me but I only started using php a few days ago and so found it a challenge getting the regex to work.

At the moment it only works with plain text messages, for some reason the regex wouldn't match on html or alternative types, maybe someone with greater skills than me can shed some light on why!?

Comments and improvements much welcomed.

Cheers :)
« Last Edit: May 06, 2010, 10:52:38 AM by DC187 »

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
Youtube plugin
« Reply #1 on: May 06, 2010, 10:43:04 AM »
I haven't used it, but please don't use the
-tag. Try to use
...
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

Offline DC187

  • Jr. Member
  • **
  • Posts: 10
Youtube plugin
« Reply #2 on: May 06, 2010, 10:54:02 AM »
Thanks,

I've made that change and re-attached.
« Last Edit: May 08, 2010, 07:27:11 AM by DC187 »


Offline DC187

  • Jr. Member
  • **
  • Posts: 10
Youtube plugin
« Reply #4 on: May 08, 2010, 07:32:36 AM »
Oh it works with messages sent from gmail as well :)

Offline afrozenminute

  • Newbie
  • *
  • Posts: 5
Youtube plugin
« Reply #5 on: May 13, 2010, 12:40:24 AM »
Not workig :(

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Youtube plugin
« Reply #6 on: May 13, 2010, 01:19:13 AM »
Read about adding a plugin to Roundcube. Use logs and debug, and then write something like this...
Quote from: afrozenminute;27415
Not workig :(