<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[مەکۆکانی وێبچن - نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
	<link rel="self" href="https://www.webchin.org/Meko/extern.php?action=feed&amp;tid=18109&amp;type=atom" />
	<updated>2010-08-06T20:52:36Z</updated>
	<generator>PunBB</generator>
	<id>https://www.webchin.org/Meko/viewtopic.php?id=18109</id>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146740#p146740" />
			<content type="html"><![CDATA[<p>ده‌ست خوش کاک گه‌يلان</p>]]></content>
			<author>
				<name><![CDATA[Safen-sherwani]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=4707</uri>
			</author>
			<updated>2010-08-06T20:52:36Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146740#p146740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146470#p146470" />
			<content type="html"><![CDATA[<p>سه‌رکه‌وتوبیت.</p>]]></content>
			<author>
				<name><![CDATA[گه‌یلان]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=2438</uri>
			</author>
			<updated>2010-08-04T21:34:56Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146470#p146470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146468#p146468" />
			<content type="html"><![CDATA[<p>تێگه‌یشتم مه‌منون</p>]]></content>
			<author>
				<name><![CDATA[MBA]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=9121</uri>
			</author>
			<updated>2010-08-04T21:22:33Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146468#p146468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146465#p146465" />
			<content type="html"><![CDATA[<p>پرسیاره‌که‌ت ڕوونتر بکه‌..</p>]]></content>
			<author>
				<name><![CDATA[گه‌یلان]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=2438</uri>
			</author>
			<updated>2010-08-04T21:07:45Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146465#p146465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146455#p146455" />
			<content type="html"><![CDATA[<p>ده‌ست خۆش&nbsp; كاك گه‌یلان چه‌ند بابه‌ت پیشان ده‌دات</p>]]></content>
			<author>
				<name><![CDATA[MBA]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=9121</uri>
			</author>
			<updated>2010-08-04T20:25:31Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146455#p146455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146357#p146357" />
			<content type="html"><![CDATA[<p>هیوادارم سوودی بۆت هه‌بێت.</p>]]></content>
			<author>
				<name><![CDATA[گه‌یلان]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=2438</uri>
			</author>
			<updated>2010-08-04T09:18:49Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146357#p146357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[وه‌ڵام: نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146340#p146340" />
			<content type="html"><![CDATA[<p>ده‌ست خۆش كاكه‌ گه‌یلان بژیت</p>]]></content>
			<author>
				<name><![CDATA[CARLOS-VELA]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=5620</uri>
			</author>
			<updated>2010-08-04T08:08:10Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146340#p146340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[نیشاندانی دواین په‌یام له‌ په‌ڕه‌ی سه‌ره‌تا]]></title>
			<link rel="alternate" href="https://www.webchin.org/Meko/viewtopic.php?pid=146315#p146315" />
			<content type="html"><![CDATA[<p>سڵاو،<br />له‌م بابه‌ت باس له‌چۆنیه‌تی نیشاندانی دواین په‌یام ده‌که‌ین له‌ په‌ڕه‌ی سه‌ره‌تا،<br />نمونه‌،<br /><span class="postimg"><img src="http://webchinupload.com/files/serderr.png" alt="http://webchinupload.com/files/serderr.png" /></span></p><p>بۆ جێبه‌جێ کردنی ئه‌م هه‌نگاوانه‌ بکه‌،<br />په‌ڕه‌ی index.php بکه‌وه‌،<br />له‌ له‌ دێڕی 68 بگه‌ڕی بۆ ئه‌مه‌،<br /></p><div class="codebox"><pre><code data-language=php>$query = array(
    &#039;SELECT&#039;    =&gt; &#039;c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster&#039;,
    &#039;FROM&#039;        =&gt; &#039;categories AS c&#039;,
    &#039;JOINS&#039;        =&gt; array(
        array(
            &#039;INNER JOIN&#039;    =&gt; &#039;forums AS f&#039;,
            &#039;ON&#039;            =&gt; &#039;c.id=f.cat_id&#039;
        ),
        array(
            &#039;LEFT JOIN&#039;        =&gt; &#039;forum_perms AS fp&#039;,
            &#039;ON&#039;            =&gt; &#039;(fp.forum_id=f.id AND fp.group_id=&#039;.$forum_user[&#039;g_id&#039;].&#039;)&#039;
        )
    ),
    &#039;WHERE&#039;        =&gt; &#039;fp.read_forum IS NULL OR fp.read_forum=1&#039;,
    &#039;ORDER BY&#039;    =&gt; &#039;c.disp_position, c.id, f.disp_position&#039;
);</code></pre></div><p>بیگۆڕه‌ بۆ ئه‌مه‌،<br /></p><div class="codebox"><pre><code data-language=php>$query = array(
    &#039;SELECT&#039;    =&gt; &#039;c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, t.subject&#039;,
    &#039;FROM&#039;        =&gt; &#039;categories AS c&#039;,
    &#039;JOINS&#039;        =&gt; array(
        array(
            &#039;INNER JOIN&#039;    =&gt; &#039;forums AS f&#039;,
            &#039;ON&#039;            =&gt; &#039;c.id=f.cat_id&#039;
        ),
        array(
            &#039;LEFT JOIN&#039;     =&gt; &#039;topics AS t&#039;,
            &#039;ON&#039;            =&gt; &#039;t.last_post_id=f.last_post_id&#039;
        ),
        array(
            &#039;LEFT JOIN&#039;     =&gt; &#039;forum_perms AS fp&#039;,
            &#039;ON&#039;            =&gt; &#039;(fp.forum_id=f.id AND fp.group_id=&#039;.$forum_user[&#039;g_id&#039;].&#039;)&#039;
        )
    ),
    &#039;WHERE&#039;        =&gt; &#039;fp.read_forum IS NULL OR fp.read_forum=1&#039;,
    &#039;ORDER BY&#039;    =&gt; &#039;c.disp_position, c.id, f.disp_position&#039;
);</code></pre></div><p>هه‌ر له‌هه‌مان په‌ڕگه‌ له‌ دێڕی 205 بگه‌ڕێ بۆ ئه‌مه‌،<br /></p><div class="codebox"><pre><code data-language=php>            $forum_page[&#039;item_body&#039;][&#039;info&#039;][&#039;lastpost&#039;] = &#039;&lt;li class=&quot;info-lastpost&quot;&gt;&lt;span class=&quot;label&quot;&gt;&#039;.$lang_index[&#039;Last post&#039;].&#039;&lt;/span&gt; &lt;strong&gt;&lt;a href=&quot;&#039;.forum_link($forum_url[&#039;post&#039;], $cur_forum[&#039;last_post_id&#039;]).&#039;&quot;&gt;&#039;.format_time($cur_forum[&#039;last_post&#039;]).&#039;&lt;/a&gt;&lt;/strong&gt; &lt;cite&gt;&#039;.sprintf($lang_index[&#039;Last poster&#039;], forum_htmlencode($cur_forum[&#039;last_poster&#039;])).&#039;&lt;/cite&gt;&lt;/li&gt;&#039;;</code></pre></div><p>بیگۆڕه‌ بۆ ئه‌مه‌،<br /></p><div class="codebox"><pre><code data-language=php>$forum_page[&#039;item_body&#039;][&#039;info&#039;][&#039;lastpost&#039;] = &#039;&lt;li class=&quot;info-lastpost&quot;&gt;&lt;span class=&quot;label&quot;&gt;&#039;.$lang_index[&#039;Last post&#039;].&#039;&lt;/span&gt; &lt;strong&gt;&lt;a href=&quot;&#039;.forum_link($forum_url[&#039;post&#039;], $cur_forum[&#039;last_post_id&#039;]).&#039;&quot;&gt;&#039;.limit_characters(forum_htmlencode($cur_forum[&#039;subject&#039;])).&#039;&lt;/a&gt;&lt;/strong&gt; &lt;cite&gt;&#039;.sprintf($lang_index[&#039;Last poster&#039;], forum_htmlencode($cur_forum[&#039;last_poster&#039;])).&#039;&lt;/cite&gt;&lt;strong&gt;&#039;.format_time($cur_forum[&#039;last_post&#039;]).&#039;&lt;/strong&gt;&lt;/li&gt;&#039;;</code></pre></div><p>پاشان ئه‌م په‌ڕگه‌یه‌ پاشه‌که‌وت بکه‌ و باری بکه‌وه‌.<br />پاشان ئه‌م په‌ڕگه‌یه‌ بکه‌وه‌ include/Functions.php<br />له‌ دێڕی 111 بگه‌رێ بۆ ئه‌م کۆده‌،<br /></p><div class="codebox"><pre><code data-language=php>//
// Common helpers and forum&#039;s wrappers for PHP functions
//</code></pre></div><p>ئه‌مه‌ی له‌دوا زیاد بکه‌،<br /></p><div class="codebox"><pre><code data-language=php>function limit_characters ($str)
{
        if ( strlen ( $str ) &lt;= 30 )
        {
            return $str;
        }
        else {
            return substr ( $str, 0, 30 ) . &#039;...&#039;;
        }
}</code></pre></div><p>پاشان په‌ڕگه‌ی Functions.php پاشاکه‌وت بکه‌ و باری بکه‌وه‌.</p><p>سه‌رکه‌وتوبن.</p>]]></content>
			<author>
				<name><![CDATA[گه‌یلان]]></name>
				<uri>https://www.webchin.org/Meko/profile.php?id=2438</uri>
			</author>
			<updated>2010-08-03T23:19:37Z</updated>
			<id>https://www.webchin.org/Meko/viewtopic.php?pid=146315#p146315</id>
		</entry>
</feed>
