Box Login modifica
Inviato: 14/08/2008, 19:09
Dietro consiglio del Buon hsg26 ho usato una contributions per installare un box login.
Ho effettuate delle modifiche per adattarla al mio sito.
Però adesso ho un problema che non riesco a risolvere.
Vi allego l'immagine:

In pratica come potrete vedere anche voi dalla foto, presenta un box diviso in due parti. Il primo azzurrino/violetto ed il secondo bianco.
Io vorrei:
+ Eliminare il primo box azzurruno/violetto
+ Il box bianco far si che possa prendere come sfondo un'immagine e rendelo di poco più piccolo in altezza.
Ho provato a spulciare il codice, ma non ho trovato nulla.
Riporto anche il codice:
Mi aiutate ?
Grazie
Ho effettuate delle modifiche per adattarla al mio sito.
Però adesso ho un problema che non riesco a risolvere.
Vi allego l'immagine:

In pratica come potrete vedere anche voi dalla foto, presenta un box diviso in due parti. Il primo azzurrino/violetto ed il secondo bianco.
Io vorrei:
+ Eliminare il primo box azzurruno/violetto
+ Il box bianco far si che possa prendere come sfondo un'immagine e rendelo di poco più piccolo in altezza.
Ho provato a spulciare il codice, ma non ho trovato nulla.
Riporto anche il codice:
Codice: Seleziona tutto
<?php
// WebMakers.com Added: Do not show if on login or create account
if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) {
?>
<!-- loginbox //-->
<?php
if (!tep_session_is_registered('customer_id')){
?>
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_LOGINBOX_HEADING
);
new infoBoxHeading($info_box_contents, $newtheme, false, false);
$loginboxcontent = "
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr><td align=\"center\" class=\"main\">
" . tep_box_greeting_top() . "
</td></tr>
<form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\">
<td align=\"left\" class=\"main\">
" . BOX_LOGINBOX_EMAIL . "
</td>
</tr>
<tr>
<td align=\"left\" class=\"main\">
<input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\">
</td>
</tr>
<tr>
<td align=\"left\" class=\"main\">
" . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . "
</td>
</tr>
<tr>
<td align=\"left\" class=\"main\">
<input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\"
</td>
</tr>
<tr>
<td class=\"main\" align=\"center\">
" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "
</td>
</tr>
</form>
<tr>
<td align=\"center\" class=\"main\">
" . BOX_LOGINBOX_NEW . "
</td>
</tr>
</table>
";
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
'text' => $loginboxcontent
);
new infoBox($info_box_contents);
?>
</td>
</tr>
<?php
} else {
// If you want to display anything when the user IS logged in, put it
// in here... Possibly a "You are logged in as :" box or something.
}
?>
<!-- loginbox_eof //-->
<?php
// WebMakers.com Added: My Account Info Box
} else {
if (tep_session_is_registered('customer_id')) {
?>
<!-- my_account_info //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT
);
new infoBoxHeading($info_box_contents, $newtheme, false, false);
$loginboxcontent = "
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td align=\"center\" class=\"loginBoxGreeting\">
" . tep_box_greeting_top() . "
</td>
</tr>
<tr>
</table>
";
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
'text' =>
'<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>'
);
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- my_account_info_eof //-->
<?php
}
}
?>
Mi aiutate ?
Grazie