Forum Replies Created
-
-
Hi Martin,
thanks for your response!
That’s much easier to use and I will try this way on monday.
It would be great if the shortcode could produce text links in future too, because you can’t make any configuration of the text links.(So only a JS work around may solve this, by replacing the image through text dynamically)
Thanks and best regards,
Christof
Problem:
the simple integration of flowplayer with lightbox as a textlink
just works if the link is embeded in a post or pageWorkaround:
to use this feature everywhere in another plugin or template
add the link in a post/page which will be rendered at the same url like this:<p id="player-wrapper" style="display: none;">
<a class="colorbox" href="url/to/video.mp4">my text link</a>
</p>at the place where the text link should be use:
<div id="player-position"><p><a href="backfall/link/to/video.mp4" >my text link</a></p></div>
<script type="text/javascript">
jQuery(function() {
jQuery('p','#player-position').remove();
jQuery('#player-position').append(jQuery('#player-wrapper').detach());
jQuery('#player-wrapper').show();
});
</script>This way the plugin will create a player which isn’t visible to users. After the page is loaded the integrated javascript will replace your dummy link with the generated flowplayer code.
To developers:
in my case it would help if the parsing of `<a class="colorbox"` would be done in general, like shortcodes are: e.g. I can use shortcodes for flowplayer in other plugins like a slider but the text link as described doesn’t work.I did some further testing and it seems,
that this kind of link only works if it is used in posts.If I place the link elsewhere (footer.php, slider,..)
it won’t work…