I want to use the JW 'tipjar' plugin but I'm not sure what to put in the variables, especially in the config-donate.xml for the path to the video file. What I have doesn't work and I'm totally clueless (probably because I'm trying to do this on only 4 hours of sleep...D'oh!).I'm trying all kinds of things but nothing's working. It's probably something really easy and obvious but...I should stop now and go to bed!!! :roll:
Anyway...
This is my player.inc file where I added the so.addParam stuff according to the instructions:
Code:
<?php
$displayheight = $config['player_height'] - 20;
if($config['player_autostart'] == 1) {
$extra = "so.addVariable(\"autostart\", \"true\");";
} else {
$extra = "so.addVariable(\"autostart\", \"false\");";
}
$vshare_player = <<<EOT
<script type="text/javascript" src="{$config["baseurl"]}/player/swfobject.js"></script>
<p id="vshare_player">Get Flash to see this player.</p>
<script type="text/javascript">
var so = new SWFObject("{$config["baseurl"]}/player/player.swf","vshare_player","$config[player_width]","$config[player_height]","8");
so.addParam("allowfullscreen","true");
so.addParam('allowscriptaccess','always');
so.addParam('allownetworking','all');
so.addVariable('plugins', 'tipjar-1');
so.addVariable("file","{$file}");
so.addVariable("image","{$config["baseurl"]}/thumb/$video_id.jpg");
so.addVariable("logo","{$config["baseurl"]}/templates/images/watermark.gif");
so.addVariable("link","{$config["watermark_url"]}");
so.addVariable("linktarget","_blank");
so.addVariable("width","$config[player_width]");
so.addVariable("height","$config[player_height]");
so.addVariable("displayheight","$displayheight");
so.addVariable("overstretch", "true");
so.addVariable("skin", "{$config["baseurl"]}/player/skin.swf");
$extra
so.addVariable("bufferlength", "$config[player_bufferlength]");
so.write('vshare_player');
</script>
EOT;
This is the donate-config.xml
Code:
<config>
<file>{$video_info.VID}</file>
<plugins>donate.swf</plugins>
<donate.business>*******@hotmail.com</donate.business>
<donate.currency_code>USD</donate.currency_code>
<donate.title>Tip Jar</donate.title>
<donate.text>Buy me a Pepsi! Thanks.</donate.text>
<donate.show_pause>true</donate.show_pause>
<donate.show_complete>true</donate.show_complete>
</config>
I'm not sure what else it is that I'm supposed to be doing to get this to work. Anybody have any experience with this kind of thing? Their instructions is all for how to do this if you're just using the player out of the box, not with it on vShare, so I'm not sure what to do really...what goes in the <file></file> tags on the second line of the config thingie or if this is just for a single video that I'm embedding, in which case the path to the file would be easy(just tell it which video)...I'd like this to appear on all videos that have been uploaded.
Bookmarks