2 domande (per non aprire troppi post e sperando di non fare un doppione!)
A) il modulo login si può modificare e mettere orizzontale? Come agire per modificarlo?
Cerca cerca ho trovato mod_flex_login, sistemato alla meno peggio, ma quando mi loggo da errore.
404 - Componente non trovato
Non è possibile visualizzare questa pagina a causa di:
1. un bookmark/preferiti scaduto
2. una ricerca attraverso il motore di ricerca che ha una lista scaduta per questo sito
3. un indirizzo compilato male
4. Non hai accesso a questa pagina
5. La risorsa richiesta non esiste
6. Si è verificato un errore durante l'esecuzione della tua richiesta.
Il codice del modulo lo ho trovato anche in altri forum, ma nessuno sa rispondermi...
<?php
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $mosConfig_frontend_login;
if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) {
return;
}
// url of current page that user will be returned to after login
if ($query_string = mosGetParam( $_SERVER, 'QUERY_STRING', '' )) {
$return = 'index.php?' . $query_string;
} else {
$return = 'index.php';
}
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$message_login = $params->def( 'login_message', 0 );
$message_logout = $params->def( 'logout_message', 0 );
$login = $params->def( 'login', $return );
$logout = $params->def( 'logout', $return );
$name = $params->def( 'name', 1 );
$greeting = $params->def( 'greeting', 1 );
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$name = $my->name;
} else {
$name = $my->username;
}
?>
<table border="0" align="left" cellpadding="0" cellspacing="6">
<tr>
<td><form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="logout">
<?php
if ( $greeting ) {
echo _HI;
echo $name;
}
?>
<input type="submit" name="Submit" class="button" value="<?php echo _BUTTON_LOGOUT; ?>" />
<input type="hidden" name="option2" value="logout" />
<input type="hidden" name="op22" value="logout" />
<input type="hidden" name="lang2" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return2" value="<?php echo htmlspecialchars( sefRelToAbs( $logout ) ); ?>" />
<input type="hidden" name="message2" value="<?php echo htmlspecialchars( $message_logout ); ?>" />
</td>
</tr>
</form>
</table>
<?php // Login output // ie HTML when not logged in and trying to login // used for spoof hardening
} else { $validate = josSpoofValue(1); ?>
<form action="<?php echo sefRelToAbs( 'index.php' ); ?>" method="post" name="login" >
<!-- <?php
echo $pretext;
?>-->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="6">
<tr>
<td><label for="mod_login_username"><?php echo _USERNAME; ?></label> <label for="mod_login_remember"></label>
<label for="label"></label></td>
<td> <input name="username" id="username2" type="text" class="inputbox" alt="username" size="10" /></td>
<td> <label for="label2"><?php echo _PASSWORD; ?></label> </td>
<td><input type="password" id="passwd" name="passwd" class="inputbox" size="10" alt="password" /></td>
<td><input type="submit" name="Submit2" class="button" value="<?php echo _BUTTON_LOGIN; ?>" />
<label for="remember"></label></td>
<td> <input type="checkbox" name="remember" id="remember" class="inputbox" value="yes" alt="Remember Me" />
<label for="remember"> </label></td>
<td><?php echo _REMEMBER_ME; ?></td>
<td> - <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>"><?php echo _LOST_PASSWORD; ?></a></td>
<td> - <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>"><?php echo _CREATE_ACCOUNT; ?></a>
<label for="mod_login_remember"></label></td>
</tr> </table>
<?php
if ( $registration_enabled ) {
?>
<?php
}
?>
<!-- <?php
echo $posttext;
?> -->
<input type="hidden" name="option" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
<input type="hidden" name="return" value="<?php echo htmlspecialchars( sefRelToAbs( $login ) ); ?>" />
<input type="hidden" name="message" value="<?php echo htmlspecialchars( $message_login ); ?>" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="<?php echo $validate; ?>" value="1" />
</form>
<?php } ?>
B) Se creo un blocco di codice CSS molto lungo, è possibile creare un file CSS dedicato?
Per il template milkyway c'è template.css e blue.css e altri, se creo un css dedicato al menù come lo richiamo?
Primo post, spero di non esagerare e di aver indovinato il 3d corretto!
CIAUZ!