Forum Replies Created
-
-
Perfect! Thank you!
Hi Eduard
That is correct. I am able to use the shortcode editor, but when I click on the “insert” button, the shortcode doesn’t appear in the WP editor (As I said in a previous post, In cases when it does work – as an administrator, I see this button with the word “update” and not “insert”).
I tried to add users with regular user roles like author and editor (which does not require the User Role Editor plugin, and I can’t add shortcodes for them either. Also, I changed two user’s user roles from ‘content manager’ to ‘administrator’ so they can use the shortcode editor. The first one works (is able to add shortcodes) but the second does not. They have the same capabilities as admins.In case this is related somehow: I use another plugin that is related to users, called ‘Dashboard access’.
7 years ago in reply to: How to add cuepoints attribute to shortcodeThank you Martin!
I added a filter like you said and now it triggers my jQuery event.
You helped me very much, Thank you!Hi Eduard,
Yes, I’m using the ‘User Role Editor’ plugin.7 years ago in reply to: Add download button to the playerHi Eduard
I received the email saying Flowplayer 7.2.0 is out. Is that the version with the download button I was waiting for?
I have the FV Player Pro plugin version 0.8.39. I still don’t see any download button on the players on my website. Do I need to change any settings or add any parameters to the shortcode to see the download button?Hi Eduard
Thank you for your response. Obviously I read this part of the programmers guide, but it doesn’t help me in my case. In the guide it’s all about fv players in a post, while in my case I have the players in a page.7 years ago in reply to: Add download button to the playerHi Eduard
Any news on this topic?Thank you Martin! Now everything works perfectly!
Hi Martin
1. the $f syntax is taken from this documentation: http://flash.flowplayer.org/documentation/api/index.html.
Now I see it may be something that is not related to the flowplayer we are talking about. What is this, then?2. Creating one shortcode on the page and changing it’s source file didn’t work.
3. What did work is what you initially said, to add a hidden shortcode for each video to the page and click it programmatically using JS when the user selects a video.
Now I have one issue:
Let’s say I have 15 hidden shortcodes on the page.
When the player is displayed, it shows “2 of 15” (for example) on the bottom left corner and it has the ‘next’ and ‘prev’ buttons. Is there a way to get rid of this all?
Thank you!I tried that too. I added one shortcode in the page itself that looks like this:
<div id=”player-container” style=”display: none;”>
<?php
echo do_shortcode(‘[fvplayer src="movie.mp4" lightbox="true;text" caption="Watch Video"]‘);
?>
</div>
and wanted to reset its video file source to the selected video every time a user selects a different video. Then I have these problems:
1. When I try to access the player in my script (on select change event), I write:
$(“#player-container a”).flowplayer();
and get errors like (randomly):
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data fv-flowplayer.min.js:402:16or:
Uncaught SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at fv_player_videos_parse (fv-flowplayer.min.js?ver=6.2.9:402)
at fv-flowplayer.min.js?ver=6.2.9:475
at fv-flowplayer.min.js?ver=6.2.9:7
at Array.forEach (<anonymous>)
at fv-flowplayer.min.js?ver=6.2.9:7
at HTMLDivElement.l (fv-flowplayer.min.js?ver=6.2.9:6)
at Object.e.trigger (fv-flowplayer.min.js?ver=6.2.9:6)
at r (fv-flowplayer.min.js?ver=6.2.9:7)
at HTMLAnchorElement.<anonymous> (fv-flowplayer.min.js?ver=6.2.9:7)or even:
flowplayer() is not a function.then I try this:
var player = $f(“player-container”);
and get this error:
ReferenceError: $f is not definedNow, assuming you can help me with the problems above, I would like to know how exactly to reset the video url of the player. If you can give me a code example, I will appreciate it very much.
Thank you!Thank you for your reply.
Your suggestion was one of the things I tried, unsuccessfully. I added shortcodes in the HTML code returned by AJAX, but when I click on a link that suppose to open a lightbox, it only jumps to the head of the page and no lightbox is opened. For the comparison, I added a shortcode in the HTML of the page itself (loaded on page load, not by AJAX), and it works perfectly.
In both cases I used the same shortcode:
[fvplayer src="video.mp4" lightbox="true;text" caption="Watch Video" splash="tree.jpg"]
I looked at the markup and saw a difference between the tags:
tag created from shortcode on page load:tag created by shortcode in HTML code returned by AJAX:
Watch VideoAs you can see, the class attribute is missing in second tag. I assume that this is what prevents the lightbox opening. The question is, What can I do in this case?
I’m sorry, The table example wasn’t so good. Here is another one:
“<table class=”no-borders”>
<tr class=”header-back-color”>
<th class=”title-column-width”>Title</th>
<th class=”teacher-column-width”>Teacher</th>
<th class=”date-column-width”>Date</th>
<th class=”duration-column-width”>Duration</th>
<th class=”options-column-width”></th>
</tr><tr>
<td>Some title</td>
<td>Some teacher</td>
<td>Sep 4 2017</td>
<td>01:02:23</td>
<td>
<select class=”ddl-options” data-post-id=”882″>
<option value=”” style=”display:none;” selected>Options</option>
<option value=”https://www.MySite.com/wp-content/uploads/2017/06/movie.flv” class=”watch-video”>Watch Video</option>
<option value=”https://www.MySite.com/wp-content/uploads/2017/06/movie.flv”>Download Video</option>
<option value=”https://www.MySite.com/wp-content/uploads/2017/06/testAudio.mp3″>Download Audio</option>
<option value=”https://www.MySite.com/wp-content/uploads/2017/06/summary.pdf”>Download Summary</option>
<option value=”https://www.MySite.com/wp-content/uploads/2017/06/sourcesheet.pdf”>Download Source Sheet</option>
</select></td>
</tr></table><br/>”