Problem with plugin not affecting all instances of regex

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
User avatar
yoshi
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Fri Dec 09, 2005 12:30 pm
Location: uk
Contact:

Problem with plugin not affecting all instances of regex

Post by yoshi » Wed Dec 15, 2010 11:49 am

Never mind, I found that it was the decalring of some parameters inside the loop was causing the issue


Hi,
I have a plugin which I wrote a long time ago.
Its called easiertube and can be downloaded from this post

Basically I am not a coder so don't know much other than what I have self tought.

I have an issue at the moment where this pligin is not acting as it shoudl on each intance of the regex occurance.

the plugin basically replaces [youtube] urls with the embed code and allows you to specify lots of other options.. The problem I have is that although each instance of a [youtube] url is converted to embed code, it doesn't always add all of the additional options.

for example the ability to select the colour of the [youtube] video surround, only seems to work on the 1st video and no subsequent videos on the same page

if you enable the plugin and paste
http://www.[youtube].com/watch?v=So0UOEQVR9s
http://www.[youtube].com/watch?v=FQhImyDekG0
http://www.[youtube].com/watch?v=So0UOEQVR9s

into an article the 1st video and last should show with a coloured background
the 2nd will not (nor woudl any other unique videos embeded on the same page)
repeating the 1st video again does show with the coloured background.

I hope someone with skills can see their way to looking in to this as I know lots of people find this plugin useful, just I don't have the skills to figure out what is going on.

you can see what I mean here
You do not have the required permissions to view the files attached to this post.

Locked

Return to “Joomla! 1.5 Coding”