<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Frontpage Slideshow</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 10 Apr 2026 20:30:48 -0000</pubDate>

		<item>
			<title>Kingsley</title>
			<description><![CDATA[slider works now, but I get no images..<br />
<br />
<strong>Added 2 hours 9 minutes later:</strong><br />
<br />
what kind of code do you have for {PAGE_ROW_EXTRA1}?<br />
<br />
I got: <br />
<br />
<strong>Type of field</strong>: input; <br />
<strong>BASE HTML:</strong>  &lt;input class=&quot;text&quot; type=&quot;text&quot; maxlength=&quot;255&quot; size=&quot;56&quot; /&gt;<br />
<br />
and where did you get the _ROW_ part in the tag? Can't find it anywhere, only this:<br />
<br />
<strong>page.tpl: {PAGE_XXXXX}, {PAGE_XXXXX_TITLE}<br />
<br />
page.add.tpl: {PAGEADD_FORM_XXXXX}, {PAGEADD_FORM_XXXXX_TITLE}<br />
<br />
page.edit.tpl: {PAGEEDIT_FORM_XXXXX}, {PAGEEDIT_FORM_XXXXX_TITLE}<br />
<br />
list.tpl: {LIST_ROW_XXXXX}, {LIST_TOP_XXXXX}</strong><br /><br /><b>Added 5 minutes later:</b><br /><br />and what's the difference between<br />
<br />
Haberler and imghaber? aren't those the same?<br />
If not? Should I install them both?<br />
<br />
If so, this error occurs:<br />
<br />
Fatal error: Uncaught exception 'Exception' with message 'Template file not found: ' in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/xtemplate.php:143 Stack trace: #0 /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/xtemplate.php(39): XTemplate-&gt;restart('') #1 /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/plugins/haberler/haberler.php(36): XTemplate-&gt;__construct('') #2 /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/plugins/haberler/haberler.php(122): sed_get_haberler() #3 /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/core/index/index.inc.php(44): include_once('/home/ecutioner...') #4 /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/index.php(20): require_once('/home/ecutioner...') #5 {main} thrown in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/xtemplate.php on line 143]]></description>
			<pubDate>Вт, 23 Лют 2010 00:07:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5129&d=0#post23135]]></link>
		</item>
		<item>
			<title>Gökhan YILDIZ</title>
			<description><![CDATA[plugins/haberler/haberler.php<br />
<br />
<div class="highlight"><pre class="php">&lt;?PHP
/* ====================
&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=haberler
Part=homepage
File=haberler
Hooks=index.tags
Tags=index.tpl:{INDEX_HABERLER}
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

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

function sed_get_haberler($cat, $limit,$res) {

global $L, $t, $db_pages, $db_users, $usr, $cfg, $sed_cat, $sed_catacc, $plu_empty;

        $jj = 0;
        $mtch = $sed_cat&#091;$cat&#093;&#091;'path'&#093;.&quot;.&quot;;
        $mtchlen = strlen($mtch);
        $catsub = array();
        $catsub&#091;&#093; = $cat;

        foreach($sed_cat as $i =&gt; $x)
                {
                if (substr($x&#091;'path'&#093;, 0, $mtchlen)==$mtch &amp;&amp; sed_auth('page', $i, 'R'))
                        { $catsub&#091;&#093; = $i; }
                }

        $sql = sed_sql_query(&quot;SELECT p.*, u.user_name, user_avatar FROM $db_pages AS p
        LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid
        WHERE page_state=0 AND page_cat IN ('&quot;.implode(&quot;','&quot;, $catsub).&quot;') ORDER BY page_id DESC LIMIT $limit&quot;);

        $mskin = sed_skinfile(array('haberler', $cat));
        $haberler = new XTemplate($mskin);

    while($pag = sed_sql_fetcharray($sql))
    {
        $jj++;
        $catpath = sed_build_catpath($pag&#091;'page_cat'&#093;, &quot;&lt;a href=https://www.cotonti.com/\&quot;%1\$s\&quot;&gt;%2\$s&lt;/a&gt;&quot;);
        $pag&#091;'page_pageurl'&#093; = (empty($pag&#091;'page_alias'&#093;)) ? &quot;page.php?id=&quot;.$pag&#091;'page_id'&#093; : &quot;page.php?al=&quot;.$pag&#091;'page_alias'&#093;;
        $pag&#091;'page_fulltitle'&#093; = $catpath.&quot; &quot;.$cfg&#091;'separator'&#093;.&quot; &lt;a href=https://www.cotonti.com/\&quot;&quot;.$pag&#091;'page_pageurl'&#093;.&quot;\&quot;&gt;&quot;.htmlspecialchars($pag&#091;'page_title'&#093;).&quot;&lt;/a&gt;&quot;;

        $submitnewpage = (sed_auth('page', $cat, 'W')) ? &quot;&lt;a href=https://www.cotonti.com/\&quot;page.php?m=add&amp;amp;c=$cat\&quot;&gt;&quot;.$L&#091;'lis_submitnew'&#093;.&quot;&lt;/a&gt;&quot; : '';

        $item_code = 'p'.$pag&#091;'page_id'&#093;;
        list($pag&#091;'page_comments'&#093;, $pag&#091;'page_comments_display'&#093;) = sed_build_comments($item_code, $pag&#091;'page_pageurl'&#093;, FALSE);
                $haberler-&gt; assign(array(
             &quot;PAGE_ROW_URL&quot; =&gt; $pag&#091;'page_pageurl'&#093;,
            &quot;PAGE_ROW_ID&quot; =&gt; $pag&#091;'page_id'&#093;,
            &quot;PAGE_ROW_TITLE&quot; =&gt; $pag&#091;'page_fulltitle'&#093;,
            &quot;PAGE_ROW_SHORTTITLE&quot; =&gt; htmlspecialchars($pag&#091;'page_title'&#093;),
            &quot;PAGE_ROW_CAT&quot; =&gt; $pag&#091;'page_cat'&#093;,
            &quot;PAGE_ROW_CATTITLE&quot; =&gt; htmlspecialchars($sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'title'&#093;),
            &quot;PAGE_ROW_CATPATH&quot; =&gt; $catpath,
            &quot;PAGE_ROW_CATDESC&quot; =&gt; htmlspecialchars($sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'desc'&#093;),
            &quot;PAGE_ROW_CATICON&quot; =&gt; $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'icon'&#093;,
            &quot;PAGE_ROW_KEY&quot; =&gt; htmlspecialchars($pag&#091;'page_key'&#093;),
            &quot;PAGE_ROW_DESC&quot; =&gt; htmlspecialchars($pag&#091;'page_desc'&#093;),
            &quot;PAGE_ROW_AUTHOR&quot; =&gt; htmlspecialchars($pag&#091;'page_author'&#093;),
            &quot;PAGE_ROW_OWNER&quot; =&gt; sed_build_user($pag&#091;'page_ownerid'&#093;, htmlspecialchars($pag&#091;'user_name'&#093;)),
            &quot;PAGE_ROW_AVATAR&quot; =&gt; sed_build_userimage($pag&#091;'user_avatar'&#093;, 'avatar'),
            &quot;PAGE_ROW_DATE&quot; =&gt; @date($cfg&#091;'formatyearmonthday'&#093;, $pag&#091;'page_date'&#093; + $usr&#091;'timezone'&#093; * 3600),
            &quot;PAGE_ROW_FILEURL&quot; =&gt; $pag&#091;'page_url'&#093;,
            &quot;PAGE_ROW_SIZE&quot; =&gt; $pag&#091;'page_size'&#093;,
            &quot;PAGE_ROW_COUNT&quot; =&gt; $pag&#091;'page_count'&#093;,
            &quot;PAGE_ROW_FILECOUNT&quot; =&gt; $pag&#091;'page_filecount'&#093;,
            &quot;PAGE_ROW_COMMENTS&quot; =&gt; $pag&#091;'page_comments'&#093;,
            &quot;PAGE_ROW_RATINGS&quot; =&gt; &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/vote&quot;.round($pag&#091;'rating_average'&#093;,0).&quot;.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;,
            &quot;PAGE_ROW_ODDEVEN&quot; =&gt; sed_build_oddeven($jj),
            &quot;PAGE_ROW_NUM&quot; =&gt; $jj,
                                ));

                switch($pag&#091;'page_type'&#093;)
                        {
                        case '1':
                        $haberler-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, $pag&#091;'page_text'&#093;);
                        break;

                        case '2':

                        if ($cfg&#091;'allowphp_pages'&#093;)
                                {
                                ob_start();
                                eval($pag&#091;'page_text'&#093;);
                                $haberler-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, ob_get_clean());
                                }
               else
                                {
                                $haberler-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, &quot;The PHP mode is disabled for pages.&lt;br /&gt;Please see the administration panel, then \&quot;Configuration\&quot;, then \&quot;Parsers\&quot;.&quot;);
                                }
                        break;

                        default:
                        $readmore = strpos($pag&#091;'page_text'&#093;, &quot;&#091;more&#093;&quot;);
                        if ($readmore&gt;0)
                                {
                                $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, $readmore).&quot;&lt;br /&gt;&quot;;
                                $pag&#091;'page_text'&#093; .= &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.$pag&#091;'page_pageurl'&#093;.&quot;\&quot;&gt;&quot;.$L&#091;'ReadMore'&#093;.&quot;&lt;/a&gt;&quot;;
                                }
else { $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, 110).&quot; ...&quot;;}

                        $haberler-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, sed_parse($pag&#091;'page_text'&#093;, $cfg&#091;'parsebbcodepages'&#093;, $cfg&#091;'parsesmiliespages'&#093;, 1));
                        break;
                        }
                $haberler-&gt;parse(&quot;HABERLER.PAGE_ROW&quot;);
                }
        $haberler-&gt;parse(&quot;HABERLER&quot;);
        $res = $haberler-&gt;text(&quot;HABERLER&quot;);
        $t-&gt;assign(&quot;INDEX_HABERLER_&quot;.strtoupper($cat).&quot;&quot;,$res);
    return($res);
}

if ($cfg&#091;'plugin'&#093;&#091;'haberler'&#093;&#091;'maxpages'&#093;&gt;0 &amp;&amp; !empty($cfg&#091;'plugin'&#093;&#091;'haberler'&#093;&#091;'category'&#093;)) {

$cats = explode(',', $cfg&#091;'plugin'&#093;&#091;'haberler'&#093;&#091;'category'&#093;);

foreach($cats as $k =&gt; $i)
        {
        $i = trim($i);
        sed_get_haberler($i,$cfg&#091;'plugin'&#093;&#091;'haberler'&#093;&#091;'maxpages'&#093;,$res);
        }
}
?&gt;</pre></div>
<br />
plugins/haberler/haberler.setup.php<br />
<div class="highlight"><pre class="php">&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/news/news.setup.php
Version=110
Updated=2006-nov-17
Type=Plugin
Author=Neocrome
Description=
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=haberler
Name=Haberler
Description=Pick up pages from a categories and display the newest in the home page
Version=100
Date=2006-nov-17
Author=Asmo
Copyright=Neocrome.ru
Notes=
SQL=
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=W12345A
&#091;END_SED_EXTPLUGIN&#093;

&#091;BEGIN_SED_EXTPLUGIN_CONFIG&#093;
category=01:text::haberler:Category code of the parent category - separated by comma
maxpages=02:select:0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,50,100:4:Recent pages displayed
&#091;END_SED_EXTPLUGIN_CONFIG&#093;

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

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

?&gt;</pre></div>
<br />
skins/sed-light/haberler.tpl<br />
<pre class="code">
&lt;!-- BEGIN: HABERLER --&gt;



&lt;!-- BEGIN: PAGE_ROW --&gt;


    &lt;div class=&quot;slide&quot;&gt;
        &lt;div class=&quot;slide-inner&quot;&gt;
            &lt;a href=https://www.cotonti.com/&quot;{PAGE_ROW_URL}&quot; class=&quot;fpss_img&quot;&gt;
                &lt;span&gt;
                    &lt;span style=&quot;background:url({PAGE_ROW_EXTRA1}) no-repeat;&quot; width=&quot;400&quot; height=&quot;260&quot;&gt;
                        &lt;span&gt;

                            &lt;img src=https://www.cotonti.com/&quot;{PAGE_ROW_EXTRA1}&quot; alt=&quot;Click to here and read news...&quot; width=&quot;400&quot; height=&quot;260&quot; /&gt;
                        &lt;/span&gt;
                    &lt;/span&gt;
                &lt;/span&gt;
            &lt;/a&gt;
            &lt;div class=&quot;fpss-introtext&quot;&gt;
                &lt;div class=&quot;slidetext&quot;&gt;&lt;h1&gt;&lt;a href=https://www.cotonti.com/&quot;{PAGE_ROW_URL}&quot;&gt;{PAGE_ROW_SHORTTITLE}&lt;/a&gt;&lt;/h1&gt;
&lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

&lt;!-- END: PAGE_ROW --&gt;

&lt;!-- END: HABERLER --&gt;

</pre>
<br />
plugins/imghaber/imghaber.php<br />
<br />
<div class="highlight"><pre class="php">&lt;?PHP
/* ====================
&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=imghaber
Part=homepage
File=imghaber
Hooks=index.tags
Tags=index.tpl:{INDEX_IMGHABER}
Order=10
&#091;END_SED_EXTPLUGIN&#093;
==================== */

/**
 * Homepage nes slideshow
 *
 * @package Seditione
 * @version 1.0
 * @author Gökhan YILDIZ
 * @copyright Copyright (c) Gökhan YILDIZ 2008-2009
 * @license BSD
 */

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

function sed_get_imghaber($cat, $limit,$res) {

global $L, $t, $db_pages, $db_users, $usr, $cfg, $sed_cat, $sed_catacc, $plu_empty;

        $jj = 0;
        $mtch = $sed_cat&#091;$cat&#093;&#091;'path'&#093;.&quot;.&quot;;
        $mtchlen = strlen($mtch);
        $catsub = array();
        $catsub&#091;&#093; = $cat;

        foreach($sed_cat as $i =&gt; $x)
                {
                if (substr($x&#091;'path'&#093;, 0, $mtchlen)==$mtch &amp;&amp; sed_auth('page', $i, 'R'))
                        { $catsub&#091;&#093; = $i; }
                }

        $sql = sed_sql_query(&quot;SELECT p.*, u.user_name, user_avatar FROM $db_pages AS p
        LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid
        WHERE page_state=0 AND page_cat IN ('&quot;.implode(&quot;','&quot;, $catsub).&quot;') ORDER BY page_id DESC LIMIT $limit&quot;);

        $mskin = sed_skinfile(array('imghaber', $cat));
        $imghaber = new XTemplate($mskin);

        while ($pag = sed_sql_fetcharray($sql))
                {
                $jj++;
                $catpath = sed_build_catpath($pag&#091;'page_cat'&#093;, &quot;&lt;a href=https://www.cotonti.com/\&quot;list.php?c=%1\$s\&quot;&gt;%2\$s&lt;/a&gt;&quot;);
                $pag&#091;'page_desc'&#093; = sed_cc($pag&#091;'page_desc'&#093;);
                $pag&#091;'page_pageurl'&#093; = (empty($pag&#091;'page_alias'&#093;)) ? &quot;page.php?id=&quot;.$pag&#091;'page_id'&#093; : &quot;page.php?al=&quot;.$pag&#091;'page_alias'&#093;;
                $pag&#091;'page_fulltitle'&#093; = $catpath.&quot; &quot;.$cfg&#091;'separator'&#093;.&quot; &lt;a href=https://www.cotonti.com/\&quot;&quot;.$pag&#091;'page_pageurl'&#093;.&quot;\&quot;&gt;&quot;.$pag&#091;'page_title'&#093;.&quot;&lt;/a&gt;&quot;;

                $item_code = 'p'.$pag&#091;'page_id'&#093;;
                list($pag&#091;'page_comments'&#093;, $pag&#091;'page_comments_display'&#093;) = sed_build_comments($item_code, $pag&#091;'page_pageurl'&#093;, TRUE);
                list($pag&#091;'page_ratings'&#093;, $pag&#091;'page_ratings_display'&#093;) = sed_build_ratings($item_code, $pag&#091;'page_pageurl'&#093;, FALSE);

                $imghaber-&gt; assign(array(
                        &quot;PAGE_ROW_URL&quot; =&gt; $pag&#091;'page_pageurl'&#093;,
                        &quot;PAGE_ROW_ID&quot; =&gt; $pag&#091;'page_id'&#093;,
                        &quot;PAGE_ROW_TITLE&quot; =&gt; $pag&#091;'page_fulltitle'&#093;,
                        &quot;PAGE_ROW_SHORTTITLE&quot; =&gt; $pag&#091;'page_title'&#093;,
                        &quot;PAGE_ROW_CAT&quot; =&gt; $pag&#091;'page_cat'&#093;,
                        &quot;PAGE_ROW_CATTITLE&quot; =&gt; $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'title'&#093;,
                        &quot;PAGE_ROW_CATPATH&quot; =&gt; $catpath,
                        &quot;PAGE_ROW_CATDESC&quot; =&gt; $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'desc'&#093;,
                        &quot;PAGE_ROW_CATICON&quot; =&gt; $sed_cat&#091;$pag&#091;'page_cat'&#093;&#093;&#091;'icon'&#093;,
                        &quot;PAGE_ROW_KEY&quot; =&gt; sed_cc($pag&#091;'page_key'&#093;),
                        &quot;PAGE_ROW_EXTRA1&quot; =&gt; sed_cc($pag&#091;'page_extra1'&#093;),
                        &quot;PAGE_ROW_EXTRA2&quot; =&gt; sed_cc($pag&#091;'page_extra2'&#093;),
                        &quot;PAGE_ROW_EXTRA3&quot; =&gt; sed_cc($pag&#091;'page_extra3'&#093;),
                        &quot;PAGE_ROW_EXTRA4&quot; =&gt; sed_cc($pag&#091;'page_extra4'&#093;),
                        &quot;PAGE_ROW_EXTRA5&quot; =&gt; sed_cc($pag&#091;'page_extra5'&#093;),
                        &quot;PAGE_ROW_DESC&quot; =&gt; $pag&#091;'page_desc'&#093;,
                        &quot;PAGE_ROW_AUTHOR&quot; =&gt; sed_cc($pag&#091;'page_author'&#093;),
                        &quot;PAGE_ROW_OWNER&quot; =&gt; sed_build_user($pag&#091;'page_ownerid'&#093;, sed_cc($pag&#091;'user_name'&#093;)),
                        &quot;PAGE_ROW_AVATAR&quot; =&gt; sed_build_userimage($pag&#091;'user_avatar'&#093;),
                        &quot;PAGE_ROW_DATE&quot; =&gt; @date($cfg&#091;'formatyearmonthday'&#093;, $pag&#091;'page_date'&#093; + $usr&#091;'timezone'&#093; * 3600),
                        &quot;PAGE_ROW_FILEURL&quot; =&gt; $pag&#091;'page_url'&#093;,
                        &quot;PAGE_ROW_SIZE&quot; =&gt; $pag&#091;'page_size'&#093;,
                        &quot;PAGE_ROW_COUNT&quot; =&gt; $pag&#091;'page_count'&#093;,
                        &quot;PAGE_ROW_FILECOUNT&quot; =&gt; $pag&#091;'page_filecount'&#093;,
                        &quot;PAGE_ROW_COMMENTS&quot; =&gt; $pag&#091;'page_comments'&#093;,
                        &quot;PAGE_ROW_RATINGS&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.$pag&#091;'page_pageurl'&#093;.&quot;&amp;amp;ratings=1\&quot;&gt;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/vote&quot;.round($pag&#091;'rating_average'&#093;,0).&quot;.gif\&quot; alt=\&quot;\&quot; /&gt;&lt;/a&gt;&quot;,
                        &quot;PAGE_ROW_ODDEVEN&quot; =&gt; sed_build_oddeven($jj)
                                ));

                switch($pag&#091;'page_type'&#093;)
                        {
                        case '1':
                        $imghaber-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, $pag&#091;'page_text'&#093;);
                        break;

                        case '2':

                        if ($cfg&#091;'allowphp_pages'&#093;)
                                {
                                ob_start();
                                eval($pag&#091;'page_text'&#093;);
                                $imghaber-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, ob_get_clean());
                                }
               else
                                {
                                $imghaber-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, &quot;The PHP mode is disabled for pages.&lt;br /&gt;Please see the administration panel, then \&quot;Configuration\&quot;, then \&quot;Parsers\&quot;.&quot;);
                                }
                        break;

                        default:
                        $readmore = strpos($pag&#091;'page_text'&#093;, &quot;&#091;more&#093;&quot;);
                        if ($readmore&gt;0)
                                {
                                $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, $readmore).&quot;&lt;br /&gt;&quot;;
                                $pag&#091;'page_text'&#093; .= &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.$pag&#091;'page_pageurl'&#093;.&quot;\&quot;&gt;&quot;.$L&#091;'ReadMore'&#093;.&quot;&lt;/a&gt;&quot;;
                                }
else { $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, 300).&quot; ...&quot;;}
$pag&#091;'page_text'&#093; = &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.$pag&#091;'page_pageurl'&#093;.&quot;\&quot;&gt;&quot;.$pag&#091;'page_text'&#093;.&quot;&lt;/a&gt;&quot;;

                        $imghaber-&gt;assign(&quot;PAGE_ROW_TEXT&quot;, sed_parse($pag&#091;'page_text'&#093;, $cfg&#091;'parsebbcodepages'&#093;, $cfg&#091;'parsesmiliespages'&#093;, 1));
                        break;
                        }
                $imghaber-&gt;parse(&quot;IMGHABER.PAGE_ROW&quot;);
                }
        $imghaber-&gt;parse(&quot;IMGHABER&quot;);
        $res = $imghaber-&gt;text(&quot;IMGHABER&quot;);
        $t-&gt;assign(&quot;INDEX_IMGHABER_&quot;.strtoupper($cat).&quot;&quot;,$res);
    return($res);
}

if ($cfg&#091;'plugin'&#093;&#091;'imghaber'&#093;&#091;'maxpages'&#093;&gt;0 &amp;&amp; !empty($cfg&#091;'plugin'&#093;&#091;'imghaber'&#093;&#091;'category'&#093;)) {

$cats = explode(',', $cfg&#091;'plugin'&#093;&#091;'imghaber'&#093;&#091;'category'&#093;);

foreach($cats as $k =&gt; $i)
        {
        $i = trim($i);
        sed_get_imghaber($i,$cfg&#091;'plugin'&#093;&#091;'imghaber'&#093;&#091;'maxpages'&#093;,$res);
        }
}
?&gt;</pre></div>
<br />
plugins/imghaber/imghaber.setup.php<br />
<br />
<div class="highlight"><pre class="php">
&lt;?PHP
/* ====================
&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=imghaber
Name=Imghaber
Description=Homepage news slideshow
Version=1.0
Date=2009-ocak-04
Author=Gökhan YILDIZ
Copyright=Copyright (c) 2008-2009 Gökhan YILDIZ
Notes=BSD License
SQL=
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=W12345A
&#091;END_SED_EXTPLUGIN&#093;

&#091;BEGIN_SED_EXTPLUGIN_CONFIG&#093;
category=01:text::news:Category code of the parent category - separated by comma
maxpages=02:select:0,1,2,3,4,5,6,7,8,9,10,15,20,25,30,50,100:10:Recent pages displayed
&#091;END_SED_EXTPLUGIN_CONFIG&#093;

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

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

?&gt;
</pre></div>
<br />
skins/sed-light/imghaber.tpl<br />
<br />
<pre class="code">&lt;!-- BEGIN: IMGHABER --&gt;


&lt;!-- BEGIN: PAGE_ROW --&gt;


    			&lt;li&gt;
				&lt;a class=&quot;navbutton off navi&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; title=&quot;{PAGE_ROW_SHORTTITLE}&quot;&gt;
					&lt;span class=&quot;navbar-img&quot;&gt;&lt;img src=https://www.cotonti.com/&quot;{PAGE_ROW_EXTRA1}&quot; alt=&quot;{PAGE_ROW_SHORTTITLE}&quot; /&gt;&lt;/span&gt;
					&lt;span class=&quot;navbar-key&quot;&gt;01&lt;/span&gt;
					&lt;span class=&quot;navbar-title&quot;&gt;{PAGE_ROW_SHORTTITLE}&lt;/span&gt;

					&lt;span class=&quot;navbar-tagline&quot;&gt;Click to picture and read news details.&lt;/span&gt;
					&lt;span class=&quot;navbar-clr&quot;&gt;&lt;/span&gt;
				&lt;/a&gt;
			&lt;/li&gt;
&lt;!-- END: PAGE_ROW --&gt;

&lt;!-- END: IMGHABER --&gt;</pre>
<br />
save and upload.<br />
<br />
add your index.tpl<br />
<pre class="code">&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;plugins/news/files/jquery.php&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
	var embedFPSSCSS = '&lt;' + 'style type=&quot;text/css&quot; media=&quot;all&quot;&gt;'
	+ '@import &quot;plugins/news/files/slideshow1.css&quot;;'
	+ '&lt;/' + 'style&gt;';
	document.write(embedFPSSCSS);
	var fpssPlayText = &quot;Play&quot;;
	var fpssPauseText = &quot;Pause&quot;;
	var crossFadeDelay = 6000;
	var crossFadeSpeed = 1000;
	var fpssLoaderDelay = 800;
	var navTrigger = &quot;click&quot;;
	var autoslide = true;
//--&gt;
&lt;/script&gt;
&lt;!--&#091;if lte IE 7&#093;&gt;
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;
	@import &quot;plugins/news/files/slideshow-ie.css&quot;;
&lt;/style&gt;
&lt;!&#091;endif&#093;--&gt;

&lt;div id=&quot;fpss-outer-container&quot;&gt;
    &lt;div id=&quot;fpss-container&quot;&gt;
        &lt;div id=&quot;fpss-slider&quot;&gt;

            &lt;div id=&quot;slide-loading&quot;&gt;&lt;/div&gt;
            &lt;div id=&quot;slide-wrapper&quot;&gt;
                &lt;div id=&quot;slide-outer&quot;&gt;
				{INDEX_HABERLER_NEWS}	
    
    	                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;        
        &lt;div id=&quot;navi-outer&quot;&gt;
            &lt;div id=&quot;pseudobox&quot;&gt;&lt;/div&gt;

            &lt;div class=&quot;ul_container&quot;&gt;
                &lt;ul&gt;        
                    &lt;li class=&quot;noimages&quot;&gt;&lt;a id=&quot;fpss-container_prev&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; onclick=&quot;showPrev();clearSlide();&quot; title=&quot;Geri&quot;&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt;
                    
			{INDEX_IMGHABER_NEWS}
    	                    &lt;li class=&quot;noimages&quot;&gt;&lt;a id=&quot;fpss-container_next&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; onclick=&quot;showNext();clearSlide();&quot; title=&quot;Next&quot;&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt;
                    &lt;li class=&quot;noimages&quot;&gt;&lt;a id=&quot;fpss-container_playButton&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; onclick=&quot;ppButtonClicked();return false;&quot; title=&quot;Pause/Play&quot;&gt;Pause&lt;/a&gt;&lt;/li&gt;
                
                
                        
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt; 
        &lt;div class=&quot;fpss-clr&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;fpss-clr&quot;&gt;&lt;/div&gt; 

&lt;/div&gt;
</pre>]]></description>
			<pubDate>Нд, 21 Лют 2010 01:00:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5129&d=0#post23077]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[I get an error after adding this part:<br />
<br />
Slideshow news character fix:<br />
open news.functions.php<br />
<br />
<strong>find:</strong><br />
<br />
<pre class="code">   1.    $html = mb_substr($html, 0, $mpos) . &quot;&lt;span class=\&quot;readmore\&quot;&gt;&lt;a href=https://www.cotonti.com/\&quot;$url\&quot;&gt;{$L&#091;'ReadMore'&#093;}&lt;/a&gt;&lt;/span&gt;&quot;;
   2.     return true;
   3. }</pre>
<strong><br />
add after</strong><br />
<br />
<pre class="code">   1. else { $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, 150).&quot; ...&quot;;}</pre>
<strong><br />
the error I get:</strong><br />
<br />
<em>Parse error: syntax error, unexpected T_ELSE in H:\xampp\htdocs\test\xe\plugins\news\inc\news.functions.php on line 246</em><br />
<br />
this is how my news.functions.php looks like after I added that line:<br />
<br />
<pre class="code">    $html = mb_substr($html, 0, $mpos) . &quot;&lt;span class=\&quot;readmore\&quot;&gt;&lt;a href=https://www.cotonti.com/\&quot;$url\&quot;&gt;{$L&#091;'ReadMore'&#093;}&lt;/a&gt;&lt;/span&gt;&quot;;
    return true;
}
	else 
	{ 
	 $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, 150).&quot; ...&quot;;
	}</pre><br /><br /><b>Added 19 days later:</b><br /><br />uh, bump..]]></description>
			<pubDate>Пн, 01 Лют 2010 20:39:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5129&d=0#post22524]]></link>
		</item>
		<item>
			<title>fedai</title>
			<description><![CDATA[nice work, thank you]]></description>
			<pubDate>Ср, 06 Січ 2010 05:36:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5129&d=0#post21997]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[thx man, looks good, will test it sometime this week.]]></description>
			<pubDate>Вт, 05 Січ 2010 07:43:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5129&d=0#post21985]]></link>
		</item>
		<item>
			<title>Gökhan YILDIZ</title>
			<description><![CDATA[Hi, we turned from joomla setup I will describe slideshow plugin.<br />
<br />
Plugin download: <a href="http://www.cotonti.com/datas/users/slideshownews_109.zip">http://www.cotonti.com/datas/users/slideshownews_109.zip</a><br />
<br />
installation:<br />
1. Extract to files your desktop.<br />
2. Upload to plugins &amp; skins public_html directory<br />
3. Install to imghaber plugin<br />
4. open index.tpl and add the appropriate place<br />
<br />
<pre class="code">
&lt;script type=&quot;text/javascript&quot; src=https://www.cotonti.com/&quot;plugins/news/files/jquery.php&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
	var embedFPSSCSS = '&lt;' + 'style type=&quot;text/css&quot; media=&quot;all&quot;&gt;'
	+ '@import &quot;plugins/news/files/slideshow1.css&quot;;'
	+ '&lt;/' + 'style&gt;';
	document.write(embedFPSSCSS);
	var fpssPlayText = &quot;Play&quot;;
	var fpssPauseText = &quot;Pause&quot;;
	var crossFadeDelay = 6000;
	var crossFadeSpeed = 1000;
	var fpssLoaderDelay = 800;
	var navTrigger = &quot;click&quot;;
	var autoslide = true;
//--&gt;
&lt;/script&gt;
&lt;!--&#091;if lte IE 7&#093;&gt;
&lt;style type=&quot;text/css&quot; media=&quot;all&quot;&gt;
	@import &quot;plugins/news/files/slideshow-ie.css&quot;;
&lt;/style&gt;
&lt;!&#091;endif&#093;--&gt;

&lt;div id=&quot;fpss-outer-container&quot;&gt;
    &lt;div id=&quot;fpss-container&quot;&gt;
        &lt;div id=&quot;fpss-slider&quot;&gt;

            &lt;div id=&quot;slide-loading&quot;&gt;&lt;/div&gt;
            &lt;div id=&quot;slide-wrapper&quot;&gt;
                &lt;div id=&quot;slide-outer&quot;&gt;
				{INDEX_NEWS_NEWS}	
    
    	                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;        
        &lt;div id=&quot;navi-outer&quot;&gt;
            &lt;div id=&quot;pseudobox&quot;&gt;&lt;/div&gt;

            &lt;div class=&quot;ul_container&quot;&gt;
                &lt;ul&gt;        
                    &lt;li class=&quot;noimages&quot;&gt;&lt;a id=&quot;fpss-container_prev&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; onclick=&quot;showPrev();clearSlide();&quot; title=&quot;Geri&quot;&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt;
                    
			{INDEX_IMGHABER_NEWS}
    	                    &lt;li class=&quot;noimages&quot;&gt;&lt;a id=&quot;fpss-container_next&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; onclick=&quot;showNext();clearSlide();&quot; title=&quot;Next&quot;&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt;
                    &lt;li class=&quot;noimages&quot;&gt;&lt;a id=&quot;fpss-container_playButton&quot; href=https://www.cotonti.com/&quot;javascript:void(0);&quot; onclick=&quot;ppButtonClicked();return false;&quot; title=&quot;Pause/Play&quot;&gt;Pause&lt;/a&gt;&lt;/li&gt;
                
                
                        
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt; 
        &lt;div class=&quot;fpss-clr&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;fpss-clr&quot;&gt;&lt;/div&gt; 

&lt;/div&gt;
</pre>
<br />
installation completed<br />
<br />
Screen shot:<br />
<a href="http://i269.photobucket.com/albums/jj44/downarchive2/member/Frontpage-SlideShow.jpg" rel="nofollow"><img src="http://i269.photobucket.com/albums/jj44/downarchive2/member/Frontpage-SlideShow.jpg" alt="" class="scale" /></a><br /><br /><b>Added 4 minutes later:</b><br /><br />Slideshow news character fix:<br />
open news.functions.php<br />
<br />
find:<br />
<div class="highlight"><pre class="php">
   $html = mb_substr($html, 0, $mpos) . &quot;&lt;span class=\&quot;readmore\&quot;&gt;&lt;a href=https://www.cotonti.com/\&quot;$url\&quot;&gt;{$L&#091;'ReadMore'&#093;}&lt;/a&gt;&lt;/span&gt;&quot;;
    return true;
}
</pre></div>
add after<br />
<div class="highlight"><pre class="php">
else { $pag&#091;'page_text'&#093; = substr($pag&#091;'page_text'&#093;, 0, 150).&quot; ...&quot;;}
</pre></div><br /><br /><b>Added 5 hours 35 minutes later:</b><br /><br />Adding an image to news<br />
<br />
open page.add.tpl<br />
<br />
find:<br />
<pre class="code">
				&lt;tr&gt;
					&lt;td&gt;{PHP.L.Title}:&lt;/td&gt;
					&lt;td&gt;{PAGEADD_FORM_TITLE}&lt;/td&gt;
				&lt;/tr&gt;
</pre>
<br />
add after<br />
<pre class="code">
				&lt;tr&gt;
					&lt;td&gt;News image link:&lt;/td&gt;
					&lt;td&gt;{PAGEADD_FORM_EXTRA1}&lt;/td&gt;
				&lt;/tr&gt;
</pre>
<br />
open page.edit.tpl<br />
<pre class="code">
				&lt;tr&gt;
					&lt;td&gt;{PHP.L.Title}:&lt;/td&gt;
					&lt;td&gt;{PAGEEDIT_FORM_TITLE}&lt;/td&gt;
				&lt;/tr&gt;
</pre>
<br />
add after:<br />
<br />
<pre class="code">
				&lt;tr&gt;
					&lt;td&gt;News image link:&lt;/td&gt;
					&lt;td&gt;{PAGEEDIT_FORM_EXTRA1}&lt;/td&gt;
				&lt;/tr&gt;
</pre>]]></description>
			<pubDate>Пн, 04 Січ 2010 22:50:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=5129&d=0#post21969]]></link>
		</item>
	</channel>
</rss>