<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : [XTemplate]</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 19 Apr 2026 04:37:38 -0000</pubDate>

		<item>
			<title>djmadclass</title>
			<description><![CDATA[i didnt know about hooks=ajax, ill have a look at it and thanks.]]></description>
			<pubDate>Paz, 10 Mayıs 2009 05:56:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post12314]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[Hey, look at this file: <a href="http://trac.cotonti.com/browser/trunk/plugins/markitup/markitup.ajax.php">http://trac.cotonti.com/browser/trunk/plugins/markitup/markitup.ajax.php</a><br />
<br />
For AJAX use Hooks=ajax, not Hooks=standalone. You only need 2 files: notificatons.setup.php, notifications.php All the other files just does nothing so why you make them?<br />
<br />
Also in notifications.php, make one loop instead of two...<br />
<br />
<br />
Anyway, nice idea. Keep it up :)]]></description>
			<pubDate>Cmt, 09 Mayıs 2009 19:36:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post12287]]></link>
		</item>
		<item>
			<title>djmadclass</title>
			<description><![CDATA[here's what i have so far. i kept it just for pm for now and no setting. im not finished with it but you guys can get an idea what i was doing.<br />
<br />
i wanted to bypass the header and the footer because this is the only way i can think of, to do either xml or json arrays out put. <br />
<br />
also, this is why i didnt use the notifir plugin and i meant to say...<br />
<br />
<pre class="code">&lt;!--- BEGAIN: HEADER ---&gt;</pre>
<br />
<strong>notifications.header.php</strong><br />
<br />
<pre class="code">&lt;?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/notifications/notifications.header.php
Version=
Updated=
Type=Plugin
Author=DJMADCLASS
Description=
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=notifications
Part=header
File=notifications.header
Hooks=header.tags
Tags=
Minlevel=0
Order=10
&#091;END_SED_EXTPLUGIN&#093;

==================== */

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


if ($e=='notifications') {
$mskin = &quot;plugins/notifications/notifications.header.tpl&quot;;
$t = new XTemplate ($mskin); }


?&gt;</pre>
<br />
<strong>notifications.header.tpl</strong><br />
<pre class="code">&lt;!-- BEGIN: HEADER --&gt;
&lt;!-- END: HEADER --&gt;</pre>
<br />
<strong>notificatons.footer.php</strong><br />
<br />
<pre class="code">&lt;?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/notifications/notifications.footer.php
Version=
Updated=
Type=Plugin
Author=DJMADCLASS
Description=
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=notifications
Part=footer
File=notifications.footer
Hooks=footer.tags
Tags=
Minlevel=0
Order=10
&#091;END_SED_EXTPLUGIN&#093;

==================== */

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


if ($e=='notifications') {
$mskin = &quot;plugins/notifications/notifications.footer.tpl&quot;;
$t = new XTemplate ($mskin); }


?&gt;</pre>
<br />
<strong>notifications.footer.tpl</strong><br />
<br />
<pre class="code">&lt;!-- BEGIN: FOOTER --&gt;
&lt;!-- END: FOOTER --&gt;</pre>
<br />
<strong>notifications.php</strong><br />
<br />
<pre class="code">&lt;?php
/* ====================
Land Down Under - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/notifications/notifications.php
Version=
Updated=
Type=Plugin
Author=DJMADCLASS
Description=JQUERY JGROWL NOTIFICATIONS
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=notifications
Part=main
File=notifications
Hooks=standalone
Tags=
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

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

// USER GROUP LEVEL ////////////////////////////////////////////////////////////
if (!$usr&#091;'isadmin'&#093; || $userid=='')
	{ $userid = $usr&#091;'id'&#093;; }

if ($userid!=$usr&#091;'id'&#093;)
	{ sed_block($usr&#091;'isadmin'&#093;); }

$user_info = sed_userinfo($userid);
$maingroup = ($userid==0) ? 1 : $user_info&#091;'user_maingrp'&#093;;
$userlevel = $sed_groups&#091;$maingroup&#093;&#091;'level'&#093;;

$a = sed_import('a','G','TXT');
$id = sed_import('id','P','INT');

// SKIN ////////////////////////////////////////////////////////////////////////
$mskin = &quot;plugins/notifications/notifications.tpl&quot;;
$t=new XTemplate ($mskin);


if ($a=='delete') {
$sql = sed_sql_query(&quot;SELECT * FROM $db_pm WHERE pm_id='$id' LIMIT 1&quot;);

if ($row = sed_sql_fetchassoc($sql)) {
if ($cfg&#091;'trash_pm'&#093; &amp;&amp; $pm_state &lt; 3) {

sed_trash_put('pm', $L&#091;'Private_Messages'&#093;.&quot; #&quot;.$id.&quot; &quot;.$row&#091;'pm_title'&#093;.&quot; (&quot;.$row&#091;'pm_fromuser'&#093;.&quot;)&quot;, $id, $row); }
$sql = sed_sql_query(&quot;DELETE FROM $db_pm WHERE pm_id='$id'&quot;); }

//header(&quot;Location: &quot;);
exit; }


// START ARRAY /////////////////////////////////////////////////////////////////
$aResults = array();


// PM NOTIFICATION /////////////////////////////////////////////////////////////
if (!$cfg&#091;'disable_pm'&#093;) {
$usr_pm = sed_sql_query(&quot;SELECT * FROM $db_pm WHERE pm_touserid='&quot;.$usr&#091;'id'&#093;.&quot;' AND pm_state=0&quot;);
$c1=0;

while($notifi_pm = sed_sql_fetcharray($usr_pm)){

$notifi_pm_id = $notifi_pm&#091;'pm_id'&#093;;
$notifi_pm_title = sed_cutstring($notifi_pm&#091;'pm_title'&#093;, 40); // LIMIT HOW LONG YOU WANTED
$notifi_pm_text = $notifi_pm&#091;'pm_text'&#093;;
$notifi_pm_text = str_replace('&quot;', '', $notifi_pm_text); // ARE NOT ALLOWED
$notifi_pm_text = str_replace(&quot;'&quot;, '', $notifi_pm_text); // ARE NOT ALLOWED
$notifi_pm_text = str_replace(',', '', $notifi_pm_text); // ARE NOT ALLOWED
$notifi_pm_text = sed_cutstring($notifi_pm_text, 256); // LIMIT HOW LONG YOU WANTED
$notifi_pm_text = wordwrap($notifi_pm_text, 30, &quot;&lt;br&gt;&quot;); // LIMIT HOW MANY CHAR PER LINE


$notifi_pm_from_userinfo = sed_userinfo($notifi_pm&#091;'pm_fromuserid'&#093;);
$notifi_pm_fromavator = (!empty($notifi_pm_from_userinfo&#091;'user_avatar'&#093;)) ? '&lt;img src='https://www.cotonti.com/.$notifi_pm_from_userinfo&#091;'user_avatar'&#093;.' align=left width=50 vspace=2px hspace=2&gt;' : '';
$notifi_pm_fromname = strtoupper($notifi_pm_from_userinfo&#091;'user_name'&#093;);

$notifi_pm_icon = '&lt;img src=https://www.cotonti.com/skins/'.$skin.'/img/system/icon-pm.gif hspace=2px&gt; '; // PM ICON

$notifi_pm_sticky = 'true'; // TRUE MAKE IT STICKY

$notifi_pm_title_output = $notifi_pm_icon.$notifi_pm_title; // ICON AND TITLE
$notifi_pm_text_output = $notifi_pm_fromavator.'MSG FROM: '.$notifi_pm_fromname.'&lt;br&gt;&lt;br&gt;'.$notifi_pm_text; // AVATOR, SUBJECT AND MESSAGE


$c1++;
$aResults&#091;&#093; = array(&quot;id&quot;=&gt;($c1), &quot;pm_id&quot;=&gt;$notifi_pm_id , &quot;title&quot;=&gt;$notifi_pm_title_output, &quot;text&quot;=&gt;$notifi_pm_text_output, &quot;nsticky&quot;=&gt;$notifi_pm_sticky ); }

} // END PM NOTIFICATIONS //////////////////////////////////////////////////////




// JGROWL DATA.ITEMS ///////////////////////////////////////////////////////////
echo &quot;{\&quot;items\&quot;: &#091;&quot;;
$arr = array();

for ($i=0;$i&lt;count($aResults);$i++) {
$arr&#091;&#093; = &quot;{\&quot;id\&quot;: \&quot;&quot;.$aResults&#091;$i&#093;&#091;'id'&#093;.&quot;\&quot;, \&quot;pm_id\&quot;: \&quot;&quot;.$aResults&#091;$i&#093;&#091;'pm_id'&#093;.&quot;\&quot;,  \&quot;title\&quot;: \&quot;&quot;.$aResults&#091;$i&#093;&#091;'title'&#093;.&quot;\&quot;, \&quot;text\&quot;: \&quot;&quot;.$aResults&#091;$i&#093;&#091;'text'&#093;.&quot;\&quot;, \&quot;nsticky\&quot;: \&quot;&quot;.$aResults&#091;$i&#093;&#091;'nsticky'&#093;.&quot;\&quot;}&quot;; }

echo implode(&quot;, &quot;, $arr);
echo &quot;&#093;}&quot;;


?&gt;</pre>
<br />
<strong>notificatons.setup.php</strong><br />
<br />
<pre class="code">&lt;?PHP
/* ====================
Land Down Under - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/notifications/notifications.setup.php
Version=
Updated=
Type=Plugin
Author=DJMADCLASS
Description=JQUERY JGROWL NOTIFICATIONS
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=notifications
Name=NOTIFICATION WITH JQUERY JGROWL
Description=
Version=
Author=
Updated=
Copyright=
Notes=
SQL=
Auth_guests=R
Lock_guests=RW12345A
Auth_members=RW
Lock_members=RW12345A
&#091;END_SED_EXTPLUGIN&#093;

&#091;BEGIN_SED_EXTPLUGIN_CONFIG&#093;
&#091;END_SED_EXTPLUGIN_CONFIG&#093;
==================== */

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

?&gt;</pre>
<br />
<strong>notifications.tpl</strong><br />
<br />
<pre class="code">&lt;!-- BEGIN: MAIN --&gt;
&lt;!-- END: MAIN --&gt;</pre>[/][/]]]></description>
			<pubDate>Cmt, 09 Mayıs 2009 19:05:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post12285]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Um, no w don't use &lt;!--- HEADER ---&gt; the problem is your calling a $t a new skin file before header is done with it And so its trying to use your title<br />
<br />
And as kordahil said, there's no need to add a whole new header file like that you can use various things liek $out or the different vars avail to plugs to add things in the header if need be.]]></description>
			<pubDate>Cum, 08 Mayıs 2009 00:28:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post12174]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Why not update the existing notification plugin to use jgrowl?<br />
And by the way, you can't actually 'code' jquery, because jquery is only a framework for coding javascript, it's not a language itself.]]></description>
			<pubDate>Cum, 08 Mayıs 2009 00:19:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post12170]]></link>
		</item>
		<item>
			<title>djmadclass</title>
			<description><![CDATA[hey, thanks guys for the feed back. im creating a notification plugin using jquery jgrowl and json. i havent fully look at all the new changes of cotonti.<br />
<br />
the problems was in tpl, i had it like sedito.<br />
<br />
<pre class="code">&lt;!--- BEGAIN MAIN ---&gt;</pre>
<br />
but in cotonti, its.<br />
<br />
<pre class="code">&lt;!--- HEADER ---&gt;</pre>
<br />
for now i created this plugin for pm notifications, on till i can either find some one who knows how to code jquery to help me out or i figure it out some how. ill just leave it for pm and share it when it done.<br />
<br />
i want to be able to exit the notifications and update the sql but the only way i can think of is to add a link to update the sql. the problem is that when you click on it. it will redirect you.<br />
<br />
here a link to <a href="http://stanlemon.net/projects/jgrowl.html#samples" rel="nofollow">jgrowl</a> so you guys can see what im talking about.]]></description>
			<pubDate>Per, 07 Mayıs 2009 19:57:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post12159]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[<strong>$t</strong> is one of reserved variables used by Cotonti core, you should never use it unless you know what you're doing.]]></description>
			<pubDate>Paz, 03 Mayıs 2009 06:20:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post11994]]></link>
		</item>
		<item>
			<title>JonnyM</title>
			<description><![CDATA[My guess is that the loading of a new skin file <span style="color:#CE5C00">notifications.header.tpl</span> in <span style="color:#CE5C00">header.php*</span> one row before the code calls <span style="color:#CE5C00">parse(&quot;HEADER&quot;)</span> makes XTemplate unhappy.<br />
Why it works in Seditio I can't say though.<br />
Btw, why is a skin file loaded there in the first place ?<br />
<br />
EDIT: It might work if the skin file is loaded before <span style="color:#CE5C00">header.tpl</span>. Just change the hook to <span style="color:#CE5C00">header.main</span><br />
<br />
<span style="color:#CE5C00">*</span>that's where the <span style="color:#CE5C00">header.tags</span> files are loaded]]></description>
			<pubDate>Cmt, 02 Mayıs 2009 20:54:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post11972]]></link>
		</item>
		<item>
			<title>djmadclass</title>
			<description><![CDATA[any idea why im getting this parse error.<br />
<br />
<pre class="code">&#091;XTemplate&#093;
    * parse: blockname &#091;HEADER&#093; does not exist

&#091;XTemplate&#093;

    * parse: blockname &#091;FOOTER.USER&#093; does not exist

    * parse: blockname &#091;FOOTER&#093; does not exist</pre>
<br />
i dont get this error on seditio. here the plugin code.<br />
<br />
<pre class="code">&lt;?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/notifications/notifications.header.php
Version=
Updated=
Type=Plugin
Author=
Description=
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=notifications
Part=
File=notifications.header
Hooks=header.tags
Tags=
Minlevel=0
Order=10
&#091;END_SED_EXTPLUGIN&#093;

==================== */

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

if ($e=='notifications') {
$mskin = &quot;plugins/notifications/notifications.header.tpl&quot;;
$t = new XTemplate ($mskin); } 


?&gt;</pre>]]></description>
			<pubDate>Cum, 01 Mayıs 2009 22:57:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2674&d=0#post11955]]></link>
		</item>
	</channel>
</rss>