- Home
- Categorie
- Coding e Sistemistica
- Gestione di Forum
- header.. switch <!-- BEGIN switch_user_logged_in--> non Lavora bene..
-
hai dimenticato qualcosa!! hai chiuso lo span, ma dopo mica l'hai riaperto!!
<!-- BEGIN switch_user_logged_in -->
<span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>
** </span>**
<!-- END switch_user_logged_in -->
** <span class="mainmenu">**
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a></span>
<!-- BEGIN switch_user_logged_out -->
<span class="mainmenu">
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> </span>
<!-- END switch_user_logged_out -->prova cosi'...altrimenti nn ho idea
in questi casi, un link x vedere live cosa succede è sempre ben accetto..postalo se puoi!
-
niente ho provato. sarebbe stato troppo semplice.
Purtrooppo live succede che.. Il Link Login non appare. Appare solo il link Registrati. Effettuato il login dalla pagina.. Non cè + nulla nell'intestazione del forum. Quando ci dovrebbe essere Profilo.. messaggi privati gruppi etc.. + il Link Logout.non so se ho reso lìidea...
grazie jgas.
-
@edo_flashas said:
niente ho provato. sarebbe stato troppo semplice.
Purtrooppo live succede che.. Il Link Login non appare. Appare solo il link Registrati. Effettuato il login dalla pagina.. Non cè + nulla nell'intestazione del forum. Quando ci dovrebbe essere Profilo.. messaggi privati gruppi etc.. + il Link Logout.non so se ho reso lìidea...
grazie jgas.
prova a mettere il link! magari hai qualke altra parte di codice che interferisce...se no posta completi l'overall header ed index_body..
te lo dico xke anke io sul mio sito ho inserito nuove voci nella barra in alto, e non ho avuto nessun problema!
-
ciao jgas. e grazie per l'attenzione. purtroppo non ho ancora ilforum online. il problema rimano quello descritto, nonostante aver settato gli switch facendo attenzione agli span. Quando entro nel forum Appare sempre Profilo messaggi privati login gruppi membri, nonostante Non ci si è autenticati. Provo a postare i file che mi hai suggerito, magari il tuo okkio vigile riesce a captare qualche inconveniente.
overall header
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META_TAG}
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/aallixSilver/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
<!--
/*
CSS settings for aallixSilver... aallix.com
NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*//* General page style. The scroll bar colours only visible in IE5.5+ */
body {
/*background-color: {T_BODY_BGCOLOR};scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; */
background: #43271B;
scrollbar-face-color: #6B4230;
scrollbar-highlight-color: #A56F57;
scrollbar-3dlight-color: #9B684D;
scrollbar-darkshadow-color: #5E3F2E;
scrollbar-shadow-color:;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color:;color: #000000;
margin: 0px;}
/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}/* This is the border line & background colour round the entire page */
.bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }/* This is the outline round the main forum tables */
.forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }/* Main table cell colours and backgrounds */
td.row1 { background-color: {T_TR_COLOR1}; }
td.row2 { background-color: {T_TR_COLOR2}; }
td.row3 { background-color: {T_TR_COLOR3}; }/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: {T_TD_COLOR2};
background-image: url(templates/aallixSilver/images/{T_TH_CLASS3});
background-repeat: repeat-y;
}/* Header cells - the blue and silver gradient backgrounds */
th {
color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
background-color: {T_BODY_LINK}; height: 25px;
background-image: url(templates/aallixSilver/images/{T_TH_CLASS2});
}td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(templates/aallixSilver/images/{T_TH_CLASS1});
background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; }/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }/* Forum category titles */
.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink { text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav { text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover { text-decoration: underline; }/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; }/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}/* Location, number of posts, post date etc */
.postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link { text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}/* Quote & Code blocks */
.code {
font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
background-color: {T_TD_COLOR1}; border: {T_FONTCOLOR1}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}.quote {
font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
background-color: {T_TD_COLOR1}; border: {T_FONTCOLOR1}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}/* Copyright and bottom info */
.copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;}
a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}/* Form elements */
input,textarea, select {
color : {T_BODY_TEXT};
font: normal {T_FONTSIZE2}px {T_FONTFACE1};
border-color : {T_BODY_TEXT};
}/* The text input fields background colour */
input.post, textarea.post, select {
background-color : {T_TD_COLOR2};
}input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : {T_TR_COLOR1};
color : {T_BODY_TEXT};
font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}/* The main submit button option */
input.mainoption {
background-color : {T_TD_COLOR1};
font-weight : bold;
}/* None-bold submit button */
input.liteoption {
background-color : {T_TD_COLOR1};
font-weight : normal;
}/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/aallixSilver/formIE.css");
-->/* The text input fields background colour */
input.post, textarea.post, select {
background-color : #D1D1D1;
}</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup --><script type="text/javascript">
function init() {
if (!document.getElementById) return
var imgOriginSrc;
var imgTemp = new Array();
var imgarr = document.getElementsByTagName('img');
for (var i = 0; i < imgarr.length; i++) {
if (imgarr*.getAttribute('hsrc')) {
imgTemp* = new Image();
imgTemp*.src = imgarr*.getAttribute('hsrc');
imgarr*.onmouseover = function() {
imgOriginSrc = this.getAttribute('src');
this.setAttribute('src',this.getAttribute('hsrc'))
}
imgarr*.onmouseout = function() {
this.setAttribute('src',imgOriginSrc)
}
}
}
}
onload=init;</script>
<STYLE TYPE="text/css">
<!--
#dek {POSITION:absolute;VISIBILITY:hidden;Z-INDEX:200;}
//-->
</STYLE><script language="JavaScript">
<!--
function hideLoadingPage() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'hidden';
}
else { // IE 4
document.all.hidepage.style.visibility = 'hidden';
}
}
}
// End -->
</script></head>
<!--
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" marginheight="0" leftmargin="0" topmargin="0"" />
<div id="hidepage" style="position: absolute; left:0px; top:0px; background-color: {T_BODY_BGCOLOR}; layer-background-color: {T_BODY_BGCOLOR}; height: 100%; width: 100%;"><table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<table width="50%" align="center" style="border: 1 {T_BODY_LINK} solid">
<tr>
<td align="center" class="row1"><span class="genmed"><br /><b>Page Loading... please wait!</b><p><img src="templates/aallixSilver/images/loading.gif"><p>The page still does not show? Click <a href="javascript:hideLoadingPage()">here</a><br /> </span></td>
</tr>
</table>
</td>
</tr>
</table></div>
--><a name="top"></a>
<table align="center" bgcolor="#ffffff" border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%" nowrap="nowrap"><span class="catHead"><span class="cattitle"><a href="{U_INDEX}">{L_INDEX}</a> :: <a href="viewtopic.php?t=4">Regolamento</a> :: <a href="{U_FAQ}">{L_FAQ}</a> :: <a href="{U_SEARCH}">{L_SEARCH}</a></span></span></td>
<td align="right" valign="middle" nowrap="nowrap" class="link"><a href="{U_FAQ}"></a></span></span></td>
</tr><tr> <td colspan="2" align="center" nowrap="nowrap" bgcolor="#FFFFE6" style="border-bottom:ridge 1px; border-bottom-color: #666666;border-top:ridge 1px; border-top-color:#663300"> <!-- BEGIN switch_user_logged_in -->
<span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>
**
**</span><!-- END switch_user_logged_in -->
<span class="mainmenu">
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a></span>
<!-- BEGIN switch_user_logged_out --><span class="mainmenu"> <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> </span> <!-- END switch_user_logged_out -->
</td>
</tr></tbody></table>
</td> </tr>
<tr>
<td valign="top" height="100%"><table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td height="100%">
-
index_body
index_body
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall"><!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in --><a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr></table><table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"><tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"><span class="forumtitle"> {L_FORUM} </span></th>
<th class="thTop" nowrap="nowrap"><span class="forumtitle"> {L_TOPICS} </span></th> <th class="thTop" nowrap="nowrap"><span class="forumtitle"> {L_POSTS} </span></th> <th class="thTop" nowrap="nowrap"><span class="forumtitle"> {L_LASTPOST} </span></th> <th class="thCornerR" nowrap="nowrap"><span class="forumtitle"> Moderator </span></th></tr>
<!-- BEGIN catrow -->
<tr>
<!-- MOD: Reduce Categories v1.1.0 -->
<td class="catLeft" colspan="2" height="28"><span class="cattitle">{catrow.CAT_REDUCED_IMG} <a href="{catrow.U_CAT_REDUCED}" class="cattitle">{catrow.CAT_DESC}</a></span></td> <!-- MOD: -END- -->
<td class="rowpic" style="background-color:#FFFFFF" colspan="4" align="right"> </td> </tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td><td class="row1" width="100%" height="50" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><span class="forumlink">
<a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
<span class="genmed">{catrow.forumrow.FORUM_DESC}<br /></span></td><td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"><span class="gensmall"><!--<a href="{catrow.forumrow.U_LAST_TOPIC}">{catrow.forumrow.LAST_TOPIC}</a><br />-->{catrow.forumrow.LAST_POST}</span></td>
<td class="row2" align="center" valign="middle" height="50" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='staff.php'"><span class="gensmall">{catrow.forumrow.MODERATORS}</span></td></tr>
<!-- END forumrow -->
</tbody>
<!-- END catrow -->
</table><table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"><tr>
<td class="catLeft" height="28" align="left" width="50%"><span class="cattitle">{catrow.CAT_TYPE}<a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td> <td class="catLeft" height="28" align="right" width="50%"><span class="cattitle">{catrow.CAT_TYPE}<a class="cattitle">Statistics</a></span></td>
</tr>
<tr>
<td class="row1" align="left" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{U_VIEWONLINE}'"><span class="gensmall">{RECORD_USERS}<br />{TOTAL_USERS_ONLINE}</span></td>
<td class="row1" align="right" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span></td> </tr>
<tr><td class="row1" colspan="2" align="left" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{U_VIEWONLINE}'"><span class="gensmall">{LOGGED_IN_USER_LIST}</span></td></tr>
</table><!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" maxlength="32" />
<!-- BEGIN switch_allow_autologin -->
{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<!-- END switch_allow_autologin -->
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
-
prima di tutto voglio capire: ma con questo codice ke hai inserito, il forum funziona e tu vuoi modificare le voci da vedere da loggato o meno?
se si,allora, devi lavorare su questa parte di codice, ke è quella originale.
<!-- BEGIN switch_user_logged_in --> <span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> ** **</span> <!-- END switch_user_logged_in --> <span class="mainmenu"> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/aallixSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a></span> <!-- BEGIN switch_user_logged_out --><span class="mainmenu"> <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a> </span> <!-- END switch_user_logged_out --> ```prima capiamo come funziona: inizialmente c'è <!-- BEGIN switch_user_logged_in --> poi il tag <span> poi il codice html poi <!-- END switch_user_logged_in --> ora c'è una parte di codice visibile sia loggati che non. infine stesso procedimento di prima x i logged out. ora fai una prova, inserendo: <!-- BEGIN switch_user_logged_in --> prova prova <!-- END switch_user_logged_in --> e vedi se intanto funziona, e si vede la scritta "prova prova" solo se sei loggato. se si (e dovrebbe farlo), puoi ragionare come scritto prima! <!-- BEGIN switch_user_logged_in --> <span> testo </span> <!-- END switch_user_logged_in --> (stessa cosa x logged out) dimmi se ti sono stato utile ;)
-
grazie jgas, ma non è come lo impostato io?
Faro' delle prove con testi "prova prova" ma
ti spiego. Senza apportare modifiche con gli switch Logged in e lasciando solo lo switch Logged outho inizialmente queste voci
Lista utenti Gruppi Profilo Messaggi privati Log in Registrati
Effettuato i llogin la voce Registrati scompare e si trasforma con
Lista utenti Gruppi Profilo Messaggi privati **Log Out (Utente)
**Mentre apportando le modifiche per quale abbiamo discusso L'intestazione voci diventa cosi all'accesso al forum
Registrati Login. DOpo aver effettuato il login scompare tutto e non appare + nulla.
-
secondo me devi fare un passo alla volta.
parti dal file originale, che funziona, e provi a modificare una voce alla volta, ricordandoti sempre di aprire e chiudere lo span e il begin_swich..
-
purtroppo è quello che non riesco a fare. xchè il PhpBB che sto usando non ha un file originale con gli switch Logged In bensi switch Logged out
-
beh anke sul template originale ci sono sia i logged in che i logged out...
se no prova a guardare dentro al subsilver..magari capisci dove sta il problema
-
no nel subsilver. NOn cè quello switch..:x come fo'. qualcuno mi disse che sarebbe stata necessaria una mods. Ho controllato un po nelle funzioni eincludes che dovrebbero generare lo switch logged in.. e infatti la funzione esiste li. Ma non lavora..:)