Hi Stephanie,
the only thing I can think of would be if the players were being added via a Nextgen feature that was running the shortcodes.
Could you do a test with these shortcodes in a brand new blank page or post:
[mp3-jplayer tracks="http://sjward.org/seven.mp3"]
[mp3j tracks="http://sjward.org/seven.mp3"]
[mp3t tracks="http://sjward.org/seven.mp3"]
Let me know if you can’t get it working and I’ll try help some more.
Simon
Hi Simon:
Your test tracks work fine with or without NextGEN enabled; however my practice tracks page fails without NextGEN. So there must be something else in the chain of events that generates the tracks page that’s causing trouble.
The practice tracks page is generated as follows:
I have a directory mysite/tracks containing all the track files hierarchically:
tracks/
— A/
—- All_I_Have_To_Do/
——All_I_Have_To_Do_Soprano.mp3
——All_I_Have_To_Do_Alto.mp3
—-At_The_Hop/
——At_The_Hop.mp3
— B/
—- Blue_Moon/
——Blue_Moon_Sop.mp3
——Blue_Moon_Alto.mp3
——Blue_Moon_Score.pdf
etc.
I have a custom PHP function that will walk this directory and pretty-print it hierarchically, displaying a player for each MP3 file found and a link to any PDFs found.
It makes use of another plugin, Collapse-O-Matic, to give a nice nested accordion-like effect for each directory and subdirectory. Collapse-O-Matic uses shortcodes which can be entered manually (or in this case via my function).
Since the whole thing is driven by custom PHP code, I have to call it using yet another plugin, “Insert PHP Code Snippet” which lets me use arbitrary PHP in a page or post.
Disabling any of those plugins (except for the required “Insert PHP Code Snippet”) or any combination of them produces no change. Whether the mp3-jPlayer shortcode is printed out or actually displays a player is solely dependent on whether NextGEN is activated.
I just updated to version 2.2 of your plugin and there’s no difference in behaviour. So for now I’m just going to leave NextGEN activated.
Thanks for your help.
Hi Stephanie from what you say it does seem odd that nextgen would ‘enable’ the shortcode processing. Maybe that php plugin unhooks normal content filters at some point, which nextgen rehooks in, it’s just a guess, but it would explain why you see the raw shortcode on the page. If you need a developer to look at this (I wouldn’t recommend using a php parsing plugin) then feel free to get in touch.
Mystery solved.
The culprit was the Insert PHP Code Snippet plugin. I found a better plugin to do the same thing and now my page displays nicely with or without NextGEN Gallery.
Thank you again for a great plugin!