<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="chrism_statusicons" active="1">
	<title>تخصيص أيقونه حالة كل قسم</title>
	<description>هذا الهاك يسمح لك بتخصيص أيقونة لحالة كل قسم في المنتدي بصروة خاصة - وعندما تقوم بإعداد الهاك على الوضع الغير مفعل سيعود كل شئ إلي ما كان عليه  من فريق تعريب دلع الخبر www.dl3-khobar.com/vb</description>
	<version>1.0.0</version>
	<codes>
		<code version="1.0.0">
			<installcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD hasstatusicons SMALLINT(6) DEFAULT '0' NOT NULL, ADD statusiconon VARCHAR(100), ADD statusiconoff VARCHAR(100), ADD statusiconlockon VARCHAR(100), ADD statusiconlockoff VARCHAR(100), ADD statusiconlink VARCHAR(100)");]]></installcode>
			<uninstallcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP hasstatusicons, DROP statusiconon, DROP statusiconoff, DROP statusiconlockon, DROP statusiconlockoff, DROP statusiconlink");]]></uninstallcode>
		</code>
	</codes>
	<templates>
	</templates>
	<plugins>
		<plugin active="1">
			<title><![CDATA[Custom Status Icons Per Forum [forum manager edit]]]></title>
			<hookname>forumadmin_edit_form</hookname>
			<phpcode><![CDATA[print_table_header($vbphrase['custom_status_icons']);
print_yes_no_row($vbphrase['hasstatusicons'], 'forum[hasstatusicons]', $forum['hasstatusicons']);
print_input_row($vbphrase['statusiconon'], 'forum[statusiconon]', $forum['statusiconon']);
print_input_row($vbphrase['statusiconoff'], 'forum[statusiconoff]', $forum['statusiconoff']);
print_input_row($vbphrase['statusiconlockon'], 'forum[statusiconlockon]', $forum['statusiconlockon']);
print_input_row($vbphrase['statusiconlockoff'], 'forum[statusiconlockoff]', $forum['statusiconlockoff']);
print_input_row($vbphrase['statusiconlink'], 'forum[statusiconlink]', $forum['statusiconlink']);]]></phpcode>
		</plugin>
		<plugin active="1">
			<title><![CDATA[Custom Status Icons Per Forum [forumbit_display edit]]]></title>
			<hookname>forumbit_display</hookname>
			<phpcode><![CDATA[$show['customstatusicon'] = false;
if ($forum['hasstatusicons'])
{
	$show['customstatusicon'] = true;
	if ($forum['statusicon'] == 'new')
	{
		$forum['customicon'] = $forum['statusiconon'];
	}
	if ($forum['statusicon'] == 'new_lock')
	{
		$forum['customicon'] = $forum['statusiconlockon'];
	}
	if ($forum['statusicon'] == 'old')
	{
		$forum['customicon'] = $forum['statusiconoff'];
	}
	if ($forum['statusicon'] == 'old_lock')
	{
		$forum['customicon'] = $forum['statusiconlockoff'];
	}
	if ($forum['statusicon'] == 'link')
	{
		$forum['customicon'] = $forum['statusiconlink'];
	}
}]]></phpcode>
		</plugin>
		<plugin active="1">
			<title><![CDATA[Custom Status Icons Per Forum [class_dm_forum edit]]]></title>
			<hookname>forumdata_start</hookname>
			<phpcode><![CDATA[$this->validfields['hasstatusicons'] = array(TYPE_INT, REQ_YES);
$this->validfields['statusiconon'] = array(TYPE_STR, REQ_NO);
$this->validfields['statusiconoff'] = array(TYPE_STR, REQ_NO);
$this->validfields['statusiconlockon'] = array(TYPE_STR, REQ_NO);
$this->validfields['statusiconlockoff'] = array(TYPE_STR, REQ_NO);
$this->validfields['statusiconlink'] = array(TYPE_STR, REQ_NO);]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="Control Panel Global" fieldname="cpglobal">
			<phrase name="custom_status_icons"><![CDATA[إعدادات تخصيص حالة أيقونه القسم (  من فريق تعريب دلع الخبر )]]></phrase>
			<phrase name="hasstatusicons"><![CDATA[هل تريد تفعيل تخصيص حالة أيقونه القسم ؟<dfn>إختر <strong> نعم </strong> لتفعيل خاصية أيقونه حالة القسم <br /> بإلغاء تفعيل هذه الخاصية سيعطل أي صور مخصصة تم وضعها من قبلك . <br /><strong> برجاء التأكد من أن كل صورة في مكانها الصحيح . مثال :- </strong>/customicons/myimage.gif </dfn>]]></phrase>
			<phrase name="statusiconlink"><![CDATA[رابط منتدي: إستبدال صورة لــ 'رابط منتدي'<dfn>سوف تحل محل الإفتراضية 'رابط منتدي' بالصور التي خصصتها.</dfn>]]></phrase>
			<phrase name="statusiconlockoff"><![CDATA[المنتدي المغلق (لا ردود جديدة): إستبدال صورة لــ 'منتدي مغلق بدون ردود جديدة'<dfn>سوف تحل محل الإفتراضية 'لا ردود جديدة والمنتدي مغلق' بالصور التي خصصتها.</dfn>]]></phrase>
			<phrase name="statusiconlockon"><![CDATA[المنتدي المغلق (ردود جديدة): إستبدال صورة لــ 'منتدي مغلق بردود جديدة'<dfn>سوف تحل محل الإفتراضية 'ردود جديدة لكن المنتدي مغلق' بالصور التي خصصتها.</dfn>]]></phrase>
			<phrase name="statusiconoff"><![CDATA[لا دود جديدة : إستبدال صورة لــ 'منتدي بلا ردود جديدة'<dfn>سوف تحل محل الإفتراضية 'لا ردود جديدة' بالصور التي خصصتها.</dfn>]]></phrase>
			<phrase name="statusiconon"><![CDATA[الردود الجديدة: إستبدال صورة لــ 'منتدي بردود جديدة'<dfn>سوف تحل محل الإفتراضية 'الردود الجديدة' بالصور التي خصصتها.</dfn>]]></phrase>
		</phrasetype>
	</phrases>
	<options>
	</options>
</product>
