<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : sql queries in header.main</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 21 May 2026 17:29:11 -0000</pubDate>

		<item>
			<title>musiconly</title>
			<description><![CDATA[you were right! Body of message and body of my scroll text had same var name <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /> fixed that and now it's working like a charm <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/grin.gif" alt=":D" /> thanks!]]></description>
			<pubDate>Sal, 30 Mar 2010 22:04:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23863]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[<blockquote>Zabranjeno neregistriranim korisnicima.<br />
Preusmjeravam...Rođen Eric Patrick Clapton( Ripley, Surrey, 30. ožujka 1945.), engleski gitarist i pjevač. Inspiriran bluesom, već više od 20 godina slovi za jednog od najboljih rock gitarista na svijetu. Svirao je u različitim sastavima, a najpoznatiji su The Yardbirds, Cream i Blind Faith.1962. Rođen MC Hammer, (Stanley Kirk Burrell), 1990 US No.1 album 'Please Hammer Don't Hurt Em', 1990 UK No.3 single 'U Can't Touch This'.1964. Rođena Tracy Chapman, singer, songwriter, (1988 UK No.5 &amp; US No.6 single 'Fast Car', 1988 US &amp; UK No.1 debitantski album 'Tracy Chapman').</blockquote>
<br />
???<br />
<br />
Looks like it is your scroll text, right? May be you should check variables for concatenation with some system vars?]]></description>
			<pubDate>Sal, 30 Mar 2010 21:32:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23862]]></link>
		</item>
		<item>
			<title>musiconly</title>
			<description><![CDATA[I have one plugin with header.main hook and I was wondering if you have problems with system messages because of that hook?<br />
<br />
For example, the output of the plugin is shown AFTER the system message like &quot;You're not allowed to do that! Redirecting... (and then output of the plugin that is using that header.main hook).<br />
<br />
Live example is on my website, <a href="http://www.gitare.info" rel="nofollow">http://www.gitare.info</a><br />
It's about that scrolling marquee. Try visiting this link <a href="http://www.gitare.info/forums.php?m=topics&amp;s=88" rel="nofollow">http://www.gitare.info/forums.php?m=topics&amp;s=88</a> as non-registered user, and you'll see how big my error message gets <br />
<br />
Any ideas?]]></description>
			<pubDate>Sal, 30 Mar 2010 21:08:30 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23860]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[yep...<br />
<br />
Firstly I need to solve question with scroll... Don't know why but I can't change default scroll with custom by jQuery.<br />
And decide how I will sync playlist for cases when file is removed from PFS...]]></description>
			<pubDate>Sal, 30 Mar 2010 18:51:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23858]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[Will you publish the plugin after completion? <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Sal, 30 Mar 2010 17:56:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23857]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[thanks... looks like here I didn't break anything, but I'll try to review code and add prefixes...<br />
<br />
anyway - because I'm not very skilled coder it will be a huge field for optimization )))]]></description>
			<pubDate>Sal, 30 Mar 2010 14:00:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23855]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Note: it is recommended to use variable prefixes in plugin parts that hook into modules, to ensure that no variable conflicts occur. E.g. use $jqp_sql and $jqp_row to make sure you don't destroy $sql and $row in the outer context.]]></description>
			<pubDate>Sal, 30 Mar 2010 13:47:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23854]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[here: )))))))))<br />
<br />
<pre class="code">while($row = sed_sql_fetcharray($sql))
$i=1;
{
$track .= &quot;{name:\&quot;&quot;.$row&#091;'track_artist'&#093;.&quot; - &quot;.$row&#091;'track_song'&#093;.&quot;\&quot;,mp3:\&quot;&quot;.$row&#091;'track_loc'&#093;.&quot;\&quot;}&quot;;
    if ($i&lt;sed_sql_numrows($sql)) { $track .= &quot;, &quot;; }
$i++;
}</pre>
<br />
think tomorrow I'll release it]]></description>
			<pubDate>Sal, 30 Mar 2010 04:52:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23847]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[And what was the problem?<br />
Or the fault?]]></description>
			<pubDate>Sal, 30 Mar 2010 04:13:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23845]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[dunno why, but it is not working...(((<br />
<br />
where is mistake?<br />
<br />
<div class="highlight"><pre class="php">
&lt;?PHP
/* ====================
&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=jQPlayer
Part=header
File=jQPlayer.header
Hooks=header.main
Tags=header.tpl:{HEADER_COMPOPUP}
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

defined('SED_CODE') or die('Wrong URL');

$sql = sed_sql_query(&quot;SELECT * FROM `sed_jqplayer_playlist`&quot;);

while($row = sed_sql_fetcharray($sql))
$i=1;
{
$track .= &quot;{name:\&quot;&quot;.$row&#091;'track_artist'&#093;.&quot; - &quot;.$row&#091;'track_song'&#093;.&quot;\&quot;,mp3:\&quot;&quot;.$row&#091;'track_loc'&#093;.&quot;\&quot;}&quot;;
	if ($i&lt;sed_sql_numrows($sql)) { $track .= &quot;, &quot;; }
$i++;
}
	
$out&#091;'compopup'&#093; .= '

&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&gt;

$(document).ready(function(){

var playItem = 0;

	var myPlayList = &#091; '.$track.' &#093;;

	// Local copy of jQuery selectors, for performance.
	var jpPlayTime = $(&quot;#jplayer_play_time&quot;);
	var jpTotalTime = $(&quot;#jplayer_total_time&quot;);


   $(&quot;#jquery_jplayer&quot;).jPlayer({
		ready: function () {
			displayPlayList();
			playListInit(false); // Parameter is a boolean for autoplay.			
		},
	swfPath: &quot;/js&quot;, nativeSupport: true, oggSupport: false,
	customCssIds: false
	})
	
	.jPlayer(&quot;onProgressChange&quot;, function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {
		jpPlayTime.text($.jPlayer.convertTime(playedTime));
		jpTotalTime.text($.jPlayer.convertTime(totalTime));
	})
	
	.jPlayer(&quot;onSoundComplete&quot;, function() {
		playListNext();
	});

	$(&quot;#jplayer_previous&quot;).click( function() {
		playListPrev();
		return false;
	});

	$(&quot;#jplayer_next&quot;).click( function() {
		playListNext();
		return false;
	});

	function displayPlayList() {
		for (i=0; i &lt; myPlayList.length; i++) {
			$(&quot;#jplayer_playlist ul&quot;).append(&quot;&lt;li id=\'jplayer_playlist_item_&quot;+i+&quot;\'&gt;&quot;+ myPlayList&#091;i&#093;.name +&quot;&lt;/li&gt;&quot;);
			$(&quot;#jplayer_playlist_item_&quot;+i).data( &quot;index&quot;, i ).click( function() {
				var index = $(this).data(&quot;index&quot;);
				if (playItem != index) {
					playListChange( index );
				} else {
					$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;play&quot;);
				}
			});
		}
	}

	function playListInit(autoplay) {
		if(autoplay) {
			playListChange( playItem );
		} else {
			playListConfig( playItem );
		}
	}

	function playListConfig( index ) {
		$(&quot;#jplayer_playlist_item_&quot;+playItem).removeClass(&quot;jplayer_playlist_current&quot;);
		$(&quot;#jplayer_playlist_item_&quot;+index).addClass(&quot;jplayer_playlist_current&quot;);
		playItem = index;
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;setFile&quot;, myPlayList&#091;playItem&#093;.mp3, myPlayList&#091;playItem&#093;.ogg);
	}

	function playListChange( index ) {
		playListConfig( index );
		$(&quot;#jquery_jplayer&quot;).jPlayer(&quot;play&quot;);
	}

	function playListNext() {
		var index = (playItem+1 &lt; myPlayList.length) ? playItem+1 : 0;
		playListChange( index );
	}

	function playListPrev() {
		var index = (playItem-1 &gt;= 0) ? playItem-1 : myPlayList.length-1;
		playListChange( index );
	}


});

&lt;/script&gt;';


$out&#091;'compopup'&#093; .= '&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=https://www.cotonti.com/&quot;plugins/jQPlayer/jQPlayer.css&quot; /&gt;';

?&gt;
</pre></div><br /><br /><b>Добавлено 3 Минуты спустя:</b><br /><br />oooooooouuuuuuuuuuuuuuuhhhhhhhhhhhh... shit... I'm stupid lazy dumb ass...)))<br />
<br />
Found and fixed]]></description>
			<pubDate>Sal, 30 Mar 2010 04:02:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23844]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Why not? <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Sal, 30 Mar 2010 03:53:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23843]]></link>
		</item>
		<item>
			<title>booka</title>
			<description><![CDATA[Is it possible?]]></description>
			<pubDate>Sal, 30 Mar 2010 03:51:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5473&d=0#post23841]]></link>
		</item>
	</channel>
</rss>