Gin
Forum Replies Created
-
Thank you again for your reply.
I understand the principle of what you have explained and what it does.
However, I am not that clued up with php. All I am able to do is copy and paste stuff really.So, a couple of questions, in case you know a thing or two;
1. Where did you get the function “add_m3j” from and are you sure that it is up to date? I am interested as I did not see it mentioned in the doc.2. In your opinion what should I put in my functions.php then? Possibly I’d like to “merge” your code with mine above. Considering the following from the doc:
Template Tags
Tags have become easier since version 1.7, you can now send in shortcodes. Note: there’s an admin option to ignore the tags which needs to remain unticked when you want to use them.
Instructions: Place tag (1) in the header, place tag (2) where you want the players to be.
(1). mp3j_addscripts( $style )
Loads the player’s javascript and CSS files into the page header, and allows you to set a stylesheet. This tag must be placed above wp_head(), and must be used to ensure scripts will be loaded for players set via template tags.
$style can be either a URI to a stylesheet, or ‘styleA’, ‘styleB’, ‘styleC’, ‘styleD’ to use one available from admin. Defaults to current admin setting if not specified.
(2). mp3j_put( $shortcodes )
Adds player(s) where the tag is placed in the theme. Can use multiple times.
$shortcodes is a string containing any player shortcodes and html
Example
Play 5 random library tracks on the posts index page
Put this in header.php above wp_head()
<?php mp3j_addscripts(); ?>Put this in index.php
<?php mp3j_put( '[mp3-jplayer tracks="FEED:LIB" pick="5"]' ); ?>Always use if ( function_exists() ) {} to check tags exist before running them incase the plugin gets deactivated.
Thank you, your input is truly appreciated, even though your code did not work.
All I was asking/saying, is that the doc recommended using something like: if ( function_exists() ) {} …
So I googled and eventually came across the example from an other thread.
You suggested something different, and you also said that you did not know why the instructions said that anymore , I assumed and understood that in your opinion the code was dated/no needed anymore — that’s what I meant by “not needed anymore?”Otherwise, does the following code makes sense to you?
if ( function_exists('mp3j_addscripts') ) { mp3j_addscripts(); }I came up with it by analysing the code I pasted from the other post.
Thanks again
PS: I think there is a typo in your code — shouldn’t it be:
mp3j_addscripts();Instead of:
mp3j_add_scripts();?
Thanks for this helgatheviking, I will try it later on.
I Googled and came across this post:
http://wordpress.org/support/topic/plugin-mp3-jplayer-works-well-customizable?replies=32#post-1810928What do you think about the following — not needed anymore then?
<?php if ( function_exists('mp3j_addscripts') ) { mp3j_addscripts('/wp-content/plugins/mp3-jplayer/css/mp3jplayer-green-sidebar.css'); } ?> <?php mp3j_put(107); ?>Maybe you can help me with the following?
Put this in header.php above wp_head()
<?php mp3j_addscripts(); ?>In Template Tag Help I read:
Always use if ( function_exists() ) {} to check tags exist before running them incase the plugin gets deactivated.What does the final php code should look like? Thank you
Forum: Plugins
In reply to: WP eStore Shortcode Help (PHP required)Can you elaborate on this one?
Forum: Plugins
In reply to: [WPaudio MP3 Player] [Plugin: WPaudio MP3 Player] Does not work in WP 3.4.1Thank you Michelle.
Forum: Plugins
In reply to: [MP3-jPlayer] [Plugin: MP3-jPlayer] possible permissions problemOh well done — much much nicer AND Neater!
If it was me I would try the “Text” Players in settings. You’ll get a better contrast IMO.
Also, I would add something like “PLAY”, “PREVIEW”, “DEMO” or “LISTEN” after the play /pause button. Something like PLAY@url.com.song.mp3… Just to give an extra clue and it wouldn’t look bad.
On a side note + out of topic 😛
Re: You know the thing I have mentioned about recording violinists?
Simply put — if you know violinists of any age/level in London, I’d record them for free — in exchange they’d play one of my short pieces, and I would record it.
That’s a pretty good deal + it can also help students and/or professionals monitor their progress.Forum: Plugins
In reply to: [MP3-jPlayer] [Plugin: MP3-jPlayer] possible permissions problemNo worries – Great!
You can always add this to your MP3 shortcode: flip=”y” — would look neater.
I would also try to give the MP3 cell a fixed width, trying to avoid the resizing on play/pause/play next…
Something like this would go in your custom css (Plugin Options)
.wp-table-reloaded .column-6 {width: 50px;} or whatever size works best.You could also give a fixed size to “Lengths”, “Level” etc…
I have used this table and this player to do something similar.
PS: on a different topic, let me know if you know any violinists in London who would like to be recorded, could offer a service for another as well…
It seems that a lot of people are looking for <massive_h1>THE</massive_h1> answer…
Could it be that John John John !!! has been kidnapped?
Yea, I saw that — did you try to download the package here and test it: https://github.com/johndyer/mediaelement/downloads ??
I haven’t had a chance yet, but if you do so, please report back.
Thanks for the link kcharity, that looks really good!
I think John must be on holiday, probably in some tropical islands!
Hi Mike,
Yes, thank you – I’ll get back as well in regards to what we’ve discussed.
Can’t wait to see it going live!
Thanks again
Thank you, I truly appreciate your gesture, I have just download the file — will check it out + will report back.
<extra_massive_h1>Thanks</extra_massive_h1> John !!!