بارك الله فيك اخي الغالي
حاليا ليس لدي مشكلة في الـ PHP
لكن لست على اطلاع كبير على smf
هذا ما اريد ان اعمله حاليا mod books
اولا ملف package-info.xml
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>Saladine:books</id>
<name>Books mod</name>
<version>1.0</version>
<type>modification</type>
<install>
<readme type="file">info.txt</readme>
<modification type="file">install.xml</modification>
<require-file name="books.php" destination="$sourcedir" />
</install>
<uninstall>
<modification type="file" reverse="true">install.xml</modification>
<remove-file name="$sourcedir/books.php" />
</uninstall>
</uninstall>
</package-info>
كل ما اريده هو ان نرتقي بهذا المنتدى وذلك يدا بيد
خاصة ان كانت لدينا مودات خاصة بنا
هذا هو الهدف
---------------------
أعود للمود
من كلام الأخ يمكنني ان اجزم ان ملف install.xml
سيكون هكذا
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>Saladine:books</id>
<name>Books mod</name>
<version>1.0</version>
<file name="$themedir/index.template.php">
<operation>
<search position="after"><![CDATA[if ($context['current_action'] == 'search2')
$current_action = 'search';]]></search>
<add><![CDATA[if ($context['current_action'] == 'books')
$current_action = 'books';]]></add>
</operation>
<operation>
<search position="after"><![CDATA[if (in_array($context['current_action'], array('search',]]></search>
<add><![CDATA['books',]]></add>
</operation>
<operation>
<search position="after"><![CDATA[// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '"> </td>' : '';]]></search>
<add><![CDATA[// Show the [books] button.
echo ($current_action == 'books' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'books' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=books">' , $txt[books] , '</a>
</td>' , $current_action == 'books' ? '<td class="maintab_active_' . $last . '"> </td>' : '';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.arabic-utf8.php">
<operation>
<search position="end"></search>
<add><![CDATA[
$txt['books'] = 'الكتب';
]]></add>
</operation>
</file>
</modification>
اتمنى اني وفقت في الامر لحد الان