Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : kwd2007 22 Feb 2007, 18:40:38
-
ragazzi qualcuno può aiutarmi per favore, mi è sparito il menu del l'admin...
http://www.kwd.it/admin.jpg
-
dice che è stato fornito un argomento invalido per ogni funzione a partire dalle righe...
devi postare le righe in questione, ma prima...cosa hai fatto per generare ciò?
e...per favore scrivi dei titoli coerenti e che aiutino gli utenti a trovare il tuo post la prox volta in quanto non ti è sparito l'admin, ci sei dentro, altrimenti come avresti catturato la foto?
il tuo problema è con qualche componente.
Cambia il titolo o verrai punito! :-\ :'( :-X
-
sinceramente non ricordo cosa ho fatto per generare ciò, ho semplicemente fatto l'installazione base di Joomla.
La seconda volta che mi sono loggato come admin, mi è sparito il menu dentro l'admin.
Tutto qua. Aspetta che ti posto le righe iun questione.
Grazie.
il link per il codice:http://www.kwd.it/cod.php
-
non si possono vedere le righe così, non dè à l'accesso, devi postarle nel forum o allegare un txt o il php stesso ::)
-
<?php
/**
* @version $Id: mod_components.php 310 2005-10-02 11:17:00Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html 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( '_VALID_MOS' ) or die( 'Restricted access' );
// cache some acl checks
$canConfig = $acl->acl_check( 'administration', 'config', 'users', $my->usertype );
$manageTemplates = $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_templates' );
$manageLanguages = $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_languages' );
$installModules = $acl->acl_check( 'administration', 'install', 'users', $my->usertype, 'modules', 'all' );
$editAllModules = $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'modules', 'all' );
$installComponents = $acl->acl_check( 'administration', 'install', 'users', $my->usertype, 'components', 'all' );
$editAllComponents = $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'all' );
$canMassMail = $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_massmail' );
$canManageUsers = $acl->acl_check( 'administration', 'manage', 'users', $my->usertype, 'components', 'com_users' );
$count = intval( $params->def( 'count', 10 ) );
$query = "SELECT *"
. "\n FROM #__components"
. "\n ORDER BY ordering, name"
;
$database->setQuery( $query );
$comps = $database->loadObjectList(); // component list
$subs = array(); // sub menus
// first pass to collect sub-menu items
foreach ($comps as $row) {
if ($row->parent) {
if (!array_key_exists( $row->parent, $subs )) {
$subs[$row->parent] = array();
} // if
$subs[$row->parent][] = $row;
} // if
} // foreach
?>
<table class="adminlist">
<tr>
<th class="title">
Componenti
</th>
</tr>
<tr>
<td>
<?php
if ( $task == 'listcomponents' ) {
$topLevelLimit = 10000;
} else {
$topLevelLimit = $count;
}
$i = 0;
$z = 0;
foreach ($comps as $row) {
if ( $editAllComponents | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', $row->option ) ) {
if ($row->parent == 0 && (trim( $row->admin_menu_link ) || array_key_exists( $row->id, $subs ))) {
if ($i >= $topLevelLimit) {
if ($i == $topLevelLimit) {
?>
<div>
<table width="100%" class="adminlist">
<tr>
<td align="center" style="text-align: center; font-weight: bold;">
<a href="index2.php?option=com_admin&task=listcomponents">Lista completa componenti[/url]
</td>
</tr>
</table>
</div>
<?php
$i = 1000;
} // if
} else {
?>
<table width="50%" class="adminlist" border="1">
<?php
if ($i < $topLevelLimit ) {
$i++;
$name = htmlspecialchars( $row->name, ENT_QUOTES );
// $alt = htmlspecialchars( $row->admin_menu_alt, ENT_QUOTES );
if ($row->admin_menu_link) {
?>
<tr>
<td>
<?php
echo '<a href="index2.php?'.htmlspecialchars($row->admin_menu_link,ENT_QUOTES).'"><strong>'.$name.'</strong>[/url]
';
?>
</td>
</tr>
<?php
} else {
?>
<tr>
<td>
<strong>
<?php echo $name; ?>
</strong>
</td>
</tr>
<?php
} // if else
if (array_key_exists( $row->id, $subs )) {
foreach ($subs[$row->id] as $sub) {//print_r($row);
?>
<tr>
<td>
<ul style="padding: 0px 0px 0px 20px; margin: 0px;">
<?php
$name = htmlspecialchars( $sub->name );
// $alt = htmlspecialchars( $sub->admin_menu_alt );
// $link = $sub->admin_menu_link ? "" : "null";
// $img = $sub->admin_menu_img ? "<img src=\"../includes/$sub->admin_menu_img\" />" : '';
if ($sub->admin_menu_link) {
?>
<li>
<?php echo '<a href="index2.php?'.htmlspecialchars($sub->admin_menu_link, ENT_QUOTES).'">'.$name.'[/url]
'; ?>
</li>
<?php
} else {
?>
<li>
<?php echo $name; ?>
</li>
<?php
} // if else
?>
</ul>
</td>
</tr>
<?php
} // foreach
} // if
} // if
?>
</table>
<?php
} // if else
} // if
} // if
$z++;
} // foreach
?>
</td>
</tr>
<tr>
<th>
</th>
</tr>
</table>
-
io propongo di tentare riprendendo il file dal pacchetto di installazione e di sovrascriverlo,
fai così, rinominalo ad esempio mod_component.php.old
poi copia dal pacchetto di installazione solo il file mod_component.php, fai attenzione alle cartelle che siano le stesse
p.s. dico di fare questa sostituzione in quanto mi pare di non aver letto nulla che faccia riferimento a dati esclusivi appartenenti al dominio in uso, ma solo riferimenti comuni