News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

شلون نركب المود يا مشرفنا

Started by kingking, March 17, 2007, 11:25:46 AM

Previous topic - Next topic

kingking

في صفحة المود
توجد العديدددد والكثير منها
لكن طريقه التركيب صعبه نوعا ما والبعض منها مختصره
نرجو منك تسهيل الموضوع

Font and Size Dropdown 1.1
http://custom.simplemachines.org/mods/index.php?mod=639
شلون نركبه

Croco


تقصد تركيب المود على السمات الأخرى غير الافتراضية ؟

I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Croco

#2

قم بفتح الملف التالي :
Manual.arabic.php الموجود على المسار التالي :

smfFolder/themes/default/languages/
و ابحث عن :


$txt['manual_posting_smiley_parse'] = 'Please note that not all of the smiley codes will be correctly parsed and converted to images unless their opening spaces are present.';

وضع بعده التالي :


$txt['manual_posting_Change_Font'] = 'Font Face';
$txt['manual_posting_Change_Font_Arial'] = 'Arial';
$txt['manual_posting_Change_Font_Times'] = 'Times New Roman';
$txt['manual_posting_Change_Font_Comic'] = 'Comic Sans MS';
$txt['manual_posting_Change_Font_Verd'] = 'Verdana';
$txt['manual_posting_Change_Font_Haett'] = 'Haettenschweiler';
$txt['manual_posting_Change_Font_Taho'] = 'Tahoma';
$txt['manual_posting_Change_Font_size'] = 'Font Size';
$txt['manual_posting_Change_Font_9'] = '9pt';
$txt['manual_posting_Change_Font_10'] = '10pt';
$txt['manual_posting_Change_Font_11'] = '11pt';
$txt['manual_posting_Change_Font_12'] = '12pt';
$txt['manual_posting_Change_Font_13'] = '13pt';
$txt['manual_posting_Change_Font_14'] = '14pt';

في الملف Post.arabic.php الموجود على المسار التالي :

smfFolder/themes/default/languages/
و ابحث عن التالي :


$txt[532] = 'Font Size';
$txt[533] = 'Font Face';


و استبدله بالتالي :


$txt['font_face'] = 'Font Face';
$txt['font_arial'] = 'Arial';
$txt['font_times'] = 'Times New Roman';
$txt['font_comic'] = 'Comic Sans MS';
$txt['font_verd'] = 'Verdana';
$txt['font_heatt'] = 'Haettenschweiler';
$txt['font_taho'] = 'Tahoma';
$txt['font_size'] = 'Font Size';
$txt['size_9'] = '9pt';
$txt['size_10'] = '10pt';
$txt['size_11'] = '11pt';
$txt['size_12'] = '12pt';
$txt['size_13'] = '13pt';
$txt['size_14'] = '14pt';



في الملف : Post.template.php الخاص بالسمة التي تستخدمها
ابحث عن


// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';


و ضع بعده الكود التالي :



// Print a drop down list for all the fonts are aviable!
if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_face'], '</option>
<option value="Arial">', $txt['font_arial'], '</option>
<option value="Times New Roman">', $txt['font_times'], '</option>
<option value="Comic Sans MS">', $txt['font_comic'], '</option>
<option value="Verdana">', $txt['font_verd'], '</option>
<option value="Haettenschweiler">', $txt['font_heatt'], '</option>
<option value="Tahoma">', $txt['font_taho'], '</option>
</select>';
// Print a drop down list for all the fonts sizes are aviable!
if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_size'], '</option>
<option value="9pt">', $txt['size_9'], '</option>
<option value="10pt">', $txt['size_10'], '</option>
<option value="11pt">', $txt['size_11'], '</option>
<option value="12pt">', $txt['size_12'], '</option>
<option value="13pt">', $txt['size_13'], '</option>
<option value="14pt">', $txt['size_14'], '</option>
</select>';

و ابحث عن التالي :


'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
'face' => array('code' => 'font', 'before' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),
);

و استبدله بالتالي :


);

في الملف Help.template.php الخاص بالسمة المستخدمة
ابحث عن التالي :


<a href="javascript:void(0);" onclick="surroundText(\'[center]\', \'[/center]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/center.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_center_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[right]\', \'[/right]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/right.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_right_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[hr]\', \'\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/hr.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_hr_example'], '" /></a><img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" /><a href="javascript:void(0);" onclick="surroundText(\'[size=10pt]\', \'[/size]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/size.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_size_example'], '" /></a><a href="javascript:void(0);" onclick="surroundText(\'[font=Verdana]\', \'[/font]\', document.forms.postmodify.message);"><img onmouseover="bbc_highlight(this, true);" onmouseout="bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/face.gif" align="bottom" width="23" height="22" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" alt="', $txt['manual_posting_face_example'], '" /></a>
<select onchange="surroundText(\'[color=\'+this.options[this.selectedIndex].value+\']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0;" style="margin-bottom: 1ex; margin-left: 2ex;">
<option value="" selected="selected">
', $txt['manual_posting_Change_Color'], '
</option>
<option value="Black">
', $txt['manual_posting_color_black'], '
</option>
<option value="Red">
', $txt['manual_posting_color_red'], '
</option>
<option value="Yellow">
', $txt['manual_posting_color_yellow'], '
</option>
<option value="Pink">
', $txt['manual_posting_color_pink'], '
</option>
<option value="Green">
', $txt['manual_posting_color_green'], '
</option>
<option value="Orange">
', $txt['manual_posting_color_orange'], '
</option>
<option value="Purple">
', $txt['manual_posting_color_purple'], '
</option>
<option value="Blue">
', $txt['manual_posting_color_blue'], '
</option>
<option value="Beige">
', $txt['manual_posting_color_beige'], '
</option>
<option value="Brown">
', $txt['manual_posting_color_brown'], '
</option>
<option value="Teal">
', $txt['manual_posting_color_teal'], '
</option>
<option value="Navy">
', $txt['manual_posting_color_navy'], '
</option>
<option value="Maroon">
', $txt['manual_posting_color_maroon'], '
</option>
<option value="LimeGreen">
', $txt['manual_posting_color_lime'], '
</option>
</select><br />

و ضع بعده الكود التالي :


<select onchange="surroundText(\'[font=\'+this.options[this.selectedIndex].value+\']\', \'[/font]\', document.forms.postmodify.message); this.selectedIndex = 0;" style="margin-bottom: 1ex; margin-left: 2ex;">
<option value="" selected="selected">
', $txt['manual_posting_Change_Font'], '
</option>
<option value="Arial">
', $txt['manual_posting_Change_Font_Arial'], '
</option>
<option value="Times New Roman">
', $txt['manual_posting_Change_Font_Times'], '
</option>
<option value="Comic Sans MS">
', $txt['manual_posting_Change_Font_Comic'], '
</option>
<option value="Verdana">
', $txt['manual_posting_Change_Font_Verd'], '
</option>
<option value="Haettenschweiler">
', $txt['manual_posting_Change_Font_Haett'], '
</option>
<option value="Tahoma">
', $txt['manual_posting_Change_Font_Taho'], '
</option>
</select><br />
<select onchange="surroundText(\'[size=\'+this.options[this.selectedIndex].value+\']\', \'[/size]\', document.forms.postmodify.message); this.selectedIndex = 0;" style="margin-bottom: 1ex; margin-left: 2ex;">
<option value="" selected="selected">
', $txt['manual_posting_Change_size'], '
</option>
<option value="9pt">
', $txt['manual_posting_Change_Font_9'], '
</option>
<option value="10pt">
', $txt['manual_posting_Change_Font_10'], '
</option>
<option value="11pt">
', $txt['manual_posting_Change_Font_11'], '
</option>
<option value="12pt">
', $txt['manual_posting_Change_Font_12'], '
</option>
<option value="13pt">
', $txt['manual_posting_Change_Font_13'], '
</option>
<option value="14pt">
', $txt['manual_posting_Change_Font_14'], '
</option>
</select><br />


ملاحظة في حال عدم وجود الملفين Post.template.php و  Help.template.php في السمة التي تستخدمها أو أحدهما فتجاهل الخطوات المتعلقة بهما
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Advertisement: