Retour à la documentation : mettre à jour son forum phpBB3
1 » Détail des modifications prosilver
2 » Détail des modifications subsilver2
1 » Détail des modifications Prosilver
Liste des fichiers à modifier :
- style.cfg
- imageset/imageset.cfg
- template/captcha_recaptcha.html
- template/editor.js
- template/forum_fn.js
- template/index_body.html
- template/login_body.html
- template/login_forum.html
- template/mcp_post.html
- template/overall_header.html
- template/quickreply_editor.html
- template/search_results.html
- template/template.cfg
- template/ucp_avatar_options.html
- template/ucp_pm_viewmessage_print.html
- template/ucp_register.html
- template/viewforum_body.html
- template/viewtopic_print.html
- theme/bidi.css
- theme/colours.css
- theme/forms.css
- theme/links.css
- theme/theme.cfg
Vous pouvez reporter directement les fichiers sur lesquels vous n'avez effectué aucune modification. Ce sont pour la plupart des templates car si vous avez modifié votre style, il y a de fortes chances que vous ayez touché au moins à colours.css et common.css...
Pour les fichiers suivants, il faudra parfois adapter le code à vos précédentes modifications.
N.B. Si certaines modifications vous semblent identiques au code d'origine, c'est parce qu'elles ne concernent que des espaces en trop - en fin de ligne - qui ont été retirés .
style.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 17)
- Code: Tout sélectionner
# # General Information about this style
Remplacez par- Code: Tout sélectionner
# # General Information about this style
- Cherchez (ligne 22)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
imageset/imageset.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2006 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2006 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 17)
- Code: Tout sélectionner
# # General Information about this style
Remplacez par- Code: Tout sélectionner
# # General Information about this style
- Cherchez (ligne 22)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
- Cherchez (autour de la ligne 26)
- Code: Tout sélectionner
img_poll_left = img_poll_center = img_poll_right = img_icon_friend = img_icon_foe =
Remplacez par- Code: Tout sélectionner
img_poll_left = img_poll_center = img_poll_right = img_icon_friend = img_icon_foe =
- Cherchez (ligne 114)
- Code: Tout sélectionner
img_icon_user_profile =
Remplacez par- Code: Tout sélectionner
img_icon_user_profile =
template/captcha_recaptcha.html
- Cherchez (ligne 18)
- Code: Tout sélectionner
lang : '{L_RECAPTCHA_LANG}',
Remplacez par- Code: Tout sélectionner
lang : '{LA_RECAPTCHA_LANG}',
template/editor.js
- Cherchez (autour de la ligne 326)
- Code: Tout sélectionner
txtarea.selectionStart = selEnd + open.length + close.length; txtarea.selectionEnd = txtarea.selectionStart;
Remplacez par- Code: Tout sélectionner
txtarea.selectionStart = selStart + open.length; txtarea.selectionEnd = selEnd + open.length;
template/forum_fn.js
- Cherchez (ligne 401)
- Code: Tout sélectionner
$('form input').live('keypress', function (e)
Remplacez par- Code: Tout sélectionner
jQuery('form input[type=text], form input[type=password]').live('keypress', function (e)
- Cherchez (ligne 403)
- Code: Tout sélectionner
var default_button = $(this).parents('form').find('input[type=submit].default-submit-action');
Remplacez par- Code: Tout sélectionner
var default_button = jQuery(this).parents('form').find('input[type=submit].default-submit-action');
- Cherchez (autour de la ligne 427)
- Code: Tout sélectionner
if (element.type == 'hidden') continue; // onkeydown is possible too element.onkeypress = function (evt) { submit_default_button((evt || window.event), this, 'default-submit-action'); };
Remplacez par- Code: Tout sélectionner
if (element.type == 'text' || element.type == 'password') { // onkeydown is possible too element.onkeypress = function (evt) { submit_default_button((evt || window.event), this, 'default-submit-action'); }; }
template/index_body.html
- Cherchez (autour de la ligne 24)
- Code: Tout sélectionner
| <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" /> </fieldset>
Dans la ligne, cherchez- Code: Tout sélectionner
<input type="submit" name="login" value="{L_LOGIN}" class="button2" /> </fieldset>
Remplacez par- Code: Tout sélectionner
<input type="submit" name="login" value="{L_LOGIN}" class="button2" /> {S_LOGIN_REDIRECT} </fieldset>
template/login_body.html
- Cherchez (autour de la ligne 36)
- Code: Tout sélectionner
<dt> </dt> <dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></dd> </dl> </fieldset>
Dans la ligne, cherchez- Code: Tout sélectionner
</dl> </fieldset>
Remplacez par- Code: Tout sélectionner
</dl> {S_LOGIN_REDIRECT} </fieldset>
template/login_forum.html
- Cherchez (autour de la ligne 24)
- Code: Tout sélectionner
<dt> </dt> <dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" id="login" class="button1" value="{L_LOGIN}" tabindex="2" /></dd> </dl> </fieldset>
Dans la ligne, cherchez- Code: Tout sélectionner
</dl> </fieldset>
Remplacez par- Code: Tout sélectionner
</dl> {S_LOGIN_REDIRECT} </fieldset>
template/mcp_post.html
- Cherchez (ligne 106)
- Code: Tout sélectionner
<div>{L_THIS_POST_IP}: <!-- IF U_WHOIS -->
Remplacez par- Code: Tout sélectionner
<div><!-- IF S_PM -->{L_THIS_PM_IP}<!-- ELSE -->{L_THIS_POST_IP}<!-- ENDIF -->: <!-- IF U_WHOIS -->
template/overall_header.html
- Cherchez (autour de la ligne 18)
- Code: Tout sélectionner
<!-- IF S_ENABLE_FEEDS --> <link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /> <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_TOPICS}" href="{U_FEED}?mode=topics" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF --> <!-- ENDIF -->
Remplacez par- Code: Tout sélectionner
<!-- IF S_ENABLE_FEEDS --> <!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF --> <!-- ENDIF -->
template/quickreply_editor.html
- Cherchez (autour de la ligne 24)
- Code: Tout sélectionner
<form method="post" action="{U_QR_ACTION}"> <div class="panel" id="qr_ns_editor_div"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <h2>{L_QUICKREPLY}</h2>
Remplacez par- Code: Tout sélectionner
<form method="post" action="{U_QR_ACTION}"> <div class="panel" id="qr_ns_editor_div"> <div class="inner"><span class="corners-top"><span></span></span> <h2>{L_QUICKREPLY}</h2>
- Cherchez (autour de la ligne 41)
- Code: Tout sélectionner
<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" /> <input type="submit" accesskey="f" tabindex="7" name="full_editor" value="{L_FULL_EDITOR}" class="button2" /> </fieldset> </div> <span class="corners-bottom"><span></span></span></div>
Remplacez par- Code: Tout sélectionner
<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" /> <input type="submit" accesskey="f" tabindex="7" name="full_editor" value="{L_FULL_EDITOR}" class="button2" /> </fieldset> <span class="corners-bottom"><span></span></span></div>
- Cherchez (autour de la ligne 49)
- Code: Tout sélectionner
<form method="post" action="{U_QR_ACTION}"> <div class="panel" style="display: none" id="qr_editor_div"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <h2>{L_QUICKREPLY}</h2>
Remplacez par- Code: Tout sélectionner
<form method="post" action="{U_QR_ACTION}"> <div class="panel" style="display: none" id="qr_editor_div"> <div class="inner"><span class="corners-top"><span></span></span> <h2>{L_QUICKREPLY}</h2>
- Cherchez (autour de la ligne 67)
- Code: Tout sélectionner
<input type="submit" accesskey="f" tabindex="6" name="full_editor" value="{L_FULL_EDITOR}" class="button2" /> </fieldset> <a href="" class="right-box up" onclick="hide_qr(false); return false;" title="{L_COLLAPSE_QR}">{L_COLLAPSE_QR}</a> </div> <span class="corners-bottom"><span></span></span></div>
Remplacez par- Code: Tout sélectionner
<input type="submit" accesskey="f" tabindex="6" name="full_editor" value="{L_FULL_EDITOR}" class="button2" /> </fieldset> <a href="" class="right-box up" onclick="hide_qr(false); return false;" title="{L_COLLAPSE_QR}">{L_COLLAPSE_QR}</a> <span class="corners-bottom"><span></span></span></div>
template/search_results.html
- Cherchez (autour de la ligne 138)
- Code: Tout sélectionner
<!-- IF NEXT_PAGE --><a href="{NEXT_PAGE}" class="right-box {S_CONTENT_FLOW_END}">{L_NEXT}</a><!-- ENDIF --> <!-- IF S_SELECT_SORT_DAYS or S_SELECT_SORT_KEY --> <label><!-- IF S_SHOW_TOPICS -->{L_DISPLAY_POSTS}<!-- ELSE -->{L_SORT_BY}</label><label><!-- ENDIF --> {S_SELECT_SORT_DAYS}<!-- IF S_SELECT_SORT_KEY --></label> <label>{S_SELECT_SORT_KEY}</label> <label>{S_SELECT_SORT_DIR} <!-- ELSE --></label><!-- ENDIF --><input type="submit" name="sort" value="{L_GO}" class="button2" /></label> <!-- ENDIF --> </fieldset>
Dans la ligne, cherchez- Code: Tout sélectionner
<label>{S_SELECT_SORT_DIR} <!-- ELSE --></label><!-- ENDIF --><input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
Remplacez par- Code: Tout sélectionner
<label>{S_SELECT_SORT_DIR}<!-- ENDIF --> <input type="submit" name="sort" value="{L_GO}" class="button2" /></label>
template/template.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2006 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2006 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 17)
- Code: Tout sélectionner
# # General Information about this template
Remplacez par- Code: Tout sélectionner
# # General Information about this template
- Cherchez (ligne 22)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
template/ucp_avatar_options.html
- Cherchez (autour de la ligne 35)
- Code: Tout sélectionner
<dl> <dt><label for="width">{L_LINK_REMOTE_SIZE}:</label><br /><span>{L_LINK_REMOTE_SIZE_EXPLAIN}</span></dt> <dd> <label for="width"><input type="text" name="width" id="width" size="3" value="{AVATAR_WIDTH}" class="inputbox autowidth" /> px</label> × <label for="height"><input type="text" name="height" id="height" size="3" value="{AVATAR_HEIGHT}" class="inputbox autowidth" /> px</label> </dd> </dl>
Dans la ligne, cherchez- Code: Tout sélectionner
<label for="width"><input type="text" name="width" id="width" size="3" value="{AVATAR_WIDTH}" class="inputbox autowidth" /> px</label> × <label for="height"><input type="text" name="height" id="height" size="3" value="{AVATAR_HEIGHT}" class="inputbox autowidth" /> px</label>
Remplacez par- Code: Tout sélectionner
<label for="width"><input type="text" name="width" id="width" size="3" value="{AVATAR_WIDTH}" class="inputbox autowidth" /> {L_PIXEL}</label> × <label for="height"><input type="text" name="height" id="height" size="3" value="{AVATAR_HEIGHT}" class="inputbox autowidth" /> {L_PIXEL}</label>
template/ucp_pm_viewmessage_print.html
- Cherchez (autour de la ligne 83)
- Code: Tout sélectionner
<td width="10%" nowrap="nowrap">{L_TO}:</td> <td> <!-- BEGIN to_recipient --> <!-- IF to_recipient.COLOUR --><span style="color:{to_recipient.COLOUR}"><!-- ELSE --><span<!-- IF to_recipient.IS_GROUP --> class="sep"<!-- ENDIF -->><!-- ENDIF -->{to_recipient.NAME}</span>
Dans la ligne, cherchez- Code: Tout sélectionner
<!-- IF to_recipient.COLOUR --><span style="color:{to_recipient.COLOUR}"><!-- ELSE --><span<!-- IF to_recipient.IS_GROUP --> class="sep"<!-- ENDIF -->><!-- ENDIF -->{to_recipient.NAME}</span>
Remplacez par- Code: Tout sélectionner
<span<!-- IF to_recipient.IS_GROUP --> class="sep"<!-- ENDIF -->>{to_recipient.NAME}</span>
template/ucp_register.html
- Cherchez (autour de la ligne 48)
- Code: Tout sélectionner
</dl> <dl> <dt><label for="password_confirm">{L_CONFIRM_PASSWORD}:</label></dt> <dd><input type="password" tabindex="5" name="password_confirm" id="password_confirm" size="25" value="{PASSWORD_CONFIRM}" class="inputbox autowidth" title="{L_CONFIRM_PASSWORD}" /></dd> </dl>
Dans la ligne, cherchez- Code: Tout sélectionner
<dd><input type="password" tabindex="5" name="password_confirm" id="password_confirm" size="25" value="{PASSWORD_CONFIRM}" class="inputbox autowidth" title="{L_CONFIRM_PASSWORD}" /></dd>
Remplacez par- Code: Tout sélectionner
<dd><input type="password" tabindex="5" name="password_confirm" id="password_confirm" size="25" value="{PASSWORD_CONFIRM}" class="inputbox autowidth" title="{L_CONFIRM_PASSWORD}" /></dd>
template/viewforum_body.html
- Cherchez (autour de la ligne 6)
- Code: Tout sélectionner
<div> <!-- NOTE: remove the style="display: none" when you want to have the forum description on the forum body --> <!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF --> <!-- IF MODERATORS --><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}<!-- ENDIF --> </div>
Dans la ligne, cherchez- Code: Tout sélectionner
<!-- IF MODERATORS --><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}<!-- ENDIF -->
Remplacez par- Code: Tout sélectionner
<!-- IF MODERATORS --><p><strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}</p><!-- ENDIF -->
- Cherchez (autour de la ligne 100)
- Code: Tout sélectionner
<dt> </dt> <dd><input type="submit" name="login" tabindex="5" value="{L_LOGIN}" class="button1" /></dd> </dl> </fieldset>
Dans la ligne, cherchez- Code: Tout sélectionner
</dl> </fieldset>
Remplacez par- Code: Tout sélectionner
</dl> {S_LOGIN_REDIRECT} </fieldset>
template/viewtopic_print.html
- Cherchez (autour de la ligne 36)
- Code: Tout sélectionner
<div class="post"> <h3>{postrow.POST_SUBJECT}</h3> <div class="date">{postrow.MINI_POST_IMG}{L_POSTED}: <strong>{postrow.POST_DATE}</strong></div> <div class="author">{L_POST_BY_AUTHOR} <strong<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</strong></div> <div class="content">{postrow.MESSAGE}</div> </div>
Dans la ligne, cherchez- Code: Tout sélectionner
<div class="author">{L_POST_BY_AUTHOR} <strong<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</strong></div>
Remplacez par- Code: Tout sélectionner
<div class="author">{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR}</strong></div>
theme/bidi.css
- Cherchez
- Code: Tout sélectionner
.rtl a.top { float: left; }
Avant, ajoutez- Code: Tout sélectionner
/* Links adjustment to correctly display an order of rtl/ltr mixed content */ .rtl a { direction: rtl; unicode-bidi: embed; }
- Cherchez
- Code: Tout sélectionner
.rtl blockquote { margin: 0.5em 25px 0 1px; background-position: 99% 5px; }
Dans la ligne, cherchez- Code: Tout sélectionner
background-position: 99% 5px;
Remplacez par- Code: Tout sélectionner
background-position: 99% 8px;
theme/colours.css
- Cherchez
- Code: Tout sélectionner
#navigation a:hover { background-color: #aabac6; color: #BC2A4D; }
Dans la ligne, cherchez- Code: Tout sélectionner
background-color: #aabac6;
Avant, ajoutez- Code: Tout sélectionner
background-image: none;
theme/forms.css
- Cherchez
- Code: Tout sélectionner
a.button1, input.button1, input.button3, a.button2, input.button2 { width: auto !important; padding-top: 1px; padding-bottom: 1px; font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif; color: #000; background: #FAFAFA none repeat-x top; }
Dans la ligne, cherchez- Code: Tout sélectionner
background: #FAFAFA none repeat-x top;
Remplacez par- Code: Tout sélectionner
background: #FAFAFA none repeat-x top left;
theme/links.css
- Cherchez
- Code: Tout sélectionner
/* proSilver Link Styles ---------------------------------------- */ a:link { color: #898989; text-decoration: none; }
Remplacez par- Code: Tout sélectionner
/* proSilver Link Styles ---------------------------------------- */ /* Links adjustment to correctly display an order of rtl/ltr mixed content */ a { direction: ltr; unicode-bidi: embed; } a:link { color: #898989; text-decoration: none; }
theme/theme.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2006 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2006 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 19)
- Code: Tout sélectionner
# # General Information about this theme
Remplacez par- Code: Tout sélectionner
# # General Information about this theme
- Cherchez (ligne 24)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
- Cherchez (ligne 28)
- Code: Tout sélectionner
# You have to turn this option on if you want to use the
Remplacez par- Code: Tout sélectionner
# You have to turn this option on if you want to use the
Sauvegardez tous les fichiers, écrasez ceux présents sur votre ftp et n'oubliez pas de rafraichir le dossier "template" et "theme" de votre style dans l'onglet "styles" du panneau d'administration.
Retour à la documentation : mettre à jour son forum phpBB3
2 » Détail des modifications subsilver2
Liste des fichiers à modifier :
- style.cfg
- imageset/imageset.cfg
- template/captcha_default.html
- template/captcha_qa.html
- template/captcha_recaptcha.html
- template/editor.js
- template/index_body.html
- template/login_body.html
- template/login_forum.html
- template/mcp_ban.html
- template/mcp_logs.html
- template/mcp_notes_user.html
- template/mcp_post.html
- template/overall_header.html
- template/template.cfg
- template/ucp_pm_viewmessage_print.html
- template/ucp_profile_avatar.html
- template/viewforum_body.html
- template/viewtopic_print.html
- theme/stylesheet.css
- theme/theme.cfg
Vous pouvez reporter directement les fichiers sur lesquels vous n'avez effectué aucune modification. Ce sont pour la plupart des templates car si vous avez modifié votre style, il y a de fortes chances que vous ayez touché à stylesheets.css.
N.B. Si certaines modifications vous semblent identiques au code d'origine, c'est parce qu'elles ne concernent que des espaces en trop - en fin de ligne - qui ont été retirés .
style.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 17)
- Code: Tout sélectionner
# # General Information about this style
Remplacez par- Code: Tout sélectionner
# # General Information about this style
- Cherchez (ligne 22)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
imageset/imageset.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 22)
- Code: Tout sélectionner
version = 3.0.6 # Images
Remplacez par- Code: Tout sélectionner
version = 3.0.7 # Images
- Cherchez (autour de la ligne 84)
- Code: Tout sélectionner
img_subforum_read = img_subforum_unread =
Remplacez par- Code: Tout sélectionner
img_subforum_read = img_subforum_unread =
template/captcha_default.html
- Cherchez (autour de la ligne 11)
- Code: Tout sélectionner
<tr> <td class="row1"><b class="genmed">{L_CONFIRM_CODE}:</b><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td> <td class="row2"><input class="post" type="text" name="confirm_code" size="8" maxlength="8" /> <!-- IF S_CONFIRM_REFRESH --><input type="submit" name="refresh_vc" id="refresh_vc" class="button2" value="{L_VC_REFRESH}" /><!-- ENDIF --></td> </tr>
Dans la ligne, cherhcez- Code: Tout sélectionner
<!-- IF S_CONFIRM_REFRESH --><input type="submit" name="refresh_vc" id="refresh_vc" class="button2" value="{L_VC_REFRESH}" /><!-- ENDIF --></td>
Remplacez par- Code: Tout sélectionner
<!-- IF S_CONFIRM_REFRESH --><input type="submit" name="refresh_vc" id="refresh_vc" class="btnlite" value="{L_VC_REFRESH}" /><!-- ENDIF --></td>
template/captcha_qa.html
- Cherchez (ligne 2)
- Code: Tout sélectionner
<th colspan="2" valign="middle">{QA_CONFIRM_QUESTION}</th>
Remplacez par- Code: Tout sélectionner
<th colspan="2" valign="middle">{L_CONFIRM_QUESTION}</th>
- Cherchez (ligne 5)
- Code: Tout sélectionner
<td class="row1"><b class="genmed">{QA_CONFIRM_QUESTION}:</b><br /></td>
Remplacez par- Code: Tout sélectionner
<td class="row1"><b class="genmed">{QA_CONFIRM_QUESTION}:</b><br /><span class="gensmall">{L_CONFIRM_QUESTION_EXPLAIN}</span></td>
template/captcha_recaptcha.html
- Cherchez (autour de la ligne
- Code: Tout sélectionner
<script type="text/javascript"> // <![CDATA[ var RecaptchaOptions = { lang : '{L_RECAPTCHA_LANG}', tabindex : <!-- IF $CAPTCHA_TAB_INDEX -->{$CAPTCHA_TAB_INDEX}<!-- ELSE -->10<!-- ENDIF -->
Dans la ligne, cherchez- Code: Tout sélectionner
lang : '{L_RECAPTCHA_LANG}',
Remplacez par- Code: Tout sélectionner
lang : '{LA_RECAPTCHA_LANG}',
template/editor.js
- Cherchez (autour de la ligne 279)
- Code: Tout sélectionner
txtarea.selectionStart = selEnd + open.length + close.length; txtarea.selectionEnd = txtarea.selectionStart;
Remplacez par- Code: Tout sélectionner
txtarea.selectionStart = selStart + open.length; txtarea.selectionEnd = selEnd + open.length;
template/index_body.html
- Cherchez (autour de la ligne 80)
- Code: Tout sélectionner
<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" /> <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /> <!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF --> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td> </tr> </table> {S_FORM_TOKEN}
Dans la ligne, cherchez- Code: Tout sélectionner
</table> {S_FORM_TOKEN}
Remplacez par- Code: Tout sélectionner
</table> {S_LOGIN_REDIRECT} {S_FORM_TOKEN}
template/login_body.html
- Cherchez (autour de la ligne 77)
- Code: Tout sélectionner
</tr> </table> {S_FORM_TOKEN} </form>
Remplacez par- Code: Tout sélectionner
</tr> </table> {S_FORM_TOKEN} {S_LOGIN_REDIRECT} </form>
template/login_forum.html
- Cherchez (autour de la ligne 32)
- Code: Tout sélectionner
</tr> </table> {S_FORM_TOKEN} </form>
Remplacez par- Code: Tout sélectionner
</tr> </table> {S_FORM_TOKEN} {S_LOGIN_REDIRECT} </form>
template/mcp_ban.html
- Cherchez (ligne 87)
- Code: Tout sélectionner
<td class="row2"><input style="border: 0; width: 100%" type="text" name="unbanlength" disabled="disabled" /></td>
Remplacez par- Code: Tout sélectionner
<td class="row2"><input style="border: 0; width: 100%" type="text" name="unbanlength" readonly="readonly" /></td>
- Cherchez (ligne 91)
- Code: Tout sélectionner
<td class="row2"><textarea style="border: 0; width: 100%" name="unbanreason" disabled="disabled" rows="5" cols="80"> </textarea></td>
Remplacez par- Code: Tout sélectionner
<td class="row2"><textarea style="border: 0; width: 100%" name="unbanreason" readonly="readonly" rows="5" cols="80"> </textarea></td>
- Cherchez (ligne 95)
- Code: Tout sélectionner
<td class="row2"><textarea style="border: 0; width: 100%" name="unbangivereason" disabled="disabled" rows="5" cols="80"> </textarea></td>
Remplacez par- Code: Tout sélectionner
<td class="row2"><textarea style="border: 0; width: 100%" name="unbangivereason" readonly="readonly" rows="5" cols="80"> </textarea></td>
template/mcp_logs.html
- Cherchez (autour de la ligne 22)
- Code: Tout sélectionner
</tr> <!-- END log --> <tr align="center"> <td class="row3" colspan="<!-- IF S_CLEAR_ALLOWED -->5<!-- ELSE -->4<!-- ENDIF -->"><span class="gensmall">{L_SEARCH_KEYWORDS}:</span> <input type="text" name="keywords" value="{S_KEYWORDS}" /> <input type="submit" class="button2" name="filter" value="{L_SEARCH}" /></td> </tr>
Dans la ligne, cherchez- Code: Tout sélectionner
<td class="row3" colspan="<!-- IF S_CLEAR_ALLOWED -->5<!-- ELSE -->4<!-- ENDIF -->"><span class="gensmall">{L_SEARCH_KEYWORDS}:</span> <input type="text" name="keywords" value="{S_KEYWORDS}" /> <input type="submit" class="button2" name="filter" value="{L_SEARCH}" /></td>
Remplacez par- Code: Tout sélectionner
<td class="row3" colspan="<!-- IF S_CLEAR_ALLOWED -->5<!-- ELSE -->4<!-- ENDIF -->"><span class="gensmall">{L_SEARCH_KEYWORDS}:</span> <input type="text" name="keywords" value="{S_KEYWORDS}" /> <input type="submit" class="btnlite" name="filter" value="{L_SEARCH}" /></td>
template/mcp_notes_user.html
- Cherchez (autour de la ligne 55)
- Code: Tout sélectionner
<!-- IF S_USER_NOTES --> <tr align="center"> <td colspan="5" class="row3"><span class="gensmall">{L_SEARCH_KEYWORDS}:</span> <input type="text" name="keywords" value="{S_KEYWORDS}" /> <input type="submit" class="button2" name="filter" value="{L_SEARCH}" /></td> </tr>
Dans la ligne, cherchez- Code: Tout sélectionner
<td colspan="5" class="row3"><span class="gensmall">{L_SEARCH_KEYWORDS}:</span> <input type="text" name="keywords" value="{S_KEYWORDS}" /> <input type="submit" class="button2" name="filter" value="{L_SEARCH}" /></td>
Remplacez par- Code: Tout sélectionner
<td colspan="5" class="row3"><span class="gensmall">{L_SEARCH_KEYWORDS}:</span> <input type="text" name="keywords" value="{S_KEYWORDS}" /> <input type="submit" class="btnlite" name="filter" value="{L_SEARCH}" /></td>
template/mcp_post.html
- Cherchez (autour de la ligne 58)
- Code: Tout sélectionner
</tr> <!-- IF S_CAN_VIEWIP --> <tr> <td class="row1"><b class="gen">{L_THIS_POST_IP}: </b></td> <td class="row2"><span class="gen">
Dans la ligne, cherchez- Code: Tout sélectionner
<td class="row1"><b class="gen">{L_THIS_POST_IP}: </b></td>
Remplacez par- Code: Tout sélectionner
<td class="row1"><b class="gen"><!-- IF S_PM -->{L_THIS_PM_IP}<!-- ELSE -->{L_THIS_POST_IP}<!-- ENDIF -->: </b></td>
template/overall_header.html
- Cherchez (autour de la ligne 18)
- Code: Tout sélectionner
<!-- IF S_ENABLE_FEEDS --> <link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /> <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_TOPICS}" href="{U_FEED}?mode=topics" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF --> <!-- ENDIF -->
Remplacez par- Code: Tout sélectionner
<!-- IF S_ENABLE_FEEDS --> <!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF --> <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF --> <!-- ENDIF -->
template/template.cfg
- Cherchez (autour de la ligne5)
- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 17)
- Code: Tout sélectionner
# # General Information about this template
Remplacez par- Code: Tout sélectionner
# # General Information about this template
- Cherchez (ligne 23)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
template/ucp_pm_viewmessage_print.html
- Cherchez (autour de la ligne 85)
- Code: Tout sélectionner
<td width="10%" nowrap="nowrap">{L_TO}:</td> <td> <!-- BEGIN to_recipient --> <!-- IF to_recipient.COLOUR --><span style="color:{to_recipient.COLOUR}"><!-- ELSE --><span<!-- IF to_recipient.IS_GROUP --> class="sep"<!-- ENDIF -->><!-- ENDIF -->{to_recipient.NAME}</span>
Dans la ligne, cherchez- Code: Tout sélectionner
<!-- IF to_recipient.COLOUR --><span style="color:{to_recipient.COLOUR}"><!-- ELSE --><span<!-- IF to_recipient.IS_GROUP --> class="sep"<!-- ENDIF -->><!-- ENDIF -->{to_recipient.NAME}</span>
Remplacez par- Code: Tout sélectionner
<span<!-- IF to_recipient.IS_GROUP --> class="sep"<!-- ENDIF -->>{to_recipient.NAME}</span>
template/ucp_profile_avatar.html
- Cherchez (autour de la ligne 40)
- Code: Tout sélectionner
</tr> <tr> <td class="row1" width="35%"><b class="genmed">{L_LINK_REMOTE_SIZE}: </b><br /><span class="gensmall">{L_LINK_REMOTE_SIZE_EXPLAIN}</span></td> <td class="row2"><input class="post" type="text" name="width" size="3" value="{AVATAR_WIDTH}" /> <span class="gen">px X </span> <input class="post" type="text" name="height" size="3" value="{AVATAR_HEIGHT}" /> <span class="gen">px</span></td>
Dans la ligne, cherchez- Code: Tout sélectionner
<td class="row2"><input class="post" type="text" name="width" size="3" value="{AVATAR_WIDTH}" /> <span class="gen">px X </span> <input class="post" type="text" name="height" size="3" value="{AVATAR_HEIGHT}" /> <span class="gen">px</span></td>
Remplacez par- Code: Tout sélectionner
<td class="row2"><input class="post" type="text" name="width" size="3" value="{AVATAR_WIDTH}" /> <span class="gen">{L_PIXEL} × </span> <input class="post" type="text" name="height" size="3" value="{AVATAR_HEIGHT}" /> <span class="gen">{L_PIXEL}</span></td>
template/viewforum_body.html
- Cherchez (autour de la ligne 125)
- Code: Tout sélectionner
<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" /> <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /><!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF --> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td> </tr> </table> </form>
Dans la ligne, cherchez- Code: Tout sélectionner
</table> </form>
Remplacez par- Code: Tout sélectionner
</table> {S_LOGIN_REDIRECT} </form>
template/viewtopic_print.html
- Cherchez (autour de la ligne 91)
- Code: Tout sélectionner
<table width="85%" cellspacing="3" cellpadding="0" border="0" align="center"> <tr> <td width="10%" nowrap="nowrap">{L_AUTHOR}: </td> <td><b<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b> [ {postrow.POST_DATE} ]</td>
Dans la ligne, cherchez- Code: Tout sélectionner
<td><b<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b> [ {postrow.POST_DATE} ]</td>
Remplacez par- Code: Tout sélectionner
<td><b>{postrow.POST_AUTHOR}</b> [ {postrow.POST_DATE} ]</td>
theme/stylesheet.css
- Cherchez
- Code: Tout sélectionner
/* Links ------------ */ a:link { color: #006597; text-decoration: none; }
Dans la ligne, cherchez- Code: Tout sélectionner
a:link {
Avant, ajoutez- Code: Tout sélectionner
/* Links adjustment to correctly display an order of rtl/ltr mixed content */ .rtl a { direction: rtl; unicode-bidi: embed; }
theme/theme.cfg
- Cherchez (autour de la ligne 5)
- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
Remplacez par- Code: Tout sélectionner
# @copyright (c) 2005 phpBB Group # @license http://opensource.org/licenses/gpl-license.php GNU Public License
- Cherchez (ligne 14)
- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
Remplacez par- Code: Tout sélectionner
# the value, then enclose the value with single or double quotes.
- Cherchez (autour de la ligne 19)
- Code: Tout sélectionner
# # General Information about this theme
Remplacez par- Code: Tout sélectionner
# # General Information about this theme
- Cherchez (ligne 24)
- Code: Tout sélectionner
version = 3.0.6
Remplacez par- Code: Tout sélectionner
version = 3.0.7
- Cherchez (ligne 29)
- Code: Tout sélectionner
# You have to turn this option on if you want to use the
Remplacez par- Code: Tout sélectionner
# You have to turn this option on if you want to use the
Sauvegardez tous les fichiers, écrasez ceux présents sur votre ftp et n'oubliez pas de rafraichir le dossier "template" et "theme" de votre style dans l'onglet "styles" du panneau d'administration.
Retour à la documentation : mettre à jour son forum phpBB3