PDA

Zobacz pełną wersję : Brak treści modułów menu



afan
31-10-2010, 12:40
Witam. Mam taki problem (znowu), że w modułach na stronie nie widać żadnych treści. W Panelu Admina jak wybieram jakieś menu to widać wszystkie odnośniki itp. ale na stronie nic nie widnieje prócz nazwy menu (np. Menu witryny bądź Menu użytkownika). Problem się pojawił gdy próbowałem ustawić własny favicon. Nie wiem co mogło pójść źle bo nic innego jak kopiowanie i usuwanie pliku favicon.ico nic nie zmieniałem.

Adres strony to: http://ft-fans.pl/ Widać tu dokładnie jak to wygląda. Dodam jeszcze zdjęcia jak to widać, jeżeli ktoś nie chce zaglądać na tą stronę
3194 3195

Na 1. obrazku widać widok menu, natomiast na obrazku 2. jest widok Menu użytkownika z poziomu admina.

Prosiłbym o pomoc jak to naprawić bo nie chcę przeinstalowywać całej strony

zwiastun
31-10-2010, 13:01
Ani na podstawie obrazka, ani na podstawie wizyty na stronie nie sposób Ci powiedzieć, dlaczego tak jest. Musiałeś mocno namieszać w ustawieniach modułów.

EkleErs
31-10-2010, 13:04
Pokaż co masz w index.php templatki

a_m
31-10-2010, 13:05
w ustawieniach modułu jaki masz poziom główny ? / screen z ustawień by się przydał

afan
31-10-2010, 15:27
w żadnych plikach nic nie robiłem... kopiowałem jedynie favicon.ico i tak nagle się stało.
Proszę oto wszystko z index.php. Nic tu nie tykałem:

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
define( 'path', dirname(__FILE__) );
?>
<!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>
<jdoc:include type="head" />
<?php
$menu_name = $this->params->get("menuName", "topmenu");
$menu_type = $this->params->get("menuType", "splitmenu");
require(path .DS."styleloader.php");
require(path .DS."utils.php");
?>
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18342222-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
</head>

<body id="page_bg">
<div id="pillmenu">
<?php if($mtype != "module") :
echo $mainnav;
else: ?>
<jdoc:include type="modules" name="user3" />
<?php endif; ?>
</div>
<div class="clr"></div>
<div id="wrapper">
<div id="holder">
<div id="header">
<div class="clr"></div>
<div class="newsflash<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
<jdoc:include type="modules" style="rounded" name="top" />
</div>
<div class="clr"></div>
</div>
<div id="search"><jdoc:include type="modules" name="user4" /></div>

<div id="content">

<div class="cpathway"><jdoc:include type="module" name="breadcrumbs" /></div>

<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div class="content_m">
<div class="content_b">

<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div class="content_m_l">
<div class="content_b_l">

<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div class="content_m_r">
<div class="content_b_r">
<?php else: ?>
<div class="content_m_full">
<div class="content_b_full">
<?php endif; ?>

<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<br />
<?php $sg = 'banner'; include "templates.php"; ?>
<br />
</div>
<?php endif; ?>

<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>

<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>

</div>

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>

</div>
</div>
</div>
</div>

<div id="footer">
<div id="sgf">
<p>
<jdoc:include type="modules" name="debug" />
<?php $sg = ''; include "templates.php"; ?>
<a href="http://validator.w3.org/check/referer">valid xhtml</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">valid css</a>
</p>
</div>
</div>

</div>
<center><script TYPE="text/javascript" src="http://www.cpmprofit.com/ads.php?r=99074330ba4a018203c571a48851429a20413739 77958239&popup=0"></script></center>
<script type="text/javascript" src="http://ering.pl/toolbar/03d9a3796c8d9cbb6f70b67eead6d9b0.js"></script>
<script type="text/javascript" src="http://adhref.pl/d92ac9ff1a05dabf774696a06a0ff27330607a13.js" charset="utf-8"></script>
<script type="text/javascript"><!--
var adhref_ad_color = '#9FC54E';
var adhref_limit = 10;
var adhref_target_class = 'content';
--></script>
<script type="text/javascript" src="http://adhref.pl/d92ac9ff1a05dabf774696a06a0ff27330607a13.js" charset="utf-8"></script>
</body>
</html>

A skąd ten screen z ustawieniami modułów? Gdzie mogę znaleźć te ustawienia? Bo jakoś się nie orientuje gdzie mogą być te ustawienia

Robster
31-10-2010, 16:12
A skąd ten screen z ustawieniami modułów? Gdzie mogę znaleźć te ustawienia? Bo jakoś się nie orientuje gdzie mogą być te ustawienia

No nie kpij człowieku. Ja rozumiem, że można nie wiedzieć co się spaprało, przestawiając opcje bez opamiętania, ale wstawiać moduły i nie wiedzieć gdzie się to robiło? Za rączkę nikt Cię tutaj prowadzić nie będzie, bo od tego jest wiki.

EkleErs
31-10-2010, 16:39
Musialo cos byc grzebane w modules.php
chodzi o to ze nie ma/nie dziala [echo $module->content;] moze literowka
pokaz co masz w template/you template/html/modules.php
i w fumkcji modChrome_rounded w template/system/html/modules.php

afan
31-10-2010, 18:13
wątpię, żeby było coś z plikami w templatce bo tak mam na wszystkich szablonach. Ale oto plik, o który prosiłeś:

<?php
/**
* @version $Id: modules.php 6140 2007-01-02 03:44:18Z eddiea $
* @package Joomla
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

/**
* This is a file to add template specific chrome to module rendering. To use it you would
* set the style attribute for the given module(s) include in your template to use the style
* for each given modChrome function.
*
* eg. To render a module mod_test in the sliders style, you would use the following include:
* <jdoc:include type="module" name="test" style="slider" />
*
* This gives template designers ultimate control over how modules are rendered.
*
* NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE} and take the same
* two arguments.
*/

/*
* Module chrome for rendering the module in a slider
*/
function modChrome_slider($module, &$params, &$attribs)
{
jimport('joomla.html.pane');
// Initialize variables
$sliders = & JPane::getInstance('sliders');
$sliders->startPanel( JText::_( $module->title ), 'module' . $module->id );
echo $module->content;
$sliders->endPanel();
}
?>

Co do odpowiedzi Robster'a czy widzisz, że nie pisałem takiego czegoś jak: "nie wiem, gdzie dodaje się moduły". To wiem ale w modułach typu "Menu witryny" nie ma żadnych podanych parametrów (jeżeli o to chodzi) i jest tekst: "Dla tego modułu nie określa się parametrów.". Więc grzecznie zapytałem gdzie mogę znaleźć te ustawienia.

EkleErs
31-10-2010, 20:09
Chcialem function modChrome_rounded z template/system/html/modules.php

zwiastun
31-10-2010, 20:12
Tu działało
http://forum.joomla.pl/showthread.php?45272-problem-z-menu&p=198347&highlight=#post198347
A teraz nie działa.
Nie mów, że się zepsuło samo. Wróć do stanu, gdy działało albo odtwórz, co takiego robiłeś, albo powtórz wszystko do momentu, w którym było dobrze. Domyślanie się, co też takiego mogłeś zrobić to nawet nie szukanie igły w stogu siana.