حذف یک Position از توی قالب
سلام ...
من به یه مشکل کوچولو برخورد کردم !
از مامبو 4.6.2 انگلیسی استفاده میکنم و یه Template انگلیسی رو هم روش گذاشتم که دارم یه مقدار تغییرش میدم. فقط مساله اینجاست که یه Position ه Left توی قالب هست که من نمیخوامش... یعنی میخوام Content هام از سمت چپ قالب نشون داده بشن ولی بخاطر این Position ه میان وسط صفحه (: و خب هر کاری کردم نتونستم این Position رو کلا حذف کنم که Contents م بره سمت چپ قالب ...
چکار باید بکنم ؟
پاسخ : حذف یک Position از توی قالب
از مديريت ماژول هاي هيچ ماژولي رو در موقعيت left منتشر نكنيد خود به خود اين موقعين نميآد.
يا اگه مي خواين كلا اين قسمت حذف بشه . در فايل index.php قالبتون كد
کد:
<?php mosLoadModules('left'); ?>
را حذف كنيد
پاسخ : حذف یک Position از توی قالب
در فايل index.php قالبتون table مربوط به موقعيت left رو پاك كنيد و table قسمت mainbody رو عريضتر كنيد.
پاسخ : حذف یک Position از توی قالب
سلام
ممنون بابت جوابها ولی هنوز به نتیجه نرسیدم ):
این لینک، یه عکس از صفحست ... چون دارم لوکال کار میکنم نمیتونم لینک بدم (: ولی ازش عکس گرفتم که ببینین مشکل از کجاست ...
[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
دو قسمت صفحه توسط یه سری خط چین عمودی آبی رنگ از هم جدا شدن که اون قسمت سمت چپ همون Position ایه که من میخوام حذف شه و محتوای من (مثلا همین Contact Us) از منتها الیه سمت چپ Template نشون داده بشه ...
اون کد رو هم که پاک میکنم کل صفحه به هم میریزه ... و Width هر کدوم از table ها رو که ادیت میکنم هیچ تغییری ایجاد نمیشه ))):
پاسخ : حذف یک Position از توی قالب
امم ... من میخواستم کدش رو هم بذارم که یادم رفت ... (:
کد:
<tr>
<td colspan="5" width="170" height="590" bgcolor="#333333" valign="top" style="padding-left:5px;" rowspan="2" align="left">
<?php mosLoadModules ( 'left' ); ?>
</td>
<td background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_23.jpg" width="5" height="590" rowspan="2">
</td>
<td colspan="7" bgcolor="#333333" width="595" height="459" valign="top" style="padding-left:5px;" align="left">
<?php mosMainBody(); ?>
</td>
</tr>
پاسخ : حذف یک Position از توی قالب
خب TD كه موقعيت left داره رو پاك كنيد !
width قسمت mainbody رو هم بهش 170px اضافه كنيد !
كه ميشه :
کد:
<tr>
<td background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_23.jpg" width="5" height="590" rowspan="2">
</td>
<td colspan="7" bgcolor="#333333" width="765" height="459" valign="top" style="padding-left:5px;" align="left">
<?php mosMainBody(); ?>
</td>
</tr>
پاسخ : حذف یک Position از توی قالب
با عرض معذرت من هنوز نتونستم مشکل رو حل کنم.
همونطوری که گفتین TD که موقعیت left داره رو پاک کردم ولی فرقی نکرد ....
من کد template و css رو گذاشتم، ممنون می شم یه نگاهی بهش بندازین شاید مشکل حل شد (:
کد:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
<html xmlns="[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
<head>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template;?>/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php echo $mosConfig_sitename?>" href="<?php echo $mosConfig_live_site;?>/index.php?option=com_rss&feed=RSS2.0&no_html=1" />
</head>
<body>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<table id="Table_01" width="788" height="715" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" width="76" height="34" bgcolor="#ffffff"></td>
<td background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_02.jpg" width="5" height="34">
</td>
<td rowspan="2">
<a href="index.php"><img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_03.jpg" width="90" Height="38"border="0"></a>
</td>
<td rowspan="2" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_04.jpg" width="1" height="38">
</td>
<td colspan="3" rowspan="2">
<a href="ABOUT US"><img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_05.jpg" width="90" height="38" border="0"></a>
</td>
<td rowspan="2" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_06.jpg" width="1" height="38">
</td>
<td rowspan="2">
<a href="GALLERY"><img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_07.jpg" width="90" height="38" border="0"></a>
</td>
<td rowspan="2" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_06.jpg" width="1" height="38">
</td>
<td rowspan="2">
<a href="EVENTS"><img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_28.jpg" width="90" height="38" border="0"></a>
</td>
<td rowspan="2" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_06.jpg" width="1" height="38">
</td>
<td rowspan="2">
<a href="COPYRIGHT"><img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_29.jpg" width="90" height="38" border="0"></a>
</td>
<td colspan="4" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_10.jpg" width="344" height="34">
</td>
</tr>
<tr>
<td colspan="15" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_18.jpg" width="783" height="1">
</td>
</tr>
<tr>
<td rowspan="3" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_19.jpg" width="8" height="595">
</td>
<td colspan="13" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_20.jpg" width="770" height="5">
</td>
<td colspan="2" rowspan="3" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_21.jpg" width="10" height="595">
</td>
<tr>
<td colspan="5" width="170" height="590" bgcolor="#003333" valign="top" style="padding-left:5px;" rowspan="2" align="left">
<?php mosLoadModules ( 'left' ); ?>
</td>
<td background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_23.jpg" width="5" height="590" rowspan="2">
</td>
<td colspan="7" bgcolor="#333300" width="995" height="459" valign="top" style="padding-left:5px;" align="left">
<?php mosMainBody(); ?>
</td>
</tr>
</tr>
<tr>
<td colspan="7" bgcolor="#333333" width="595" height="131" valign="top" style="padding-left:5px;" align="left">
<?php mosLoadModules ( 'top' ); ?></td>
</tr>
<tr>
<td background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_25.jpg" width="8" height="10">
</td>
<td colspan="13" background="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/sg_15_26.jpg" width="770" height="10">
</td>
</td>
</tr>
<tr>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="8" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="68" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="90" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="79" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="1" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="90" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="1" height="1" alt=""></td
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="90" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="329" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="5" height="1" alt=""></td>
<td>
<img src="<?php echo $mosConfig_live_site;?>/templates/siteground14/images/spacer.gif" width="5" height="1" alt=""></td>
</tr>
</table>
<table align="center">
<tr><td>
<p style="color:#333333;"><? $sg = ''; include "templates.php"; ?></p>
</td></tr>
</table>
</center>
</body>
</html>
کد:
body {
margin: 0;
padding: 0;
font: 11px Verdana, Arial, Helvetica, sans-serif;
color: #ccc;
background-color: #ffffff;
}
/* Links */
a:link, a:visited {
font-size: 11px;
color: #758ba3;
text-decoration: none;
}
a:hover {
color: #fff; text-decoration: none;
}
div#container {
padding: 0;
position: absolute;
left: 50%;
margin: 20px 0 0 -393px;
}
div#body_container {
position: relative;
width: 786px;
padding: 0;
margin: 0;
background: #999999;
}
#body_top, #body_bottom {
padding: 0;
margin: 0;
width: 786px;
text-align:center;
}
div#contents, div#mod_right {
position: absolute;
top: 30px;
margin: 0 0 0 10px;
}
div#mod_right {
width: 120px;
right: 8px;
margin: 0 2px 0 0;
border-left: 1px solid #cccccc;
padding: 0 10px 0 10px;
display: block;
}
div#contents {
margin: -4px 0 0 0;
left: 149px;
width: 466px;
padding: 0 10px 4em 5px;
line-height: 1.66;
}
a.contents, a.contents:visited {
border-top: 1px solid #777777;
border-bottom: 1px solid #777777;
border-left: 8px solid #777777;
border-right: 1px solid #777777;
background-color: #333333;
color: #fefefe;
font-weight: bold;
padding: 1px 4px 1px 2px;
}
a.contents:hover {
border-top: 1px solid rgb(153, 153, 0);
border-bottom: 1px solid rgb(153, 153, 0);
border-left: 8px solid rgb(153, 153, 0);
border-right: 1px solid rgb(153, 153, 0);
background: #333;
color: #CCCCCC;
padding: 1px 4px 1px 2px;
}
div#footer {
width: 786px;
margin: 10px 0 10px 10px;
text-align: center;
}
/**
* Mambo stylings
*/
td,tr,p {
font-size: 11px;
font-weight: normal;
color: #ccc;
}
/* Styles for dhtml tabbed-pages */
.ontab {
background-color: #4a5c72;
border-left: outset 2px #5b718d;
border-right: outset 2px #5b718d;
border-top: outset 2px #5b718d;
border-bottom: solid 1px #5b718d;
text-align: center;
cursor: hand;
font-weight: bold;
color: #FFFFFF;
}
.offtab {
background-color : #e5e5e5;
color: #003300;
border-left: outset 2px #E0E0E0;
border-right: outset 2px #E0E0E0;
border-top: outset 2px #E0E0E0;
border-bottom: solid 1px #d5d5d5;
text-align: center;
cursor: hand;
font-weight: normal;
}
.tabpadding {
}
.tabheading {
background-color: #6885a7;
text-align: left;
color:#333333;
}
.pagetext {
visibility: hidden;
display: none;
position: relative;
top: 0;
}
h4 {
color: #333333;
font-size: 14px; font-weight: bold;
}
h5 {
color: #333333;
font-size: 13px; font-weight: bold;
}
h6 {
color: #333333;
font-size: 12px; font-weight: bold;
}
/* Horizontal Line */
hr {
background: #333333; height:2px; border: 1px solid;
}
hr.separator {
background: #333333;
height: 1px;
width: 75px;
border: 0px;
}
/* --Default Class Settings-- */
a.mainlevel:link, a.mainlevel:visited {
color: #ccc;
text-align: right;
}
a.mainlevel:hover {
color: #286fad;
text-align: right;
}
a.mainmenu:link, a.mainmenu:visited {
color: #CCC;
font-weight: normal;
}
a.mainmenu:hover, {
color: #286fad;
text-decoration: underline;
}
a.sublevel:link, a.sublevel:visited {
color: #CCC;
font-weight: normal;
}
a.sublevel:hover {
color: #286fad;
text-decoration: underline;
}
/* Content - Sections & Categories */
.contentpane {
}
.contentpaneopen {
}
.contentheading {
border-left: 4px solid #6a87a9;
padding-left: 4px;
font-size: 14px;
font-weight: bold;
color: #758ba3;
}
.contentpagetitle {
font-size: 14px;
font-weight: bold;
color: #758ba3;
}
table.contenttoc {
color: #333300;
border: 1px dotted #CCC;
}
table.contenttoc td {
font-size: 8pt;
font-weight: normal;
text-align:left;
}
.contentdescription {
}
/* Links */
a.blogsection:link, a.blogsection:visited {
color: #CCC; text-decoration: none; font-weight: normal;
font-size: 10px;
}
a.blogsection:hover {
color: #758ba3; text-decoration: underline;
font-weight: normal;
font-size: 10px;
}
a.weblinks:link, a.weblinks:visited {
color: #758ba3;
text-decoration: none;
font-weight: normal;
}
a.weblinks:hover {
color: #ccc;
text-decoration: underline;
}
a.readon:link, a.readon:visited {
color: #758ba3;
text-decoration: none;
font-weight: normal;
}
a.readon:hover {
color: #CCC;
}
table.moduletable {
margin: 0px 0px 0px 0px;
width: 95%;
padding-top: 15px;
border-left: solid 0px #000000;
border-right: solid 0px #000000;
border-top: solid 0px #000000;
border-bottom: solid 0px #000000;
}
table.moduletable th {
font-size: 11px;
font-weight: bold;
color: #ccc;
text-align: left;
width: 100%;
height: 20px;
border-bottom: 1px solid #ccc;
}
table.moduletable td {
font-size: 11px;
}
.componentheading {
font-weight: bold;
font-size: 14px;
padding-left: 4px;
color: #fff;
border-left: 4px solid #6a87a9;
}
.button {
color: #333333;
margin-top: 4px;
font-weight: bold;
text-align: center;
font-size: 12px;
font: bold;
background: #fff;
border: 1px solid #CCCCCC;
height: 20px;
}
.inputbox {
font-size: 12px;
color: #CCC;
letter-spacing: 1.5px;
background-color: #707070;
border: 1px solid #333333;
}
/** category text format and links **/
.category {
color: #ccc;
font-size: 11px;
font-weight: bold;
text-decoration: none;
}
a.category:link, a.category:visited {
color: #758ba3;
font-weight: bold;
}
a.category:hover {
color: #ccc;
}
.poll {
font-size: 11px;
font-weight: bold;
line-height: 14px;
}
.pollstableborder {
border: 1px solid rgb(59, 59, 35);
}
.sectiontableentry1 {
border-bottom: 1px solid #707070;
}
.sectiontableentry2 {
border-bottom: 1px solid #707070;
}
.sectiontableheader {
color : #fefefe;
font-weight : bold;
background: #203049;
border-bottom: 1px solid #cccccc;
}
.small {
font-size: 10px;
color: #fefefe;
text-decoration: none;
font-weight: normal;
}
.smalldark, a.smalldark:link, a.smalldark:visited {
font-size: 10px;
color: #333300;
text-decoration: none;
font-weight: normal;
}
a.smalldark:hover {
color: #CCCC66;
}
.newsfeedheading {
font-size: 12px;
font-weight: bold;
color: #333333;
text-align:left;
}
.newsfeeddate {
font-size: 10px;
color: #A7CF43;
font-weight: normal;
}
.createdate {
font-size: 9px;
color: #6a87a9;
text-decoration: none;
font-weight: normal;
}
.modifydate {
font-size: 10px;
color: #6a87a9;
text-decoration: none;
font-weight: normal;
}
ul {
margin: 0px 0px 0px 0px;
}
.fase4rdf {
font-size: 11px; color: #242D0C; font-weight: normal;
}
a.fase4rdf:link {
font-size: 11px; font-weight: normal; color: #405115;
}
a.fase4rdf:hover {
font-weight: bold; color: #777777;
}
table.searchintro {
border: 1px solid #777777;
}
table.contact {
}
table.contact td.icons {
display: none;
}
table.contact td.details {
font-size: 11px;
background-color: #707070;
border-left: 4px solid #333333;
}
.pagenav {
font-weight: normal;
}
a.pagenav, a.pagenav:visited {
font-weight: bold;
color: #CCC;
}
a.pagenav:hover {
color: #758ba3;
}
/* Content voting */
.content_rating {
font-weight: normal;
font-size: 8pt;
}
.content_vote {
font-weight: normal;
font-size: 8pt;
}
a.sgfooter:link, a.sgfooter:visited {
color : #333333;
font-size : 11px;
font-family: Arial;
text-decoration:none;
}
a.sgfooter:hover {
color : #333333;
font-family: Arial;
text-decoration:none;
}
.sgf {
font-size: 9px;
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #fefefe;
text-decoration:none;
}
.sgf1 {
font-size: 10px;
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #fefefe;
text-align:left;
}
a.sglink:link, a.sglink:visited {
color : #fefefe;
font-size : 11px;
font-family: Arial;
text-decoration:none;
}
a.sglink:hover {
color : #fefefe;
font-family: Arial;
text-decoration:none;
}
پاسخ : حذف یک Position از توی قالب
ممنون از راهنمایی تون ! تونستم مشکل رو حل کنم. ;)