2016-09-18, 03:50 AM
(This post was last modified: 2016-09-18, 03:54 AM by stryderunknown.)
auto embed MP3 urls
|
2016-09-18, 10:28 AM
(2016-09-18, 03:50 AM)stryderunknown Wrote:(2016-09-17, 09:26 PM)alley Wrote: Does not work I did not use the eventhandler code, I used this one:
2016-09-18, 07:30 PM
(This post was last modified: 2016-09-18, 07:52 PM by stryderunknown.)
Okay I can see the error (sorry for the inconvenience). It's part to do with my attempt to stop the code being created too many times and part to do with how javascript handles if !(variable)
So rather than using the original method I was trying to do, it's simpler just to use the eventhandler version as it will only call once, even if there are multiple issues of code inserted and it will be called when the document is loaded, so you could insert it nearly anywhere in a template. If you check the post with original code, I've edited it to reflect the changes (rather than keep quoting similar code multiple times)
2016-09-20, 02:25 PM
Hey, thanks so much @stryderunknown ... it works! stryderunknownstryderunknownstryderunknown
(2016-09-16, 12:14 AM)alley Wrote:(2016-09-15, 11:49 PM)Starnova Wrote: I use the mod Automedia.. it just requires adding any link and plays. I much prefer jplayer but I cannot get it to work on mybb. 1.86 you can take a look if you wish here: (2016-09-16, 12:14 AM)alley Wrote:(2016-09-15, 11:49 PM)Starnova Wrote: Its the only thing I could get to work .. I have tried everything else.
2017-03-06, 04:53 PM
@stryderunknown
This is great, but I noticed that this code seems to put the mp3 player way down at the bottom of the post. Is there a way to have it display the mp3 player at the top of the post?
2017-07-27, 08:47 AM
@Alley
Sorry for the delay in replying, Placement is done through the use of the CSS entry using a relative position and top/bottom/left/right adjustments. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)