<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="lynne_first_post_editable" active="1">
	<title>اجراء تعديل بالمشاركة الاولى بوقت غير محدود .</title>
	<description>اجراء تعديل بالمشاركة الاولى بوقت غير محدود , الدعم العربى التطويرى</description>
	<version>1.0</version>
	<url>http://www.support-ar.com/vb/index.php</url>
	<versioncheckurl>http://www.support-ar.com/vb/</versioncheckurl>
	<dependencies>
	</dependencies>
	<codes>
	</codes>
	<templates>
	</templates>
	<stylevardfns>
	</stylevardfns>
	<stylevars>
	</stylevars>
	<plugins>
		<plugin active="1" executionorder="5">
			<title>Set edittimelimit to 0 for first post</title>
			<hookname>global_state_check</hookname>
			<phpcode><![CDATA[if (THIS_SCRIPT == 'editpost') 
{
	global $threadinfo, $postinfo;

	if (($threadinfo['firstpostid'] == $postinfo['postid']) AND ($vbulletin->userinfo['userid'] == $postinfo['userid'])) 
	{
		$vbulletin->options['edittimelimit'] = 0;
	}
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title><![CDATA[Set $post['editlink'] to true for First Post]]></title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[if(($this->post['userid'] == $vbulletin->userinfo['userid']) AND ($this->post['postid'] == $this->thread['firstpostid']))
{
	// can edit or delete this post, so show the link
	$this->post['editlink'] = 'editpost.php?' . $this->registry->session->vars['sessionurl'] . 'do=editpost&amp;p=' . $this->post['postid'];
	if ($this->registry->options['quickedit'])
	{
		$show['ajax_js'] = true;
	}
}]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
	</phrases>
	<options>
	</options>
	<helptopics>
	</helptopics>
	<cronentries>
	</cronentries>
	<faqentries>
	</faqentries>
</product>
