-
پسوند کلاس ماژول
سلام . من از قالب akowinterportal استفاده می کنم و می خواهم یک منو مثل منوی اصلی را در بصورت سفارشی تبدیل کنم ولی وقتی در پسوند کلاس ماژول تغییر ایجاد میکنم فونت تغییر نمی کند
و سوال دیگر اینکه دو تا پسوند کلاس ماژول نوشته شده .این دو با هم چه فرق دارند و table.modultable را در فایل css قالب تغییر می دهیم . آن یکی از کجا تغییر می کند
-
پاسخ : پسوند کلاس ماژول
سلام
میشه هر دو نمونه رو بذارید و همچنین بنویسید چطور با پسوند سفارشی کردید ؟ کارهای انجام شده رو اینجا هم بذارید تا بررسی کنیم
-
پاسخ : پسوند کلاس ماژول
ببینید اگر شما بخواهید یکی از منو های اصلی 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 [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] 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 {
}
<?php
/**
* AkoWinterportal - A Mambo 4.5 template
* @version 2.0
* @package AkoWinterportal
* @copyright (C) 2004 by Arthur Konze - All rights reserved!
* @license [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] Copyrighted Commercial Software
* Developed By Mambolearn.com
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
<html xmlns="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] dir=rtl>
<head>
<?php if ( $my->id ) initEditor(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/icon.ico" />
<link rel="stylesheet" type="text/css" href="<?php echo $mosConfig_live_site; ?>/templates/akowinterportal/css/template_css.css" />
<style type="text/css">
<!--
.style1 {font-size: 10px}
.style4 {
font-size: 14px;
font-weight: bold;
}
.style5 {font-size: 14px; }
-->
</style>
</head>
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td class="maintable" background="../images/background.gif" width="100%">
<a name="up" id="up"></a>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="79" valign="center" bgcolor="#95CBE9" background="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/headermainbg.gif"><img src="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/logo.jpg"></td>
</tr>
<tr>
<td valign="top" background="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/topshadow.gif"><img src="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/topshadow.gif" height="4"></td>
</tr>
</table>
<!-- Ende des Kopfes - Anfang des Contents -->
<!--top menu-->
<table cellpadding="5" cellspacing="0" width="100%" class="top">
<tr align="center">
<td>
<table width="100%">
<tr>
<td width="100%" align="center" ><?php mosLoadModules('top'); ?></td>
<td><p><a href="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
</tr>
</table>
</td>
</tr>
<tr align="center">
<td width="95%" height="100%" valign="top" class="top1" ><div align="center">
<?php mosLoadModules('top1'); ?>
</div></td>
</tr>
</table>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<!-- LEFT Modules -->
<?php
if (mosCountModules('left')>0) {
?>
<td width="195" valign="top">
<?php mosLoadModules ( "left" ); ?> </td>
<?php
}
?>
<td width="800" valign="top">
<table width="95%" border="0">
<tr>
<td>
<!-- Main Content Section -->
<?php mosMainBody(); ?>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0">
<tr>
<td valign="top" class="user4">
<?php mosLoadModules('user4'); ?> </td>
<td valign="top" class="user3">
<?php mosLoadModules('user3'); ?> </td>
</tr>
</table></td>
</tr>
</table>
</td>
<!-- RIGHT Modules -->
<?php /*?> <?php
if (mosCountModules('right')>0) {
?>
<td width="41" valign="top">
<?php mosLoadModules ( "right" ); ?> </td>
<?php
}
?><?php */?>
</tr>
</table>
<div align="center">
<img src="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/arrow2up.gif" width="12" height="9" border="0" align="middle">
<font color="#999999" size="1" face="Verdana"><a href="<?php echo sefRelToAbs($_SERVER['REQUEST_URI']); ?>#up">Top Of Page</a></font>
<img src="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/arrow2up.gif" width="12" height="9" align="middle"></div>
<!-- Ende des Contents - Anfang des Fusses -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td >
<?php mosLoadModules('banner'); ?>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr align="center">
<td valign="top" background="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/bottom_snow.jpg"><img src="<?php echo $mosConfig_live_site;?>/templates/akowinterportal/images/bottom_snow.jpg"></td>
<tr>
<td >
<p align="center" class="style1"><strong>Design By <a href="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] Web Design</a></strong></p>
<p class="style1">
</table>
</td>
</tr>
</table>
</body>
</html>
-
پاسخ : پسوند کلاس ماژول
در بخش body درون css
fontfamily: tahoma;
فکر کنم اینه
-
پاسخ : پسوند کلاس ماژول
خوب این که شما فرمودید که کل متن بدنه سایت رو تغییر می دهد . من می خواهم فقط همان منو تغییر کند
من 4 تا سوال پرسیدم لطفا با حوصله بیشتری پاسخ دهید شاید دوستان دیگری هم همین سوالات برایشان مطرح باشد
-
پاسخ : پسوند کلاس ماژول
امین جان
لطفا این قالب و کاری که انجام دادی رو آپلود کن و لینک بده و دقیقا بگو چه تغییری میخوای بدی تا براتون بنویسم چه کلاسی رو باید ادیت کنید
یا علی
-
پاسخ : پسوند کلاس ماژول
[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
ادرس سایت ما [مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید] می باشد
1-منو های سمت راست (سایر منو ها و ورود و خروج) و یا کل منوهای سمت راست باید فونت درشت تری داشته باشد و فونتش هم تغییر کند
2-کادر سفید بین منو ها می خواهم پاک شود - مثلا بین بیمه های طرف قرار داد و معرفی پزشکان یا در قسمت ورود خروج بین فراموش کردن کلمه عبور و ثبت نام نکرده اید
-
پاسخ : پسوند کلاس ماژول
1-فونت تایتل ماژول ها یا ... ؟
2- کلاس table.moduletable td رو چک کنید . BORDER ست کردید !
border هارو حذف کنید مشکل حل میشه
یا علی
-
پاسخ : پسوند کلاس ماژول
در مورد 2 درست شد . در مورد سوال 1 می خواهم فونت سفارشی برای سایر منوها ایجاد کنم آیا باید از class_sfx استفاده کنم .فونت خود متن داخل ماژول سایر منوها می خواهم عوض بشود
-
پاسخ : پسوند کلاس ماژول
سلام
بله باید از پسوند کلاس مازول استفاده کنید . فونت رو در CSS ست کنید و از قسمت مدیریت مامبو این کلاس رو به ماژولهای مورد نظرتون اختصاص بدید
یا علی