tahere67

حذف باکس خالی در صفحه اصلی

13 پست در این موضوع

صفحه اصلی قالب سایتم یه باکس خالی افتاده .. هیچ مطلبی توی صفحه اصلی نیست اما این باکس هست.

کد این باکس رو توی سی اس اس پیدا کردم.. به border داره که اگه این رو صفر بذارم این باکس میره.. اما مشکلی که هست اینه که با صفر کردن حاشیه، حاشیه متون صفحات دیگه که به این css ربط دارند، هم از بین میره ..

چی کار کنم که باکس خالی صفحه اصلی حذف بشه. سرچ کردم. چند تا کد بود برای شرطی کردن. اما نمیدونم چطور استفاده کنم؟؟؟؟

#inner_content .sp-inner {border:1px solid #2a2a2e;}

Share this post


Link to post
Share on other sites
آموزش ووکامرس قالب جوملا قالب وردپرس قالب رایگان وردپرس قالب رایگان جوملا هاست نامحدود هاست جوملا هاست لاراول هاست وردپرس هاست ارزان هاست ربات تلگرام خرید دامنه آموزش ساخت ربات تلگرام با php آموزش html و css آموزش لاراول آموزش cPanel آموزش php آموزش سئو وردپرس آموزش امنیت وردپرس آموزش وردپرس آموزش فرم ساز RSform آموزش سئو جوملا آموزش فروشگاه ساز Hikashop آموزش فروشگاه ساز ویرچومارت آموزش طراحی سایت آگهی تبلیغاتی آموزش امنیت جوملا آموزش طراحی سایت فروش فایل آموزش طراحی قالب ریسپانسیو با Helix آموزش جوملا 3 آموزش ساخت ربات دکمه ی شیشه ای آموزش ساخت ربات همکاری در فروش آموزش ساخت ربات جذب ممبر آموزش ساخت ربات ضد اسپم آموزش ساخت ربات پیوست فایل سورس ربات مدیر گروه | ربات مدیر گروه همسریابی

اون قسمت مربوط به قسمت کامپوننتها هستش باید شرطی کنید که اگر در اون موقعیت کامپوننت بود نشون بده نبود هم نشون نده

انجمن باید کدش باشه قبلا دیده بودم جستجو کنید داخل انجمن

Share this post


Link to post
Share on other sites

توی انجمن گفته بود که این کد رو پیدا کنید.

<jdoc:include type="component" />

و این قسمتو به جاش تعریف کنید.

<?php if (JRequest::getVar('view') != 'frontpage'): ?>

<div id="anything">

<jdoc:include type="component" />

</div>

<?php endif ?>

این باعث میشه کامپوننت توی صفحه اصلی نشون داده نشه

من این کارو هم انجام دادم. اما تغییری نکرد.

شاید من اشتباه کردم و این اصلا ربطی نداره..........!!!!!!!!!!!!!!!!!!!!!!!

Share this post


Link to post
Share on other sites

<?php if($this->countModules('Box1')) : ?>

<?php endif; ?>

این رو هم گفته اما نمی دونم چطور استفاده کنم؟////؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟/

Share this post


Link to post
Share on other sites

<?php if ($_SERVER['QUERY_STRING']==NULL) {?> style="display:none;"<?php }?>

کد بالا رو وقتی داخل تگ div مربوط به لودشدن مطالب گذاشتم باکس حذف شد. ولی هیچ کدوم از مطالب صفحه های دیگه رو نشون نمی ده.

کد بالا هم از انجمن پیدا کردم..

راه حل دیگه ای هست؟:bala:

Share this post


Link to post
Share on other sites

با این کد باید درست بشه

   <?php if (JRequest::getVar('view') != 'frontpage'): ?>
    <jdoc:include type="message" />
   <jdoc:include type="component" />

<?php endif ?>

Share this post


Link to post
Share on other sites

درست نشد....:auau:

این کد component.php قالبه:

-----------------------------------------------------------------*/

//no direct accees

defined ('_JEXEC') or die ('resticted aceess');

require_once(dirname(__FILE__).DS.'lib'.DS.'helix.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">

<head>

<?php

$helix->loadHead();

$helix->addCSS('template.css,joomla.css');

$helix->getStyle();

$helix->favicon('favicon.ico');

?>

</head>

<?php if (JRequest::getString('type')=='raw'):?>

<jdoc:include type="component" />

<?php else: ?>

<body class="contentpane">

<jdoc:include type="message" />

<jdoc:include type="component" />

</body>

</html>

<?php endif; ?>

این یکی هم کد index.php قالبه:

-----------------------------------------------------------------*/

//no direct accees

defined ('_JEXEC') or die ('resticted aceess');

require_once(dirname(__FILE__).'/lib/helix.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language;?>" >

<head>

<?php

$helix->loadHead();

$helix->addCSS('template.css,joomla.css,custom.css,modules.css,typography.css,css3.css');

if ($helix->isRTL()) $helix->addCSS('template_rtl.css');

$helix->getStyle();

?>

</head>

<?php $helix->addFeatures('ie6warn'); ?>

<body class="bg clearfix">

<?php $helix->addFeatures('toppanel'); ?>

<div class="clr"></div>

<div class="sp-wrap clearfix">

<div id="header" class="clearfix">

<table width="100%" border="0">

<tr>

<?php $helix->addModules("head") ?>

<?php $helix->addModules("date") ?>

</tr>

</table>

<?php $helix->addFeatures('logo,fontsizer') ?>

<?php $helix->addModules("search") ?>

</div>

<?php $helix->addFeatures('hornav') //Main navigation ?>

<?php $helix->addModules("breadcrumbs") //position breadcrumbs ?>

<?php $helix->addModules("slides") //position slides ?>

<?php $helix->addModules('user1, user2, user3, user4, user5, user6', 'sp_flat', 'sp-userpos', '', true); //positions user1-user6 ?>

<div class="clearfix" >

<?php $helix->loadLayout(); //mainbody ?>

</div>

<?php $helix->addModules('bottom1, bottom2, bottom3, bottom4, bottom5, bottom6', 'sp_flat', 'sp-bottom', '',true) //positions bottom1-bottom6 ?>

<div id="sp-footer" class="clearfix">

<?php $helix->addFeatures('helixlogo'); /*--- Helix logo ---*/?>

<div class="cp">

Aryanref.Com - Copyright @ 2012-2013 - All Rights Reserved

<!-- You need to purchase copyright removal license from http://www.joomshaper.com/pricing?tab=copyright in order to remove brand/www.joomshaper.com link. -->

</div>

<?php $helix->addFeatures('totop') ?>

<?php $helix->addModules("footer-nav") ?>

</div>

</div>

<?php $helix->addFeatures('analytics,jquery,ieonly'); /*--- analytics, jquery and ieonly features ---*/?>

<?php $helix->compress(); /* --- Compress CSS and JS files --- */ ?>

<?php $helix->getFonts() /*--- Standard and Google Fonts ---*/?>

<jdoc:include type="modules" name="debug" />

</body>

</html>

Share this post


Link to post
Share on other sites

درست نشد....:auau:

این کد component.php قالبه:

-----------------------------------------------------------------*/

//no direct accees

defined ('_JEXEC') or die ('resticted aceess');

require_once(dirname(__FILE__).DS.'lib'.DS.'helix.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">

<head>

<?php

$helix->loadHead();

$helix->addCSS('template.css,joomla.css');

$helix->getStyle();

$helix->favicon('favicon.ico');

?>

</head>

<?php if (JRequest::getString('type')=='raw'):?>

<jdoc:include type="component" />

<?php else: ?>

<body class="contentpane">

<jdoc:include type="message" />

<jdoc:include type="component" />

</body>

</html>

<?php endif; ?>

این یکی هم کد index.php قالبه:

-----------------------------------------------------------------*/

//no direct accees

defined ('_JEXEC') or die ('resticted aceess');

require_once(dirname(__FILE__).'/lib/helix.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language;?>" >

<head>

<?php

$helix->loadHead();

$helix->addCSS('template.css,joomla.css,custom.css,modules.css,typography.css,css3.css');

if ($helix->isRTL()) $helix->addCSS('template_rtl.css');

$helix->getStyle();

?>

</head>

<?php $helix->addFeatures('ie6warn'); ?>

<body class="bg clearfix">

<?php $helix->addFeatures('toppanel'); ?>

<div class="clr"></div>

<div class="sp-wrap clearfix">

<div id="header" class="clearfix">

<table width="100%" border="0">

<tr>

<?php $helix->addModules("head") ?>

<?php $helix->addModules("date") ?>

</tr>

</table>

<?php $helix->addFeatures('logo,fontsizer') ?>

<?php $helix->addModules("search") ?>

</div>

<?php $helix->addFeatures('hornav') //Main navigation ?>

<?php $helix->addModules("breadcrumbs") //position breadcrumbs ?>

<?php $helix->addModules("slides") //position slides ?>

<?php $helix->addModules('user1, user2, user3, user4, user5, user6', 'sp_flat', 'sp-userpos', '', true); //positions user1-user6 ?>

<div class="clearfix" >

<?php $helix->loadLayout(); //mainbody ?>

</div>

<?php $helix->addModules('bottom1, bottom2, bottom3, bottom4, bottom5, bottom6', 'sp_flat', 'sp-bottom', '',true) //positions bottom1-bottom6 ?>

<div id="sp-footer" class="clearfix">

<?php $helix->addFeatures('helixlogo'); /*--- Helix logo ---*/?>

<div class="cp">

Aryanref.Com - Copyright @ 2012-2013 - All Rights Reserved

<!-- You need to purchase copyright removal license from http://www.joomshaper.com/pricing?tab=copyright in order to remove brand/www.joomshaper.com link. -->

</div>

<?php $helix->addFeatures('totop') ?>

<?php $helix->addModules("footer-nav") ?>

</div>

</div>

<?php $helix->addFeatures('analytics,jquery,ieonly'); /*--- analytics, jquery and ieonly features ---*/?>

<?php $helix->compress(); /* --- Compress CSS and JS files --- */ ?>

<?php $helix->getFonts() /*--- Standard and Google Fonts ---*/?>

<jdoc:include type="modules" name="debug" />

</body>

</html>

Share this post


Link to post
Share on other sites

قالب شما از شرکت جوم شاپر هست انگار قالبهای این شرکت خودشون این امکان رو دارن شما به مدیریت قالبتون برید

اونجا در تب Advanced در قسمت پایین یه بخش هستش که میتونید انتخاب کنید در چه منوهایی موقعیت کامپوننت نمایش داده نشه

شما مثلا انتخاب کنید منوی صفحه اصلی این موقعیت غیر فعال باشه دیگه نیازی به دست کاری کدها نداره

Share this post


Link to post
Share on other sites

اوه.. بله توی همین تنظیمات خود قالب بود. حل شد. خیلی ممنونsmile22

Share this post


Link to post
Share on other sites

اون دستوری که دوستمون گفته بودن برای جوملا 1.5 بود برای جوملا 2.5 باید به این شکل بزاری

<?php
		$menu = & JSite::getMenu();
		if($menu->getActive() !== $menu->getDefault()) : 
	?>

Share this post


Link to post
Share on other sites

برای ارسال نظر یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید نظر ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در انجمن ما ثبت نام کنید. عضویت خیلی ساده است !


ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید


ورود به حساب کاربری