<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : new jQuery module</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 06 May 2026 12:44:37 -0000</pubDate>

		<item>
			<title>booka</title>
			<description><![CDATA[I had some experience with plugins modification, but...<br />
<br />
Ill try to to it as a plugin, but...<br />
<br />
I know how to do and multiply plugin for header, page or index hooks, but...<br /><br /><b>Добавлено 1 час 11 Минут спустя:</b><br /><br />ok... I think I catch it now...<br />
<br />
I will use SQL-table to store playlist, track codes and names (or generate codes from it's names and unique ID).<br />
<br />
Plugin will have at least 2 files:<br />
<br />
1) player.header.php with hooks header.main. This will help to add JS between &lt;head&gt; tags.<br />
2) player.header.tags. This will be plugin body for header.tpl<br />
<br />
And for begining - I need to add another file for admin to manage strings at SQL]]></description>
			<pubDate>Thu, 25 Mrt 2010 04:58:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23761]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[I have looked at this Jplayer... COOL<br />
<br />
SO I guess that you want a plugin that plays audio... (that is selected by users)<br />
And the filename is the parameter you are talking about..<br />
<br />
This CAN be a nice plugin indeed<br />
<br />
Were do you want to use it ?<br />
Page, index, forum posts etc.....<br />
<br />
Am I Right ?<br />
<br />
How are your programming skills in Cotonti.. This needs some more coding..]]></description>
			<pubDate>Thu, 25 Mrt 2010 04:39:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23759]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[thanks, I'll try it...<br />
<br />
but what about {HEADER_COMPOPUP} tag and variable $out['compopup'] - is it possible to use it?]]></description>
			<pubDate>Thu, 25 Mrt 2010 04:33:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23758]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[Make a simple plugin and parse the JS parts to an TAG with a header hook...<br />
<br />
Here is your main PHP code for the plugin<br />
<br />
<br />
<div class="highlight"><pre class="php">
/* ====================
Cotonti - Website engine
<a href="http://www.cotonti.com">http://www.cotonti.com</a>

Plugin: example js (ez)

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=JSexample
Part=header
File=JSexample
Hooks=header.tags
Tags=header.tpl:{HEADER_JS_EXAMPLE}
Minlevel=0
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

$ez_js = &quot;&lt;script type=\&quot;text/javascript\&quot;&gt;

// here comes your JS
// Do with it what you want in code

&lt;/script&gt;&quot;;
	
$t-&gt; assign(array( &quot;HEADER_JS_EXAMPLE&quot; =&gt; $ez_js ));
}
</pre></div>
<br />
ADD {HEADER_JS_EXAMPLE} tag to your header.TPL]]></description>
			<pubDate>Thu, 25 Mrt 2010 04:21:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23757]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[человек! (так как ты русский) а что в шаблон хедера нельзя вставить??? headar.tpl<br />
какие хаки, какие плагины....]]></description>
			<pubDate>Thu, 25 Mrt 2010 03:59:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23756]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[no I can't... I need change some variables, root to files somewhere... after that add it to javascript]]></description>
			<pubDate>Thu, 25 Mrt 2010 03:43:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23755]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[You could make an custom.js from your code.<br />
Then add it manually to header.tpl<br />
you can find header.tpl in the skins directory<br />
<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/custom.js&quot;&gt;&lt;/script&gt;]]></description>
			<pubDate>Thu, 25 Mrt 2010 03:19:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23754]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[Can anyone please tell how I can add some javascript which can be used as pluging without hacking the core?<br />
<br />
I need to add nezt piece of code <div class="highlight"><pre class="html">&lt;head&gt;</pre></div> part. Now it is fixed but I suppose to add possibility of changing some parameters with PHP.<br />
<div class="highlight"><pre class="html">&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;js/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;js/jquery.jplayer.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;js/demos.common.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;

$(document).ready(function(){

   $(&quot;#jquery_jplayer&quot;).jPlayer({
		ready: function () {
			//playTrack(&quot;http://localfest/audio/morcheeba_-_world_looking_in.mp3&quot;,$(&quot;#worldlookingin&quot;).text());
			//demoInstanceInfo(this.element, $(&quot;#demo_info&quot;)); // This displays information about jPlayer's configuration in the demo page
		},
		customCssIds: true
	})
	.jPlayer(&quot;onProgressChange&quot;, function(lp,ppr,ppa,pt,tt) {
 		$(&quot;#pcent&quot;).text(parseInt(ppa)+&quot;%&quot;);
	});


	$(&quot;#pause&quot;).hide();

	function showPauseBtn()
	{
		$(&quot;#play&quot;).fadeOut(function(){
			$(&quot;#pause&quot;).fadeIn();
		});
	}

	function showPlayBtn()
	{
		$(&quot;#pause&quot;).fadeOut(function(){
			$(&quot;#play&quot;).fadeIn();
		});
	}

	function playTrack(t,n)
	{
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;setFile&quot;, t).jPlayer(&quot;play&quot;);

		showPauseBtn();

		$(&quot;#trackname&quot;).fadeOut(function(){
			$(&quot;#trackname&quot;).text(n);
			$(&quot;#trackname&quot;).fadeIn();
		});

		$(&quot;#pcent&quot;).fadeOut(function(){
			$(&quot;#pcent&quot;).fadeIn();
		});

		return false;
	}

	$(&quot;#worldlookingin&quot;).click(function() {
 		return(playTrack(&quot;audio/morcheeba_-_world_looking_in.mp3&quot;,$(&quot;#worldlookingin&quot;).text()));
	});

	$(&quot;#thesea&quot;).click(function() {
		return(playTrack(&quot;audio/morcheeba_-_the_sea.mp3&quot;,$(&quot;#thesea&quot;).text()));
	});

	$(&quot;#blindfold&quot;).click(function() {
		return(playTrack(&quot;audio/morcheeba_-_blindfold.mp3&quot;,$(&quot;#blindfold&quot;).text()));
	});

	$(&quot;#play&quot;).click(function() {
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;play&quot;);
		showPauseBtn();
		return false;
	});

	$(&quot;#pause&quot;).click(function() {
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;pause&quot;);
		showPlayBtn();
		return false;
	});

	$(&quot;#stop&quot;).click(function() {
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;stop&quot;);
		showPlayBtn();
		return false;
	});

	$(&quot;#vmax&quot;).click(function() {
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;volume&quot;, 100);
		return false;
	});

	$(&quot;#vmute&quot;).click(function() {
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;volume&quot;, 0);
		return false;
	});

	$(&quot;#vhalf&quot;).click(function() {
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;volume&quot;, 50);
		return false;
	});

});

&lt;/script&gt;</pre></div>]]></description>
			<pubDate>Thu, 25 Mrt 2010 03:10:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=5452&d=0#post23753]]></link>
		</item>
	</channel>
</rss>