problema con mod welcome to index
problema con mod welcome to index
ragazzi ho installato la mod welcome to index
https://www.phpbb.com/customise/db/mod/ ... n_index_2/
su index.php compare la mod.. ma se vado su portal.php non mi compare.. e non riesco a farlo comparire
https://www.phpbb.com/customise/db/mod/ ... n_index_2/
su index.php compare la mod.. ma se vado su portal.php non mi compare.. e non riesco a farlo comparire
R: problema con mod welcome to index
Lo stesso codice che devi aggiungere in index.php lo aggiungi in portal.php
quello da aggiungere in index_body.html lo aggiungi in portal_body.html
Inviato dal mio GT-S5360 con Tapatalk 2
quello da aggiungere in index_body.html lo aggiungi in portal_body.html
Inviato dal mio GT-S5360 con Tapatalk 2
Re: problema con mod welcome to index
lo gia messo
codice da insererire
codice template portal_index_body.php
codice da insererire
Codice: Seleziona tutto
<!-- IF not S_IS_BOT -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_WELCOME_TO_MOD} {SITENAME}</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li>
<dl>
<dd style="padding:5px; text-align: center; border:none;">
<!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF -->
</dd>
<dd class="lastpost" style="padding:5px; width:40%;">
<p>{S_WELCOME}</p>
<span><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<br />{CURRENT_TIME}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><br /><br />{S_JOINED_DATE}<br />{MEMBER_FOR}<!-- ENDIF --></span>
</dd>
<dd class="lastpost" style="padding:5px; width:36%;"><span>{TOTAL_POSTS} • {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
<!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div></div>
<!-- ENDIF -->
Codice: Seleziona tutto
<!-- DEFINE $PORTALXL = 'index_forum' -->
<!-- INCLUDE overall_header.html -->
<!-- IF not S_IS_BOT -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_WELCOME_TO_MOD} {SITENAME}</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li>
<dl>
<dd style="padding:5px; text-align: center; border:none;">
<!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF -->
</dd>
<dd class="lastpost" style="padding:5px; width:40%;">
<p>{S_WELCOME}</p>
<span><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<br />{CURRENT_TIME}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><br /><br />{S_JOINED_DATE}<br />{MEMBER_FOR}<!-- ENDIF --></span>
</dd>
<dd class="lastpost" style="padding:5px; width:36%;"><span>{TOTAL_POSTS} • {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
<!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div></div>
<!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_WELCOME_TO_MOD} {SITENAME}</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li>
<dl>
<dd style="padding:5px; text-align: center; border:none;">
<!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF -->
</dd>
<dd class="lastpost" style="padding:5px; width:40%;">
<p>{S_WELCOME}</p>
<span><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<br />{CURRENT_TIME}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><br /><br />{S_JOINED_DATE}<br />{MEMBER_FOR}<!-- ENDIF --></span>
</dd>
<dd class="lastpost" style="padding:5px; width:36%;"><span>{TOTAL_POSTS} • {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
<!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div></div>
<!-- ENDIF -->
<!-- IF S_TOPIC_HOVER_PREVIEW_ENABLED -->
<!-- INCLUDE portal/portal_topic_hover_preview.html -->
<!-- ENDIF -->
<!-- Require basic Easy Widgets -->
<script type="text/javascript">
// <![CDATA[
$(function(){
$.fn.EasyWidgets({
behaviour : {
useCookies : true // Use cookies to store positions and states
},
cookies : {
expires : 365, // Cookie expiration time in days
closeName : 'portal_xl_index-close', // Cookie name for close Widgets
disableName : 'portal_xl_index-disable', // Cookie name for enable/disable Widgets
positionName : 'portal_xl_index-position', // Cookie name for positined Widgets
collapseName : 'portal_xl_index-collapse' // Cookie name for collapsed Widgets
},
selectors : {
container : 'div'
},
effects : {
effectDuration : 250,
widgetClose : 'fade',
widgetExtend : 'fade',
widgetCollapse : 'fade'
},
i18n : {
editText : '{L_WIDG_EDIT_TEXT}', // Widget edit link text
// closeText : '{L_WIDG_CLOSE_TEXT}', // Widget close link text
// extendText : '{L_WIDG_EXTENT_TEXT}', // Widget extend link text
// collapseText : '{L_WIDG_COLLAPSE_TEXT}', // Widget collapse link text
cancelEditText : '{L_WIDG_CANCEL_TEXT}', // Widget cancel edit link text
editTitle : '{L_WIDG_EDIT}', // Widget edition link title
closeTitle : '{L_WIDG_CLOSE}', // Widget close link title
confirmMsg : '{L_WIDG_REMOVE}', // Widget confirmation dialog message
cancelEditTitle : '{L_WIDG_CANCEL}', // Widget cancel edit link title
extendTitle : '{L_WIDG_EXTENT}', // Widget extend link title
collapseTitle : '{L_WIDG_COLLAPSE}', // Widget collapse link title
collapseText : '<img src="{T_SUPER_TEMPLATE_PATH}/portal/src/images/collapse.png" alt="{L_WIDG_COLLAPSE_TEXT}" />',
extendText : '<img src="{T_SUPER_TEMPLATE_PATH}/portal/src/images/extend.png" alt="{L_WIDG_EXTENT_TEXT}" />',
closeText : '<img src="{T_SUPER_TEMPLATE_PATH}/portal/src/images/close.png" alt="{L_WIDG_CLOSE_TEXT}" />'
}
});
});
// ]]>
</script>
<!-- IF S_HAS_REPORTS or S_HAS_UNAPPROVED_POSTS -->
<div id="message" class="rules">
<div class="inner"><span class="corners-top"><span></span></span>
<strong>{L_INFORMATION}:</strong>
<!-- IF S_HAS_REPORTS --><a href="{U_MCP_REPORTS}">{L_REPORTS_TOTAL}</a><!-- ENDIF -->
<!-- IF S_HAS_REPORTS and S_HAS_UNAPPROVED_POSTS --> • <!-- ENDIF -->
<!-- IF S_HAS_UNAPPROVED_POSTS --><a href="{U_MCP_QUEUE}">{L_UNAPPROVED_TOTAL}</a><!-- ENDIF -->
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<div id="portal_container">
<!-- [+] top block area -->
<!-- IF PORTAL_INDEX_PAGE -->
<table width="100%" cellspacing="1">
<tr>
<td>
<!-- IF $PORTALXL_TOP_COLLUMN_PANEL == '1' -->
<!-- BEGIN top_block_files -->
<div class="widget-place" id="widget-place-{top_block_files.TOP_BLOCK_ID}-top">
<div class="widget collapsable removable closeconfirm" id="block-{top_block_files.TOP_BLOCK_ID}-top">
<div class="<!-- IF top_block_files.S_ROW_COUNT is even -->navbar<!-- ELSE -->panel bg2<!-- ENDIF -->">
<div class="inner">
<span class="corners-top"><span></span></span>
<div class="widget-header" align="{S_CONTENT_FLOW_BEGIN}">
<span style="color:{$PORTALXL_FONTCOLOUR-HEADER};"><a href="#" title="#{top_block_files.TOP_BLOCK_ID}">{top_block_files.TOP_BLOCKS_IMG}</a> {top_block_files.TOP_BLOCKS_ALIAS}</span>
</div>
<div class="widget-content" align="{S_CONTENT_FLOW_BEGIN}">
<!-- IF top_block_files.TOP_BLOCKS -->{top_block_files.TOP_BLOCKS}<!-- ENDIF -->
<!-- IF top_block_files.TOP_BLOCKS_CONTENT -->{top_block_files.TOP_BLOCKS_CONTENT}<!-- ENDIF -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
</div>
<!-- END top_block_files -->
<!-- ELSE -->
<!-- BEGIN top_block_files -->
<div class="widget-place" id="widget-place-{top_block_files.TOP_BLOCK_ID}-top">
<div class="widget collapsable removable closeconfirm" id="block-{top_block_files.TOP_BLOCK_ID}-top">
<div class="forabg">
<div class="inner"> <span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt style="width: {$PORTALXL_DD-DT-WIDTH};">
<div class="widget-header">
<a href="#" title="#{top_block_files.TOP_BLOCK_ID}">{top_block_files.TOP_BLOCKS_IMG}</a> <span style="color:{$PORTALXL_FONTCOLOUR-HEADER};">{top_block_files.TOP_BLOCKS_ALIAS}</span>
</div>
</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums widget-content">
<li class="<!-- IF $PORTALXL_LI-ROW == '1' -->row<!-- ENDIF -->">
<dl class="icon">
<dd style="width: {$PORTALXL_DD-DT-WIDTH};">
<!-- IF top_block_files.TOP_BLOCKS -->{top_block_files.TOP_BLOCKS}<!-- ENDIF -->
<!-- IF top_block_files.TOP_BLOCKS_CONTENT -->{top_block_files.TOP_BLOCKS_CONTENT}<!-- ENDIF -->
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span> </div>
</div>
</div>
</div>
<!-- END top_block_files -->
<!-- ENDIF -->
</td>
</tr>
</table>
<!-- [-] top block area -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<!-- IF SI_DISPLAY_INDEX_LEFT -->
<tr>
<!-- [+] left block area -->
<td width="{PORTAL_INDEX_LEFT_COLLUMN_WIDTH}" valign="top">
<!-- IF $PORTALXL_LEFT_COLLUMN_PANEL == '1' -->
<!-- BEGIN left_block_files -->
<div class="widget-place" id="widget-place-{left_block_files.LEFT_BLOCK_ID}-left">
<div class="widget collapsable removable closeconfirm" id="block-{left_block_files.LEFT_BLOCK_ID}-left">
<div class="<!-- IF left_block_files.S_ROW_COUNT is even -->navbar<!-- ELSE -->panel bg2<!-- ENDIF -->">
<div class="inner">
<span class="corners-top"><span></span></span>
<div class="widget-header" align="{S_CONTENT_FLOW_BEGIN}">
<span style="color:{$PORTALXL_FONTCOLOUR-HEADER};"><a href="#" title="#{left_block_files.LEFT_BLOCK_ID}">{left_block_files.LEFT_BLOCKS_IMG}</a> {left_block_files.LEFT_BLOCKS_ALIAS}</span>
</div>
<div class="widget-content" align="{S_CONTENT_FLOW_BEGIN}">
<!-- IF left_block_files.LEFT_BLOCKS-->{left_block_files.LEFT_BLOCKS}<!-- ENDIF -->
<!-- IF left_block_files.LEFT_BLOCKS_CONTENT -->{left_block_files.LEFT_BLOCKS_CONTENT}<!-- ENDIF -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
</div>
<!-- END left_block_files -->
<!-- ELSE -->
<!-- BEGIN left_block_files -->
<div class="widget-place" id="widget-place-{left_block_files.LEFT_BLOCK_ID}-left">
<div class="widget collapsable removable closeconfirm" id="block-{left_block_files.LEFT_BLOCK_ID}-left">
<div class="forabg">
<div class="inner"> <span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt style="width: {$PORTALXL_DD-DT-WIDTH};">
<div class="widget-header">
<a href="#" title="#{left_block_files.LEFT_BLOCK_ID}">{left_block_files.LEFT_BLOCKS_IMG}</a> <span style="color:{$PORTALXL_FONTCOLOUR-HEADER};">{left_block_files.LEFT_BLOCKS_ALIAS}</span>
</div>
</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums widget-content">
<li class="<!-- IF $PORTALXL_LI-ROW == '1' -->row<!-- ENDIF -->">
<dl class="icon">
<dd style="width: {$PORTALXL_DD-DT-WIDTH};">
<!-- IF left_block_files.LEFT_BLOCKS -->{left_block_files.LEFT_BLOCKS}<!-- ENDIF -->
<!-- IF left_block_files.LEFT_BLOCKS_CONTENT -->{left_block_files.LEFT_BLOCKS_CONTENT}<!-- ENDIF -->
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span> </div>
</div>
</div>
</div>
<!-- END left_block_files -->
<!-- ENDIF -->
</td>
<!-- [-] left block area -->
<td width="5"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="5" height="30" /></td>
<!-- ENDIF -->
<!-- [+] center block area -->
<td valign="top">
<!-- ENDIF -->
<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->
<!-- Start DM Music Charts -->
<!-- IF S_DM_MC_CHECK_FIRST and S_USER_LOGGED_IN-->
<div id="message" class="rules">
<div class="inner"><span class="corners-top"><span></span></span>
<strong>{L_INFORMATION}:</strong> {VOTE}
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->
<!-- IF S_DM_MC_CHECK_SECOND and S_USER_LOGGED_IN-->
<div id="message" class="rules">
<div class="inner"><span class="corners-top"><span></span></span>
<strong>{L_INFORMATION}:</strong> {REMINDER}
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->
<!-- End DM Music Charts -->
<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
<!-- IF S_DISPLAY_SEARCH -->
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_LOAD_UNREADS --> • <a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a><!-- ENDIF --><!-- IF S_USER_LOGGED_IN --> • <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> • <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a>
<!-- IF S_USER_LOGGED_IN --><br /><a href="{U_SEARCH_UNSOLVED_TOPICS}">{L_SEARCH_UNSOLVED}</a> • <a href="{U_SEARCH_YOUR_UNSOLVED_TOPICS}">{L_SEARCH_YOUR_UNSOLVED}</a></li><!-- ENDIF -->
<!-- ENDIF -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->
<!-- IF S_DISPLAY_SHOUTBOX and INDEX_SHOUT and INDEX_SHOUT_TOP -->
<!-- INCLUDE shout_body.html -->
<!-- ENDIF -->
<!-- IF $PORTALXL_CENTRE_INDEX_COLLUMN_PANEL == '1' -->
<!-- BEGIN center_block_files -->
<div class="widget-place" id="widget-place-{center_block_files.CENTER_BLOCK_ID}-centre">
<div class="widget collapsable removable closeconfirm" id="block-{center_block_files.CENTER_BLOCK_ID}-centre">
<div class="<!-- IF center_block_files.S_ROW_COUNT is even -->navbar<!-- ELSE -->panel bg2<!-- ENDIF -->">
<div class="inner">
<span class="corners-top"><span></span></span>
<div class="widget-header" align="{S_CONTENT_FLOW_BEGIN}">
<span style="color:{$PORTALXL_FONTCOLOUR-HEADER};"><a href="#" title="#{center_block_files.CENTER_BLOCK_ID}">{center_block_files.CENTER_BLOCKS_IMG}</a> {center_block_files.CENTER_BLOCKS_ALIAS}</span>
</div>
<div class="widget-content" align="{S_CONTENT_FLOW_BEGIN}">
<!-- IF center_block_files.CENTER_BLOCKS-->{center_block_files.CENTER_BLOCKS}<!-- ENDIF -->
<!-- IF center_block_files.CENTER_BLOCKS_CONTENT -->{center_block_files.CENTER_BLOCKS_CONTENT}<!-- ENDIF -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
</div>
<!-- END center_block_files -->
<!-- ELSE -->
<!-- BEGIN center_block_files -->
<div class="widget-place" id="widget-place-{center_block_files.CENTER_BLOCK_ID}-centre">
<div class="widget collapsable removable closeconfirm" id="block-{center_block_files.CENTER_BLOCK_ID}-centre">
<div class="forabg">
<div class="inner"> <span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt style="width: {$PORTALXL_DD-DT-WIDTH};">
<div class="widget-header">
<a href="#" title="#{center_block_files.CENTER_BLOCK_ID}">{center_block_files.CENTER_BLOCKS_IMG}</a> <span style="color:{$PORTALXL_FONTCOLOUR-HEADER};">{center_block_files.CENTER_BLOCKS_ALIAS}</span>
</div>
</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums widget-content">
<li class="<!-- IF $PORTALXL_LI-ROW == '1' -->row<!-- ENDIF -->">
<dl class="icon">
<dd style="width: {$PORTALXL_DD-DT-WIDTH};">
<!-- IF center_block_files.CENTER_BLOCKS-->{center_block_files.CENTER_BLOCKS}<!-- ENDIF -->
<!-- IF center_block_files.CENTER_BLOCKS_CONTENT -->{center_block_files.CENTER_BLOCKS_CONTENT}<!-- ENDIF -->
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span> </div>
</div>
</div>
</div>
<!-- END center_block_files -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_SHOUTBOX and INDEX_SHOUT and INDEX_SHOUT_AFTER -->
<!-- INCLUDE shout_body.html -->
<!-- ENDIF -->
<!-- IF S_CALENDAR_WEEK -->
<!-- INCLUDE calendar_week_on_index.html -->
<!-- ELSEIF S_CALENDAR_NEXT_EVENTS -->
<!-- INCLUDE calendar_next_events_on_index.html -->
<!-- ENDIF -->
<div class="navbar"> <span class="corners-top"><span></span></span>
<div align="center">
<table class="legend">
<tr>
<td width="20" align="center">{FORUM_UNREAD_IMG}</td>
<td><span class="gensmall">{L_UNREAD_POSTS}</span></td>
<td> </td>
<td width="20" align="center">{FORUM_IMG}</td>
<td><span class="gensmall">{L_NO_UNREAD_POSTS}</span></td>
<td> </td>
<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<span class="corners-bottom"><span></span></span> </div>
</div>
<!-- IF S_INDEXTABS -->
<!-- INCLUDE portal/portal_index_tabbed.html -->
<!-- ELSE -->
<!-- IF not PORTAL_INDEX_PAGE and not S_USER_LOGGED_IN and not S_IS_BOT -->
<div id="login-panel" style="display: <!-- IF not S_USER_LOGGED_IN -->block<!-- ELSE -->none<!-- ENDIF -->;">
<form method="post" action="{S_LOGIN_ACTION}" class="headerspace" style="margin-top: 0;">
<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED --> • <a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
<fieldset class="quick-login">
<label for="username">{L_USERNAME}:</label> <input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
<label for="password">{L_PASSWORD}:</label> <input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
<!-- IF S_AUTOLOGIN_ENABLED --> | <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label><!-- ENDIF -->
<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
{S_LOGIN_REDIRECT}
</fieldset>
</form>
</div>
<!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN and not S_IS_BOT and S_DISPLAY_DONATION_LIST -->
<h3>{L_LAST_DONORS}</h3>
<p>{LAST_DONORS}</p>
<!-- ENDIF -->
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
<h3>{L_BIRTHDAYS}</h3>
<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->
<!-- IF NEWEST_USER -->
<h3>{L_STATISTICS}</h3>
<p>{POSTS_PER_DAY} • {TOTAL_POSTS} • {TOTAL_TOPICS} <!-- IF TOTAL_IMAGES --> • {TOTAL_IMAGES}<!-- ENDIF --> • {TOTAL_USERS} • {NEWEST_USER}</p>
<!-- ENDIF -->
<!-- IF S_VIDEO_EXIST -->
<h3>{L_DMV_MOST_SEEN_VIDEOS}</h3>
<p>{NUMBER_VIDEOS}<br/><!-- BEGIN videoline --><!-- IF not videoline.S_FIRST_ROW --> • <!-- ENDIF --> {videoline.TITEL} ({videoline.VIDEO_COUNTER}) <!-- END videoline --></p>
<!-- ENDIF -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}<br />{ONLINE_BOTLIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><br /><br /><!-- ENDIF -->
<!-- IF PORTAL_INDEX_PAGE -->{TOTAL_USERS_LASTVISIT}<br /> {LASTVISIT_USER_LIST}<!-- ENDIF --></p>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF PORTAL_INDEX_PAGE -->
</td>
<!-- [-] center block area -->
<!-- IF SI_DISPLAY_INDEX_RIGHT -->
<td width="5"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="5" height="30" /></td>
<!-- [+] right block area -->
<td width="{PORTAL_INDEX_RIGHT_COLLUMN_WIDTH}" valign="top">
<!-- IF $PORTALXL_RIGHT_COLLUMN_PANEL == '1' -->
<!-- BEGIN right_block_files -->
<div class="widget-place" id="widget-place-{right_block_files.RIGHT_BLOCK_ID}-right">
<div class="widget collapsable removable closeconfirm" id="block-{right_block_files.RIGHT_BLOCK_ID}-right">
<div class="<!-- IF right_block_files.S_ROW_COUNT is even -->navbar<!-- ELSE -->panel bg2<!-- ENDIF -->">
<div class="inner">
<span class="corners-top"><span></span></span>
<div class="widget-header" align="{S_CONTENT_FLOW_BEGIN}">
<span style="color:{$PORTALXL_FONTCOLOUR-HEADER};"><a href="#" title="#{right_block_files.RIGHT_BLOCK_ID}">{right_block_files.RIGHT_BLOCKS_IMG}</a> {right_block_files.RIGHT_BLOCKS_ALIAS}</span>
</div>
<div class="widget-content" align="{S_CONTENT_FLOW_BEGIN}">
<!-- IF right_block_files.RIGHT_BLOCKS -->{right_block_files.RIGHT_BLOCKS}<!-- ENDIF -->
<!-- IF right_block_files.RIGHT_BLOCKS_CONTENT -->{right_block_files.RIGHT_BLOCKS_CONTENT}<!-- ENDIF -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
</div>
<!-- END right_block_files -->
<!-- ELSE -->
<!-- BEGIN right_block_files -->
<div class="widget-place" id="widget-place-{right_block_files.RIGHT_BLOCK_ID}-right">
<div class="widget collapsable removable closeconfirm" id="block-{right_block_files.RIGHT_BLOCK_ID}-right">
<div class="forabg">
<div class="inner"> <span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt style="width: {$PORTALXL_DD-DT-WIDTH};">
<div class="widget-header">
<a href="#" title="#{right_block_files.RIGHT_BLOCK_ID}">{right_block_files.RIGHT_BLOCKS_IMG}</a> <span style="color:{$PORTALXL_FONTCOLOUR-HEADER};">{right_block_files.RIGHT_BLOCKS_ALIAS}</span>
</div>
</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums widget-content">
<li class="<!-- IF $PORTALXL_LI-ROW == '1' -->row<!-- ENDIF -->">
<dl class="icon">
<dd style="width: {$PORTALXL_DD-DT-WIDTH};">
<!-- IF right_block_files.RIGHT_BLOCKS -->{right_block_files.RIGHT_BLOCKS}<!-- ENDIF -->
<!-- IF right_block_files.RIGHT_BLOCKS_CONTENT -->{right_block_files.RIGHT_BLOCKS_CONTENT}<!-- ENDIF -->
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span> </div>
</div>
</div>
</div>
<!-- END right_block_files -->
<!-- ENDIF -->
<!-- ENDIF -->
</td>
<!-- [-] right block area -->
</tr>
</table>
<!-- [+] bottom block area -->
<table width="100%" cellspacing="1">
<tr>
<td>
<!-- IF $PORTALXL_BOTTOM_COLLUMN_PANEL == '1' -->
<!-- BEGIN bottom_block_files -->
<div class="widget-place" id="widget-place-{bottom_block_files.BOTTOM_BLOCK_ID}-bottom">
<div class="widget collapsable removable closeconfirm" id="block-{bottom_block_files.BOTTOM_BLOCK_ID}-bottom">
<div class="<!-- IF bottom_block_files.S_ROW_COUNT is even -->navbar<!-- ELSE -->panel bg2<!-- ENDIF -->">
<div class="inner">
<span class="corners-top"><span></span></span>
<div class="widget-header" align="{S_CONTENT_FLOW_BEGIN}">
<span style="color:{$PORTALXL_FONTCOLOUR-HEADER};"><a href="#" title="#{bottom_block_files.BOTTOM_BLOCK_ID}">{bottom_block_files.BOTTOM_BLOCKS_IMG}</a> {bottom_block_files.BOTTOM_BLOCKS_ALIAS}</span>
</div>
<div class="widget-content" align="{S_CONTENT_FLOW_BEGIN}">
<!-- IF bottom_block_files.BOTTOM_BLOCKS-->{bottom_block_files.BOTTOM_BLOCKS}<!-- ENDIF -->
<!-- IF bottom_block_files.BOTTOM_BLOCKS_CONTENT -->{bottom_block_files.BOTTOM_BLOCKS_CONTENT}<!-- ENDIF -->
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
</div>
<!-- END bottom_block_files -->
<!-- ELSE -->
<!-- BEGIN bottom_block_files -->
<div class="widget-place" id="widget-place-{bottom_block_files.BOTTOM_BLOCK_ID}-bottom">
<div class="widget collapsable removable closeconfirm" id="block-{bottom_block_files.BOTTOM_BLOCK_ID}-bottom">
<div class="forabg">
<div class="inner"> <span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt style="width: {$PORTALXL_DD-DT-WIDTH};">
<div class="widget-header">
<a href="#" title="#{bottom_block_files.BOTTOM_BLOCK_ID}">{bottom_block_files.BOTTOM_BLOCKS_IMG}</a> <span style="color:{$PORTALXL_FONTCOLOUR-HEADER};">{bottom_block_files.BOTTOM_BLOCKS_ALIAS}</span>
</div>
</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums widget-content">
<li class="<!-- IF $PORTALXL_LI-ROW == '1' -->row<!-- ENDIF -->">
<dl class="icon">
<dd style="width: {$PORTALXL_DD-DT-WIDTH};">
<!-- IF bottom_block_files.BOTTOM_BLOCKS-->{bottom_block_files.BOTTOM_BLOCKS}<!-- ENDIF -->
<!-- IF bottom_block_files.BOTTOM_BLOCKS_CONTENT -->{bottom_block_files.BOTTOM_BLOCKS_CONTENT}<!-- ENDIF -->
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span> </div>
</div>
</div>
</div>
<!-- END bottom_block_files -->
<!-- ENDIF -->
</td>
</tr>
</table>
<!-- ENDIF -->
<!-- [-] bottom block area -->
<!-- IF S_DISPLAY_SHOUTBOX and INDEX_SHOUT and INDEX_SHOUT_END -->
<!-- INCLUDE shout_body.html -->
<!-- ENDIF -->
</div>
<!-- INCLUDE overall_footer.html -->
Re: problema con mod welcome to index
Lo stesso codice che devi aggiungere in index.php lo aggiungi in portal.php
Re: problema con mod welcome to index
è QUESTO il codice del porta.php
Codice: Seleziona tutto
<?php
/*
*
* @name portal.php
* @package phpBB3 Portal XL 5.0
* @version $Id: portal.php,v 1.2 2009/05/15 22:32:06 portalxl group Exp $
*
* @copyright (c) 2007, 2013 PortalXL Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
// Users and Bots on Seperate Lines 1.0.0
define('IN_FORUM_INDEX', true);
// Users and Bots on Seperate Lines 1.0.0
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/functions_calendar.' . $phpEx);
// IBPro Game Support
$autocom = request_var('autocom', '');
$act = request_var('act', '');
$do = request_var('do','');
if (strtolower($act) == 'arcade' && strtolower($do) == 'newscore')
{
require($phpbb_root_path . 'includes/arcade/scoretype/ibpro.'.$phpEx);
}
if (strtolower($autocom) == 'arcade')
{
require($phpbb_root_path . 'includes/arcade/scoretype/ibprov3.'.$phpEx);
}
//IBPro Game Support
/**
* initalise some global variables
*/
global $db, $auth, $user, $template, $SID, $_SID;
global $phpbb_root_path, $phpEx, $config, $portal_config;
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/portal_xl');
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> Zero dupe
if (!empty($phpbb_seo->seo_opt['url_rewrite'])) {
$phpbb_seo->seo_path['canonical'] = $phpbb_seo->drop_sid(append_sid("{$phpbb_root_path}portal.$phpEx"));
}
$seo_mark = request_var('mark', '');
$keep_mark = in_array($seo_mark, array('topics', 'topic', 'forums', 'all')) ? (boolean) ($user->data['is_registered'] || $config['load_anon_lastread']) : false;
$phpbb_seo->seo_opt['zero_dupe']['redir_def'] = array(
'hash' => array('val' => request_var('hash', ''), 'keep' => $keep_mark),
'mark' => array('val' => $seo_mark, 'keep' => $keep_mark),
);
if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
if ( !empty($phpbb_seo->seo_static['portal']) ) {
$phpbb_seo->set_cond( (boolean) (utf8_strpos($phpbb_seo->seo_path['uri'], $phpbb_seo->seo_static['portal']) === false), 'do_redir', (empty($_GET) || (!empty($seo_mark) && !$keep_mark)));
} else {
$phpbb_seo->set_cond( (boolean) (utf8_strpos($phpbb_seo->seo_path['uri'], "portal.$phpEx") !== false), 'do_redir', (empty($_GET) || (!empty($seo_mark) && !$keep_mark)));
}
}
$phpbb_seo->seo_chk_dupe();
// www.phpBB-SEO.com SEO TOOLKIT END -> Zero dupe
/**
* Automatic Update portal page views if counter block is disabled
*/
$sql = "SELECT block_name, block_disable
FROM " . PORTAL_BLOCK_TABLE ."
ORDER by block_id ASC";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
if (($row['block_name'] == 'digits_counter.html') & ($row['block_disable'] == 1))
{
$sql = "UPDATE " . PORTAL_CONFIG_TABLE . "
SET config_value = config_value + 1
WHERE config_name = 'portal_visit_counter'";
$db->sql_query($sql);
}
}
$db->sql_freeresult($result);
// Start Breizh Shoutbox
if (isset($config['shout_version']))
{
if ($config['shout_enable'] && $config['shout_index'])
{
shout_display();
}
}
$bd_shout = array();
$bd_shout[] = array(
'userid' => $row['user_id'],
'name' => $row['username'],
'colour' => $row['user_colour'],
'age' => ($now['year'] - $age),
'flag' => (isset($row['user_country_flag'])) ? $row['user_country_flag'] : false,
);
if (isset($config['shout_version']))
{
if (sizeof($bd_shout) && date('H') == $config['shout_birthday_hour'] && $config['shout_enable'])
{
foreach ($bd_shout as $pos => $shout)
{
birthday_robot_shout($shout['userid'], $shout['name'], $shout['colour'], $shout['age'], $shout['flag']);
}
}
}
// End Breizh Shoutbox
/*
* output the page
*/
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - META
$seo_meta->collect('description', $config['sitename'] . ' : ' . $config['site_desc']);
$seo_meta->collect('keywords', $config['sitename'] . ' ' . $seo_meta->meta['description']);
// www.phpBB-SEO.com SEO TOOLKIT END - META
// www.phpBB-SEO.com SEO TOOLKIT BEGIN - TITLE
// page_header($user->lang['PORTAL']);
// page_header($config['sitename'] . ' : ' . $user->lang['PORTAL']);
page_header($config['sitename'] . ' ~ ' . $config['site_desc'] . ' : ' . $user->lang['PORTAL']);
// www.phpBB-SEO.com SEO TOOLKIT END - TITLE
/*
* include here to load all availabe block modules
*/
if (defined('PORTAL')) {
include($phpbb_root_path . 'portal/includes/functions.'.$phpEx);
include($phpbb_root_path . 'portal/includes/portal_blocks.' . $phpEx);
include($phpbb_root_path . 'portal/includes/functions_blocks_portal.' . $phpEx);
}
/*
* switch template if dag'n drop is on/off
*/
if ($portal_config['portal_drag_drop'] == true)
{
$template->set_filenames(array(
'body' => 'portal/portal_main_draggable.html',
));
}
else
{
$template->set_filenames(array(
'body' => 'portal/portal_main.html',
));
}
$template->assign_vars(array(
'PORTAL' => defined('PORTAL') ? true : false,
'PORTAL_INDEX_PAGE' => ($portal_config['portal_index_layout']) ? true : false,
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
R: problema con mod welcome to index
Le stesse cose che dovevi aggiungere in index.php, le aggiungi in questo file
Inviato dal mio GT-S5360 con Tapatalk 2
Inviato dal mio GT-S5360 con Tapatalk 2
Re: problema con mod welcome to index
ne l index ci sono dei codice e in portal sono diversi..vi linko direttamente il file