PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : تغيير در قالب



kambiz_g
07-30-2007, 08:06 AM
سلام
من دارم روي يه قالب كار مي كنم
يعني فارسيش كردم و جواب هم گرفتم فارسي سازيش هم به اين شكل بوده كه و css چپ و راست كردم
و تو index.php جلوي table ها dir="rtl" گذاشتم
اما من قالب رو به صورت قبل مي خوام يعني قالب رو rtl كه مي كنم جاي ماژول ها كلا عوض ميشه يعني بر عكس ميشه


<?php
/*--------------------------------------------------------------
# kambiz
# themebase.com.
# eSSS
# Website: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
# Support: support@themebase.com
---------------------------------------------------------------*/
//defined( &#039;_VALID_MOS&#039; ) or die( &#039;Direct Access to this location is not allowed.&#039; );
//$iso = split( &#039;=&#039;, _ISO ); echo &#039;&lt;?xml version=&quot;1.0&quot; encoding=&quot;&#039;. $iso[1] .&#039;&quot;?&#039; .&#039;&gt;&#039;;

?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;html xmlns=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;head&gt;
&lt;?php
if ( $my-&gt;id ) {
initEditor();
}
$menu_name = &quot;mainmenu&quot;; // mainmenu by default,you can use any joomla menu name
$style_panel = &quot;true&quot;; // true | false

require($mosConfig_absolute_path.&quot;/templates/&quot; . $mainframe-&gt;getTemplate() . &quot;/gk_suckerfish.php&quot;);
require($mosConfig_absolute_path.&quot;/templates/&quot; . $mainframe-&gt;getTemplate() . &quot;/gk_setup.php&quot;);

?&gt;
&lt;?php mosShowHead(); ?&gt;
&lt;meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content=&quot;text/html; &lt;?php echo _ISO; ?&gt;&quot; /&gt;
&lt;link href=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/css/template_css.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;link href=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/css/suckerfish.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;link href=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/css/style1.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;!--[if IE 6]&gt;
&lt;style type=&quot;text/css&quot;&gt;
img { behavior: url(&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;
getTemplate(); ?&gt;/css/iepngfix.htc); }
&lt;/style&gt;
&lt;link href=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;
getTemplate(); ?&gt;/css/ie6_css.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;![endif]--&gt;
&lt;!--[if IE 7]&gt;
&lt;link href=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;
getTemplate(); ?&gt;/css/ie7_css.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;![endif]--&gt;
&lt;?php
if(isset($_COOKIE[&#039;gk_temp_style&#039;])){
echo &#039;&lt;link href=&quot;&#039;.$mosConfig_live_site.&#039;/templates/&#039;.$mainframe-&gt;getTemplate().&#039;/css/style&#039;.$_COOKIE[&#039;gk_temp_style&#039;].&#039;.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;&#039;;
}
?&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/scripts/mootools.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/scripts/template_scripts.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// css path
css_path = &#039;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/css/&#039;;
// actual style
actual_style = &lt;?php if(isset($_COOKIE[&#039;gk_temp_style&#039;])){echo $_COOKIE[&#039;gk_temp_style&#039;];}else{echo 1;}?&gt;;
&lt;/script&gt;
&lt;/head&gt;
&lt;body id=&quot;bg&quot;&gt;
&lt;div id=&quot;toparea&quot;&gt;
&lt;div class=&quot;wrapper&quot;&gt;
&lt;?php if (mosCountModules(&#039;advert1&#039;)) : ?&gt;
&lt;div id=&quot;memberarea&quot;&gt;
&lt;?php mosLoadModules(&#039;advert1&#039;, -1); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php if ($style_panel == &quot;true&quot;) : ?&gt;
&lt;div id=&quot;stylearea&quot;&gt;
&lt;a href=&quot;#&quot; class=&quot;style_switcher&quot; id=&quot;st_icon-0&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;#&quot; class=&quot;style_switcher&quot; id=&quot;st_icon-1&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;#&quot; class=&quot;style_switcher&quot; id=&quot;st_icon-2&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;#&quot; class=&quot;style_switcher&quot; id=&quot;st_icon-3&quot;&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;

&lt;?php if (mosCountModules(&#039;advert2&#039;)) : ?&gt;
&lt;div id=&quot;searcharea&quot;&gt;
&lt;?php mosLoadModules(&#039;advert2&#039;, -1); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;header&quot;&gt;
&lt;div id=&quot;imghead&quot;&gt;&lt;a href=&quot;./&quot;&gt; &lt;img id=&quot;logo&quot; src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/&lt;?php echo $mainframe-&gt;getTemplate(); ?&gt;/images/logo.png&quot; alt=&quot;&lt;?php echo $mosConfig_sitename?&gt;&quot; /&gt; &lt;/a&gt;
&lt;?php if (mosCountModules(&#039;newsflash&#039;)) : ?&gt;
&lt;div id=&quot;newsflasharea&quot;&gt;&lt;?php mosLoadModules(&#039;newsflash&#039;, -1); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;wrapper&quot;&gt;
&lt;div id=&quot;pagewrap&quot;&gt;
&lt;div id=&quot;menu&quot;&gt;
&lt;div id=&quot;nav&quot;&gt;
&lt;?php mosShowListMenu($menu_name); ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table dir=&quot;rtl&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;contentwrap&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td&gt;&lt;table dir=&quot;rtl&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;mainbodywrap&quot;&gt;
&lt;?php if (mosCountModules(&#039;top&#039;) or mosCountModules(&#039;banner&#039;)) : ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td&gt;&lt;table dir=&quot;rtl&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; class=&quot;clearfix&quot;&gt;
&lt;?php if (mosCountModules(&#039;top&#039;)) : ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td class=&quot;moduliki-full&quot;&gt;&lt;?php mosLoadModules(&#039;top&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;
&lt;?php if (mosCountModules(&#039;banner&#039;)) : ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td class=&quot;moduliki-full&quot;&gt;&lt;?php mosLoadModules(&#039;banner&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;
&lt;?php if (mosCountModules(&#039;user1&#039;) or mosCountModules(&#039;user2&#039;)) : ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td&gt;&lt;table dir=&quot;rtl&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; class=&quot;clearfix&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;?php if( mosCountModules(&#039;user1&#039;)) : ?&gt;
&lt;td class=&quot;moduliki&quot; style=&quot;width: &lt;?php echo $usertop; ?&gt;;&quot;&gt;&lt;?php mosLoadModules(&#039;user1&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;?php if( mosCountModules(&#039;user2&#039;)) : ?&gt;
&lt;td&gt;&lt;div class=&quot;null&lt;?php echo $null_1; ?&gt;&quot;&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td class=&quot;moduliki&quot; style=&quot;width: &lt;?php echo $usertop; ?&gt;;&quot;&gt;&lt;?php mosLoadModules(&#039;user2&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;
&lt;?php if (mosCountModules(&#039;toolbar&#039;)) : ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td class=&quot;moduliki-full clearfix&quot;&gt;&lt;?php mosLoadModules(&#039;toolbar&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php endif; ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td id=&quot;mainbodycont&quot;&gt;&lt;?php mosMainBody(); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php if (mosCountModules(&#039;user3&#039;) or mosCountModules(&#039;user4&#039;)) : ?&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td&gt;&lt;table dir=&quot;rtl&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; class=&quot;clearfix&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;?php if( mosCountModules(&#039;user3&#039;)) : ?&gt;
&lt;td class=&quot;moduliki&quot; style=&quot;width: &lt;?php echo $usermid; ?&gt;;&quot;&gt;&lt;?php mosLoadModules(&#039;user3&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;?php if( mosCountModules(&#039;user4&#039;)) : ?&gt;
&lt;td&gt;&lt;div class=&quot;null&lt;?php echo $null_2; ?&gt;&quot;&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td class=&quot;moduliki&quot; style=&quot;width: &lt;?php echo $usermid; ?&gt;;&quot;&gt;&lt;?php mosLoadModules(&#039;user4&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;/td&gt;
&lt;/tr&gt; &lt;?php endif; ?&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;?php if (mosCountModules(&#039;inset&#039;) or mosCountModules(&#039;right&#039;)) : ?&gt;
&lt;?php if (mosCountModules(&#039;inset&#039;)) : ?&gt;
&lt;td class=&quot;null-1&quot;&gt;&lt;div class=&quot;shadow-l&quot;&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td id=&quot;insetwrap&quot;&gt;&lt;?php mosLoadModules(&#039;inset&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;
&lt;?php if (mosCountModules(&#039;right&#039;)) : ?&gt;
&lt;td class=&quot;null-1&quot;&gt;&lt;div class=&quot;shadow&lt;?php echo $shadow; ?&gt;&quot;&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td id=&quot;rightwrap&quot;&gt;&lt;?php mosLoadModules(&#039;right&#039;, -2); ?&gt;
&lt;/td&gt;
&lt;?php endif; ?&gt;&lt;?php endif; ?&gt;
&lt;td class=&quot;null-1&quot;&gt;&lt;div class=&quot;null-1&quot;&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;
&lt;?php if (mosCountModules(&#039;user5&#039;) or mosCountModules(&#039;user6&#039;) or mosCountModules(&#039;user7&#039;) or mosCountModules(&#039;user8&#039;)) : ?&gt;
&lt;table dir=&quot;rtl&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;downarea&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td&gt;&lt;?php if( mosCountModules(&#039;user5&#039;)) : ?&gt;
&lt;div class=&quot;moduliki-l&quot; style=&quot;width: &lt;?php echo $exdown_width; ?&gt; ;&quot;&gt;
&lt;?php mosLoadModules(&#039;user5&#039;, -2); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php if( mosCountModules(&#039;user6&#039;)) : ?&gt;
&lt;div class=&quot;moduliki-l &lt;?php echo $spacer1; ?&gt;&quot; style=&quot;width: &lt;?php echo $exdown_width; ?&gt; ;&quot;&gt;
&lt;?php mosLoadModules(&#039;user6&#039;, -2); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php if( mosCountModules(&#039;user7&#039;)) : ?&gt;
&lt;div class=&quot;moduliki-l &lt;?php echo $spacer2; ?&gt;&quot; style=&quot;width: &lt;?php echo $exdown_width; ?&gt; ;&quot;&gt;
&lt;?php mosLoadModules(&#039;user7&#039;, -2); ?&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php if( mosCountModules(&#039;user8&#039;)) : ?&gt;
&lt;div class=&quot;moduliki-l &lt;?php echo $spacer3; ?&gt;&quot; style=&quot;width: &lt;?php echo $exdown_width; ?&gt; ;&quot;&gt;
&lt;?php mosLoadModules(&#039;user8&#039;, -2); ?&gt;
&lt;/div&gt;
&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php endif; ?&gt;
&lt;div id=&quot;footer&quot;&gt;&lt;span id=&quot;info&quot;&gt;
&lt;?php include_once(&#039;gk_footer.php&#039;); ?&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;



اينم كد index.php كه من rtl كردم ولي همينطور كه گفتم قالب به كل چپ و راست ميشه

مرسي

farhad
07-30-2007, 08:24 AM
فارسی سازی و چپ به راست کردن که فقط مربوط به فایل Index.php نیست.
شما باید CSS رو هم ادیت کنید.

kambiz_g
07-30-2007, 08:44 AM
دوست من شما كل پست منو نخونديد من عرض كردم كه css رو هم تغيير دادم
الان هم كل قالب فارسي شده و هيچ مشكلي نداره
منظوره من اينه كه وقتي كل قالب فارسي ميشه يعني وقتي rtl مي كنم ماژول ها بر عكس ميشن
يعني به فرض mosMainBody(); سمت چپه مياد سمته راست
من مي خوام mosMainBody(); همون سمته چپ بمونه
مرسي

abtin
07-30-2007, 09:25 AM
تو سي اس اس به همه ي كلاس ها كه نبايد direction:rtl داد !

احتمالا مشكل از div و td منشا ميشه .. direction رو از div و td برداريد .

farhad
07-30-2007, 05:33 PM
من مي خوام mosMainBody(); همون سمته چپ بمونه

خب direction مربوط به table و یا div اون رو LTR بکیند !

سعید
07-30-2007, 11:35 PM
با کسب اجازه از محضر استادم جناب آقای نوری عزیز و گرامی

یک کار دیگه هم می تونید بکنید که هر چی mosCountModules(&#039;right&#039;) هست با لفت عوض کنید. به همین راحتی ;)


راستی اصلا شما دارید قالب چی طراحی می کنید؟ مامبو یا اس ام اف؟ متعجب
تا جایی که من می بینم کدهای داخل قالب مربوط به مامبو هستن
و این قسمت مخصوص قالب های smf هست

سؤالتون رو در بخش مربوط به خودش مطرح کنید