61
قسم الدعم الخاص بالنسخة (Smf (1.1.X / رد: كيف يمكن ربط المنتدى مع joomla
« في: 09 , أغسطس, 2009 - 11:12:53 صباحاً »
هذا الرابط سيفيدك سوف ابحث لك عن الموديل الذي يعمل مع سكربت smf في joomla
هنا يمكنك مشاهدة جميع المشاركات التى كتبها هذا العضو . لاحظ انه يمكنك فقط مشاهدة المشاركات التى كتبها فى الاقسام التى يسمح لك بدخولها فقط .
من المفترض أن يعمل المود دون إختيار collationتم حل المشكلة لقد إستخدمت ALTER وحولت القاعدة (collation) في حد ذاتها
أما عن التحويل
فأنتظرني قليلا أطور سكريبت من برمجتي لكي يتوافق و يعمل تلقائيا مع SMF
دمتم في حفظ الرحمن
العربي لا يظهر عربي بالمنتدى بل يظهر علامات استفهام ليش ارجوا المساعدةوعليكم السلام ورحمة الله وبركاته
<?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>
<?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>
نعمالسؤال الاخر
لا لا هذا اذا كان مودبارك الله فيك
لكن اذا كان رابط فيمكنك استخدام هذا الكود :شفرة: [اختيار]<a href="http://www.smfarabic.com/books.php" title="books" target="_blank">books</a>
'books' => array('books.php', 'books'),
index.template.phpif ($context['current_action'] == 'books')
$current_action = 'books';
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>' : '';
Who.arabic-utf8.php$txt['who_books'] = ' فى <a href="' . $scripturl . '?action=books">الكتب</a>.';
Modifications.arabic-utf8.php$txt['books'] = 'الكتب';
وشكرا
// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'bottom'), '
</tr>
</table>
</td>
</tr>
</table>';
شكرا على المساعدة وبارك الله فيكمإستعمل زر url مثل ما اعطاك الاخ اسلام
لكن لا أرى الزر المخصص لها في المحرر
يجب عملها يدويا
حمل ستايل visionشكرا جزيلا سوف اجرب
فهو يغير شكل الصفخات إلى قائمة منسدلة جميلة
إقتبس منه