Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Dplayer
This discussion has been closed.
Comments
Once in the head section and again at the end of the body section?
Posted: Wednesday, 28 March 2007 at 10:19AM
<?php /* Extension Name: Dplayer Extension Url: http://lussumo.com/addons/ Description: Turns plain links to mp3 files into playable icons. Version: 0.0.1 Author: Wanderer - Joe Debono Author Url: http://www.debono.com.au/forum/ */ if (in_array($Context->SelfUrl, array('index.php', 'categories.php', 'comments.php', 'post.php'))) { class debplayer extends Control { var $Context; function debplayer(&$Context) { $this->Name = 'debplayer'; $this->Context = &$Context; } function Render() { echo '<script type="text/javascript" src="'. $this->Context->Configuration['WEB_ROOT'] .'extensions/Dplayer/player.js"></script>'; } } $debplayer = new debplayer($Context); $Page->AddRenderControl($debplayer, $Configuration['CONTROL_POSITION_FOOT'] - 5); } ?>
What confuses me is that the head reference is relative and the body reference is absolute, they both work for me, but others say the relative method does not work.
The other consideration, due to the way the script works, is that it must load after the page load is complete.
I took out $Head->AddScript('extensions/Dplayer/player.js'); so it only loaded at the end of the body section and it worked.
Then I took out the function Render() and put back $Head->AddScript('extensions/Dplayer/player.js'); and although the .js file was added to the head correctly, the script failed to activate because the page had not loaded yet.
Posted: Wednesday, 28 March 2007 at 11:15AM
ps: I edited it and took it off
Now we are back to the current version 1.0.1 which emsef says causes this error...
Notice: Trying to get property of non-object in /forum/extensions/Dplayer/default.php on line 20
Posted: Wednesday, 28 March 2007 at 12:07PM
... class debplayer extends Control { var $Context; function debplayer(&$Context) { ... $this->Context = &$Context; } function Render() { ... $this->Context->Configuration['WEB_ROOT'] ... } } $debplayer = new debplayer($Context);
$this->Context->Configuration is defined
This should address issues to it not being found.
Posted: Friday, 30 March 2007 at 12:47PM
Thanks for everybody's effort on this one.
Posted: Friday, 30 March 2007 at 7:46PM
http://audioten.scythoior.com/comments.php?DiscussionID=14&page=1#Item_3
(You have to log in on audioten.scythoior.com first in order to see the discussion.
Login: "wartung(scy)", Password: "bluehead")
Any ideas?
I don't understand because it works for me on all browsers.
The .js file is found but something is stopping the script from firing.
Maybe one of the many errors the page generates...
Warning: Error in parsing value for property 'display'. Declaration dropped.
Source File: http://audioten.scythoior.com/themes/vanilla/styles/green/vanilla.css
Line: 1528
Warning: Error in parsing value for property 'display'. Declaration dropped.
Source File: http://audioten.scythoior.com/themes/vanilla/styles/green/vanilla.print.css
Line: 1069
Error: $ is not defined
Source File: http://audioten.scythoior.com/yshout/js/jquery.js
Line: 14
Warning: Unknown property 'filter'. Declaration dropped.
Source File: http://audioten.scythoior.com/yshout/css/yshout.css
Line: 169
Error: document.forms.frmPostDiscussion has no properties
Source File: http://audioten.scythoior.com/extensions/Quicktags/quicktags.js
Line: 321
Posted: Sunday, 1 April 2007 at 3:26PM
i guess i have to live for a while with that problem, cause the vanilla green style hasn't been updated to match vanilla 1.1.x criteria and, as i just decided to start learning css/xhtml and so on it will take a good while til i'll be able to do fixes myself ;-)
Posted: Tuesday, 17 July 2007 at 7:53AM
http://mysite.com/discussions/?PostBackAction=Download&AttachmentID=6
and Dplayer doesen't recognize is it .mp3 or different file type.
In any case Dplayer is complete as it meets my original needs and no further development is planned.
Feel free to use it to develop your own if you wish.
Posted: Tuesday, 17 July 2007 at 8:14PM
The images are required for the interface, make your own if you like, that's why they are external to the .swf
Posted: Tuesday, 20 November 2007 at 6:04AM