PDA

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



alvandi
07-15-2009, 01:51 PM
با سلام. در عکس زیر یه قسمت از قالب سرجاش نیست و بیرون اومده، یعنی از اول همین شکلی بود. چطوری میتونم درستش کنم؟

<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

اینم از کد html:


&lt;?php
defined( &#039;_VALID_MOS&#039; ) or die( &#039;Restricted access&#039; );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( &#039;=&#039;, _ISO );
// xml prolog
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 mosShowHead(); ?&gt;
&lt;?php
if ( $my-&gt;id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( &#039;right&#039;, &#039;left&#039; ) + mosCountModules( &#039;user2&#039; ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$user3 = 0;
$colspan = 0;
$right = 0;
$left = 0;
$banner = 0;
// banner combos

//user1 combos
if ( mosCountModules( &#039;user1&#039; ) + mosCountModules( &#039;user2&#039; ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( &#039;user1&#039; ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( &#039;user2&#039; ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//user3 based combos
if ( mosCountModules( &#039;user3&#039; ) and ( empty( $_REQUEST[&#039;task&#039;] ) || $_REQUEST[&#039;task&#039;] != &#039;edit&#039; ) ) {
$user3 = 1;

}
//banner based combos
if ( mosCountModules( &#039;banner&#039; ) and ( empty( $_REQUEST[&#039;task&#039;] ) || $_REQUEST[&#039;task&#039;] != &#039;edit&#039; ) ) {
$banner = 1;

}

//right based combos
if ( mosCountModules( &#039;right&#039; ) and ( empty( $_REQUEST[&#039;task&#039;] ) || $_REQUEST[&#039;task&#039;] != &#039;edit&#039; ) ) {
$right = 1;

}
//left based combos
if ( mosCountModules( &#039;left&#039; ) and ( empty( $_REQUEST[&#039;task&#039;] ) || $_REQUEST[&#039;task&#039;] != &#039;edit&#039; ) ) {
$left = 1;

}
//top based combos
if ( mosCountModules( &#039;top&#039; ) and ( empty( $_REQUEST[&#039;task&#039;] ) || $_REQUEST[&#039;task&#039;] != &#039;edit&#039; ) ) {
$top = 1;

}
?&gt;
&lt;meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;?php echo &quot;&lt;link rel=\&quot;stylesheet\&quot; href=\&quot;$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\&quot; type=\&quot;text/css\&quot;/&gt;&quot; ; ?&gt;&lt;?php echo &quot;&lt;link rel=\&quot;shortcut icon\&quot; href=\&quot;$GLOBALS[mosConfig_live_site]/images/favicon.ico\&quot; /&gt;&quot; ; ?&gt;
&lt;link href=&quot;css/template_css.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table width=&quot;908&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;td&gt;&lt;div id=&quot;top_outer&quot;&gt;&lt;div id=&quot;top_inner&quot;&gt;&lt;/div&gt;
&lt;form action=&quot;index.php&quot; method=&quot;post&quot;&gt;



&lt;/form&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;?php
if ( $user3 &gt; 0 ) {
?&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;
&lt;div id=&quot;top_menu&quot;&gt;
&lt;div id=&quot;top_menu_inner&quot;&gt;&lt;?php mosLoadModules ( &#039;user3&#039; ); ?&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt; &lt;?php
}
?&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div id=&quot;pathway&quot;&gt; &lt;div id=&quot;pathway_text&quot;&gt;
&lt;?php mosPathWay(); ?&gt;
&lt;/div&gt; &lt;/div&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td id=&quot;content_outer&quot; width=&quot;908&quot; valign=&quot;top&quot;&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;860&quot; class=&quot;content_table&quot;&gt;
&lt;tr valign=&quot;top&quot;&gt;
&lt;?php
if ( $left &gt; 0 ) {
?&gt;
&lt;td&gt;
&lt;div id=&quot;left_outer&quot;&gt;
&lt;div id=&quot;left_inner&quot;&gt;
&lt;?php mosLoadModules ( &#039;left&#039;, -2 ); ?&gt;
&lt;/div&gt;&lt;/div&gt; &lt;/td&gt;
&lt;?php
}
?&gt;
&lt;td width=&quot;100%&quot;&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;content&quot;&gt;
&lt;tr&gt;
&lt;td colspan=&quot;&lt;?php echo $colspan; ?&gt;&quot;&gt;
&lt;div id=&quot;main_content&quot;&gt;&lt;?php mosMainBody(); ?&gt;&lt;/div&gt; &lt;/td&gt;
&lt;/tr&gt;

&lt;?php
if ($colspan &gt; 0) {
?&gt;
&lt;tr valign=&quot;top&quot;&gt;

&lt;?php
if ( $user1 &gt; 0 ) {
?&gt;
&lt;td width=&quot;50%&quot;&gt;
&lt;div id=&quot;user1_outer&quot;&gt;&lt;div class=&quot;user1_inner&quot;&gt;
&lt;?php mosLoadModules ( &#039;user1&#039;, -2 ); ?&gt;
&lt;/div&gt; &lt;/div&gt; &lt;/td&gt;
&lt;?php
}
if ( $colspan == 3) {
?&gt;

&lt;?php
}
if ( $user2 &gt; 0 ) {
?&gt;
&lt;td width=&quot;50%&quot;&gt;
&lt;div id=&quot;user2_outer&quot;&gt;
&lt;div class=&quot;user2_inner&quot;&gt;
&lt;?php mosLoadModules ( &#039;user2&#039;, -2 ); ?&gt;
&lt;/div&gt; &lt;/div&gt; &lt;/td&gt;
&lt;?php
}
?&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan=&quot;&lt;?php echo $colspan; ?&gt;&quot;&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;?php
}
?&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;?php
if ( $right &gt; 0 ) {
?&gt;
&lt;td&gt;
&lt;div id=&quot;right_outer&quot;&gt;
&lt;div id=&quot;right_inner&quot;&gt;
&lt;?php mosLoadModules ( &#039;right&#039;, -2 ); ?&gt;
&lt;/div&gt;
&lt;/div&gt; &lt;/td&gt;
&lt;?php
}
?&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td id=&quot;footer&quot;&gt;
&lt;div class=&quot;footer&quot;&gt; &lt;?php include_once(&#039;includes/footer.php&#039;); ?&gt; &lt;/div&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;?php mosLoadModules( &#039;debug&#039;, -1 );?&gt;
&lt;/body&gt;
&lt;/html&gt;

سعید
07-15-2009, 03:25 PM
سلام کدوم قسمت؟

ضمنا اینکه این قالب احتمالا قالب وملا 1.0 هست که روی مامبو نصب شده.

alvandi
07-15-2009, 04:11 PM
قالب خود مامبوست (2007) و از مامبو دیگ دانلود کردم.

منوی اصلی رفته تو و از اون ور نظرسنجی زده بیرون. اگه اون سایه ها رو دنبال کنید مشخصه. توی این کدها هرچی دستکاری کردم به نتیجه ای نرسیدم. شاید از کدهای css باشه

alvandi
07-16-2009, 09:03 PM
یه راهنمایی کوچولو در مورد اینکه کلا این قسمتو توی کدوم بخش کد میشه تغییر داد خیلی میتونه بهم کمک کنه. مرسی!

مهدی.
07-16-2009, 10:56 PM
سلام

دقت نکردم، اما اصولاً فرمان if تعیین میکنن توی اینجور قالبها که اگر ماژول فلان لود شد در صفحه این ماژول هم نمایش داده بشه. یعنی اگر ماژول 1 در سمت راست باشه و ماژول 2 در وسط باشه. ماژول 2 تا زمانی که ماژول 1 نمایش داده نشده امکان نمایش نداره.

حالا توی این قالب نمیدونم. اما این خودش یه جور مزیت هست. میتونید از این موضوع استفاده کنید.

یا حق