PDA

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



arminimani
06-29-2009, 03:57 PM
سلام . من از قالب akowinterportal استفاده می کنم و می خواهم یک منو مثل منوی اصلی را در بصورت سفارشی تبدیل کنم ولی وقتی در پسوند کلاس ماژول تغییر ایجاد میکنم فونت تغییر نمی کند
و سوال دیگر اینکه دو تا پسوند کلاس ماژول نوشته شده .این دو با هم چه فرق دارند و table.modultable را در فایل css قالب تغییر می دهیم . آن یکی از کجا تغییر می کند

mhadaily
06-29-2009, 04:11 PM
سلام

میشه هر دو نمونه رو بذارید و همچنین بنویسید چطور با پسوند سفارشی کردید ؟ کارهای انجام شده رو اینجا هم بذارید تا بررسی کنیم

arminimani
07-01-2009, 10:35 AM
ببینید اگر شما بخواهید یکی از منو های اصلی mod_mainmenu را سفارشی کنید چه کار می کنید ؟
وقتی وارد ماژول میشوید در قسمت پارامتر ها دو گزینه اول اینها است
class_sfx پسوند کلاس ماژول
moduleclass_sfx پسوند کلاس ماژول
1- تفاوت این دو در چیست ؟
2-اگر بخواهیم فونت منو را تغییر دهیم از کدام قسمت استفاده میکنیم ؟
3- class_sfx در کجا قرار دارد؟
4-من تغییراتی در moduleclass_sfx دادم که بصورت table.moduletable-menu در Css اضافه کردم .با یک سری تغییرات منو تغییر می کند ولی این باعث تغییر فونت نمی شود . به نظر شما فونت از کجا تعریف شده است

فایل Css , index قالب را اینجا قرار می دهم

/**
* AkoWinterportal - A Mambo 4.5 template
* @version 2.0
* @package AkoWinterportal
* @copyright (C) 2004 by Arthur Konze - All rights reserved!
* @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> Copyrighted Commercial Software
*/

/* #################### MISC SETTINGS #################### */
BODY {
margin : 0px;
padding : 0px;
background-color : #FFFFFF ;
color : #000000;
font-family: tahoma;

}

TD, TR, P, DIV {
font-family: tahoma;
font-size : 12px;
color : #333333;
}

HR {
height : 1px;
width : 75%;
background-color: #FFFFFF;
}

li {
list-style : inside url(../images/arrow.gif) ;
list-style-image : url(../images/arrow.gif);
}

.navigationline {
font-family: tahoma;
font-size : 11px;
color : #CC0000;
}

/* ###################### LINKS ###################### */
a:link, a:visited {
font-size : 11px;
color : #0000CC;
text-decoration : none;
font-family: tahoma;
}

a:hover {
color : #999999;
text-decoration : none;
}

a:active {
text-decoration : underline;
color : #000066;
}

/* ###################### UPPER BUTTON BAR ###################### */
.buttonbar {
display : block;
font-family: tahoma;
width : 100%;
text-align : center;
font-weight : normal;
text-decoration : none;
}

a.buttonbar:link, a.buttonbar:visited {
font-size : 9px;
padding-top : 1px;
padding-bottom : 1px;
text-decoration : none;
border-top : 1px solid #95BFD1;
border-left : 1px solid #95BFD1;
border-right : 1px solid #427D96;
border-bottom : 1px solid #427D96;
background-color : #50A9DC;
color : #FFFFFF
}
a.buttonbar:hover {
padding-top : 1px;
padding-bottom : 1px;
border-top : 1px solid #427D96;
border-left : 1px solid #427D96;
border-right : 1px solid #95BFD1;
border-bottom : 1px solid #95BFD1;
background-color : #308CC0;
color : #FFFFFF
}

/* ################ MAIN AND SUB MENU SYSTEM ################ */
a.mainlevel:link, a.mainlevel:visited {
color : #333333;
direction:rtl;
text-align:right;
float:right
}

a.mainlevel:hover {
color : #FFFFFF;
direction:rtl;
text-align:right;
float:right
}

/* ################### MODULE SETTINGS ################### */
table.moduletable {
font-size : 16px;
border : 1px solid #D9D9D9;
width : 100%;
margin-bottom : 10px;
background-image: url(../images/moback.gif);
font-family: Tahoma;
}

table.moduletable th {
border : 3px solid #F9F9F9;
font-family: Arial, Helvetica, sans-serif;
text-align : center;
color : #333333;
background-image: url(../images/button.gif);
background-repeat: no-repeat;
font-size: 11px;
line-height: 28px;
}

table.moduletable td {
border : 3px solid #F9F9F9;
font-weight : normal;
font-family: Tahoma;
}

/* ###################### CONTENT PAGE SETTINGS ###################### */
.contentpane {
padding-left : 5px;
padding-right : 5px;
}

.contentpaneopen {
padding-left : 5px;
padding-right : 5px;
}

.contentheading, .componentheading {
font-family: Tahoma;
font-size : 12px;
font-family: Tahoma;
color : #000099;
font-weight: bold;
text-align: center;
vertical-align: baseline;
clear: both;
}

.contentdescription {
font-family: tahoma;
font-size : 11px;
color : #333333;
text-align : left;
}

/* ###################### FORMULAR SETTINGS ###################### */
.button {
font-family: tahoma;
font-style : normal;
font-family: tahoma;
font-size : 10px;
color : #000000;
background-color : #F0F0F0;
border : 1px solid #cccccc;
}

.inputbox {
font-family: tahoma;
font-size : 10px;
font-family: tahoma;
color : #000000;
background : #F0F0F0;
border : 1px solid #CCCCCC;
}

/* ################### SECTION LISTING SETTINGS ################### */
.sectiontableentry1 {
background-color : #F9F9F9;
}
.top1 {
background-image: url(../images/back_scroll.jpg);
}

.sectiontableentry2 {
background-color : #F0F0F0;
}

.sectiontableheader {
background-color : #CCCCCC;
color : #2A7CA9;
font-family: tahoma;
}

/* ##################### SMALL FONT SETTINGS ##################### */
.small {
font-family: tahoma;
font-size : 9px;
color : #3366C0;
text-decoration : none;
font-weight : normal;
}

.smalldark {
font-family: tahoma;
font-size : 9px;
color : #000000;
font-weight : normal;
}

.createdate {
font-family: tahoma;
font-size : 9px;
color : #999999;
text-decoration : none;
font-weight : normal;
}
.maintable {
border: 2px solid #666666;
background-color: #F5F5F5;

}
.user3 {
float:left;
height:auto;
width:49%;
position:static;
top:auto;
right:auto;
float:left;
}

.user4 {
float:right;
height:auto;
position:static;
top:auto;
left:auto;
right:auto;
bottom:auto;
width:49%;
}

table.moduletableusers th {
text-transform: uppercase;
background-image: url(../images/buttoncenter.gif);
background-repeat: no-repeat;
background-position: right top;
height: 32px;
line-height: 28px;
width: 500px;
}
table.moduletablelefts {
font-size : 16px;
border : 1px solid #D9D9D9;
width : 100%;
margin-bottom : 10px;
background-image: url(../images/moback.gif);
}
table.moduletablelefts th {

background-image: url(../images/buttonleft.gif);
background-repeat: no-repeat;
background-position: center top;
line-height: 28px;
width: 500px;
border : 3px solid #F9F9F9;
font-family: Arial, Helvetica, sans-serif;
text-align : center;
color : #333333;
height : 30px;
font-size: 11px;
line-height: 28px;
}
table.moduletablelefts td {
border : 3px solid #F9F9F9;
font-weight : normal;
}

table.moduletablemenum td {
text-transform: uppercase;
background-image: url(../images/menu.gif);
background-repeat: no-repeat;
background-position: right top;
height: 32px;
line-height: 28px;
width: 200px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
table.moduletablemenum th {
border : 3px solid #F9F9F9;
font-family: Arial, Helvetica, sans-serif;
text-align : right;
color : #333333;
height : 50px;
background-repeat: no-repeat;
font-size: 11px;
line-height: 28px;
}
table.moduletablebala td {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #000000;
font-weight: bold;
text-align: right;
float: right;
background-position: right top;
clear: right;
background-color: #CCCCCC;
background-image: url(../images/menuup.gif);
}
.mainlevel-nav {
list-style: none;
font-size: 14px;
background-position: left;
text-align: left;
}
a.mainlevel-nav:link, a.mainlevel-nav:visited {
color: #ffffff;
text-decoration: none;
font-family: Tahoma,Verdana, Arial,Helvetica, sans-serif;
text-align: right;
font-weight: normal;
}
a.mainlevel-nav:hover {
color: #333333;
font-weight: normal;
text-decoration: none;
}
.top {
border-top-width: thick;
border-right-width: thick;
border-bottom-width: thick;
border-left-width: thick;
border-bottom-style: solid;
border-top-color: #CCCCCC;
border-right-color: #CCCCCC;
border-bottom-color: #CCCCCC;
border-left-color: #CCCCCC;
padding-left: 22px;
}

table.moduletablesayer {
border : 1px solid #D9D9D9;
width : 100%;
margin-bottom : 10px;
text-align: right;
}

table.moduletablesayer th {
border : 3px solid #F9F9F9;
font-family: Arial, Helvetica, sans-serif;
text-align : center;
color : #333333;
background-image: url(../images/button.gif);
background-repeat: no-repeat;
font-size: 11px;
line-height: 28px;
}

table.moduletablesayer td {


}

&lt;?php
/**
* AkoWinterportal - A Mambo 4.5 template
* @version 2.0
* @package AkoWinterportal
* @copyright (C) 2004 by Arthur Konze - All rights reserved!
* @license <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> Copyrighted Commercial Software
* Developed By Mambolearn.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> dir=rtl&gt;
&lt;head&gt;
&lt;?php if ( $my-&gt;id ) initEditor(); ?&gt;
&lt;meta <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> content=&quot;text/html; &lt;?php echo _ISO; ?&gt;&quot; /&gt;
&lt;?php mosShowHead(); ?&gt;
&lt;link rel=&quot;shortcut icon&quot; href=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/images/icon.ico&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo $mosConfig_live_site; ?&gt;/templates/akowinterportal/css/template_css.css&quot; /&gt;

&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.style1 {font-size: 10px}
.style4 {
font-size: 14px;
font-weight: bold;
}
.style5 {font-size: 14px; }
--&gt;
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;table width=&quot;900&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; &gt;
&lt;tr&gt;
&lt;td class=&quot;maintable&quot; background=&quot;../images/background.gif&quot; width=&quot;100%&quot;&gt;
&lt;a name=&quot;up&quot; id=&quot;up&quot;&gt;&lt;/a&gt;

&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;

&lt;tr&gt;
&lt;td height=&quot;79&quot; valign=&quot;center&quot; bgcolor=&quot;#95CBE9&quot; background=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/headermainbg.gif&quot;&gt;&lt;img src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/logo.jpg&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td valign=&quot;top&quot; background=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/topshadow.gif&quot;&gt;&lt;img src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/topshadow.gif&quot; height=&quot;4&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;!-- Ende des Kopfes - Anfang des Contents --&gt;
&lt;!--top menu--&gt;
&lt;table cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; class=&quot;top&quot;&gt;
&lt;tr align=&quot;center&quot;&gt;
&lt;td&gt;
&lt;table width=&quot;100%&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; align=&quot;center&quot; &gt;&lt;?php mosLoadModules(&#039;top&#039;); ?&gt;&lt;/td&gt;
&lt;td&gt;&lt;p&gt;&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> 14&amp;amp;Itemid=22&quot;&gt;english&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr align=&quot;center&quot;&gt;

&lt;td width=&quot;95%&quot; height=&quot;100%&quot; valign=&quot;top&quot; class=&quot;top1&quot; &gt;&lt;div align=&quot;center&quot;&gt;
&lt;?php mosLoadModules(&#039;top1&#039;); ?&gt;
&lt;/div&gt;&lt;/td&gt;


&lt;/tr&gt;

&lt;/table&gt;


&lt;table border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;
&lt;!-- LEFT Modules --&gt;
&lt;?php
if (mosCountModules(&#039;left&#039;)&gt;0) {
?&gt;
&lt;td width=&quot;195&quot; valign=&quot;top&quot;&gt;
&lt;?php mosLoadModules ( &quot;left&quot; ); ?&gt; &lt;/td&gt;
&lt;?php
}
?&gt;
&lt;td width=&quot;800&quot; valign=&quot;top&quot;&gt;

&lt;table width=&quot;95%&quot; border=&quot;0&quot;&gt;

&lt;tr&gt;
&lt;td&gt;

&lt;!-- Main Content Section --&gt;
&lt;?php mosMainBody(); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;

&lt;td valign=&quot;top&quot; class=&quot;user4&quot;&gt;
&lt;?php mosLoadModules(&#039;user4&#039;); ?&gt; &lt;/td&gt;
&lt;td valign=&quot;top&quot; class=&quot;user3&quot;&gt;

&lt;?php mosLoadModules(&#039;user3&#039;); ?&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;!-- RIGHT Modules --&gt;
&lt;?php /*?&gt; &lt;?php
if (mosCountModules(&#039;right&#039;)&gt;0) {
?&gt;
&lt;td width=&quot;41&quot; valign=&quot;top&quot;&gt;
&lt;?php mosLoadModules ( &quot;right&quot; ); ?&gt; &lt;/td&gt;
&lt;?php
}
?&gt;&lt;?php */?&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;img src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/arrow2up.gif&quot; width=&quot;12&quot; height=&quot;9&quot; border=&quot;0&quot; align=&quot;middle&quot;&gt;
&lt;font color=&quot;#999999&quot; size=&quot;1&quot; face=&quot;Verdana&quot;&gt;&lt;a href=&quot;&lt;?php echo sefRelToAbs($_SERVER[&#039;REQUEST_URI&#039;]); ?&gt;#up&quot;&gt;Top Of Page&lt;/a&gt;&lt;/font&gt;
&lt;img src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/arrow2up.gif&quot; width=&quot;12&quot; height=&quot;9&quot; align=&quot;middle&quot;&gt;&lt;/div&gt;
&lt;!-- Ende des Contents - Anfang des Fusses --&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td &gt;
&lt;?php mosLoadModules(&#039;banner&#039;); ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; &gt;
&lt;tr align=&quot;center&quot;&gt;
&lt;td valign=&quot;top&quot; background=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/bottom_snow.jpg&quot;&gt;&lt;img src=&quot;&lt;?php echo $mosConfig_live_site;?&gt;/templates/akowinterportal/images/bottom_snow.jpg&quot;&gt;&lt;/td&gt;
&lt;tr&gt;
&lt;td &gt;
&lt;p align=&quot;center&quot; class=&quot;style1&quot;&gt;&lt;strong&gt;Design By &lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> Web Design&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class=&quot;style1&quot;&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;

koozehchian
07-01-2009, 03:07 PM
در بخش body درون css
fontfamily: tahoma;

فکر کنم اینه

arminimani
07-02-2009, 07:49 AM
خوب این که شما فرمودید که کل متن بدنه سایت رو تغییر می دهد . من می خواهم فقط همان منو تغییر کند
من 4 تا سوال پرسیدم لطفا با حوصله بیشتری پاسخ دهید شاید دوستان دیگری هم همین سوالات برایشان مطرح باشد

firoozmandan
07-02-2009, 10:43 AM
امین جان

لطفا این قالب و کاری که انجام دادی رو آپلود کن و لینک بده و دقیقا بگو چه تغییری میخوای بدی تا براتون بنویسم چه کلاسی رو باید ادیت کنید

یا علی

arminimani
07-04-2009, 12:12 PM
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
ادرس سایت ما <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> می باشد
1-منو های سمت راست (سایر منو ها و ورود و خروج) و یا کل منوهای سمت راست باید فونت درشت تری داشته باشد و فونتش هم تغییر کند
2-کادر سفید بین منو ها می خواهم پاک شود - مثلا بین بیمه های طرف قرار داد و معرفی پزشکان یا در قسمت ورود خروج بین فراموش کردن کلمه عبور و ثبت نام نکرده اید

firoozmandan
07-04-2009, 07:45 PM
1-فونت تایتل ماژول ها یا ... ؟


2- کلاس table.moduletable td رو چک کنید . BORDER ست کردید !
border هارو حذف کنید مشکل حل میشه

یا علی

arminimani
07-05-2009, 11:21 AM
در مورد 2 درست شد . در مورد سوال 1 می خواهم فونت سفارشی برای سایر منوها ایجاد کنم آیا باید از class_sfx استفاده کنم .فونت خود متن داخل ماژول سایر منوها می خواهم عوض بشود

firoozmandan
07-06-2009, 07:27 AM
سلام

بله باید از پسوند کلاس مازول استفاده کنید . فونت رو در CSS ست کنید و از قسمت مدیریت مامبو این کلاس رو به ماژولهای مورد نظرتون اختصاص بدید

یا علی

arminimani
07-06-2009, 01:49 PM
میشه یک مقدار عملی توضیح بدین
در کجای فایل css و به چه نامی باید چه کار کنم؟
وقتی وارد ماژول میشوید در قسمت پارامتر ها دو گزینه اول اینها است
class_sfx پسوند کلاس ماژول
moduleclass_sfx پسوند کلاس ماژول
1- تفاوت این دو در چیست ؟

firoozmandan
07-06-2009, 02:22 PM
آموزش تصویری زیر رو مطالعه کنید



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


یاعلی

arminimani
07-06-2009, 02:39 PM
اینی که شما گذاشتین مربوط به moduleclass_sfx هستش. این class_sfx چیه .
چون من درmoduleclass_sfx تغییر ایجاد کردم ولی فونت داخل ماژول تغییر نکرد

firoozmandan
07-06-2009, 03:18 PM
راه حلی که در آموزش گذاشته شده دقیقا جواب شماست

شما مراحل رو با دقت بیشتری پیگیری کنید قطعا فونت ها تغییر میکنه !