par Luzz Jeu 10 Fév 2022 - 11:50
| Les administrateurs ayant personnalisé les templates posting_poll_body, viewtopic_poll_ballot et viewtopic_poll_result doivent prendre en considération les modifications ci-dessous. (Les administrateurs n’ayant pas personnalisé ce template ne sont pas concernés par ces modifications incluses nativement dans le template de base du forum)
|
Les templates concernés par les modifications ci-dessous se trouvent ici :
- viewtopic_poll_ballot et viewtopic_poll_result : dans Affichage > Templates > Général
- posting_poll_body : dans Affichage > Templates > Poster & Messages privés
Awesomebb :- posting_poll_body:
AJOUTER
- Code:
-
<!-- BEGIN switch_poll_public -->
<div class="radio-wrap">
<label class="radio-label">{switch_poll_public.L_POLL_DISPLAY_MEMBERS}</label>
<label>
<span class="radio">
<input type="radio" name="poll_public_members" value="1"{switch_poll_public.POLL_DISPLAY_MEMBERS_CHECK} />
<span class="radio-check"></span>
</span>
<span>{L_YES}</span>
</label>
<label>
<span class="radio">
<input type="radio" name="poll_public_members" value="0"{switch_poll_public.POLL_DISPLAY_MEMBERS_UNCHECK} />
<span class="radio-check"></span>
</span>
<span>{L_NO}</span>
</label>
</div>
<!-- BEGIN switch_poll_whovoted -->
<div class="radio-wrap">
<label class="radio-label">{switch_poll_public.switch_poll_whovoted.L_POLL_DISPLAY_WHOVOTED}</label>
<label>
<span class="radio">
<input type="radio" name="poll_public_whovoted" value="2"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK_TIME} />
<span class="radio-check"></span>
</span>
<span>{switch_poll_public.switch_poll_whovoted.L_TIMED_REVEAL}</span>
</label>
<label>
<span class="radio">
<input type="radio" name="poll_public_whovoted" value="1"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK} />
<span class="radio-check"></span>
</span>
<span>{L_YES}</span>
</label>
<label>
<span class="radio">
<input type="radio" name="poll_public_whovoted" value="0"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_UNCHECK} />
<span class="radio-check"></span>
</span>
<span>{L_NO}</span>
</label>
</div>
<!-- END switch_poll_whovoted -->
<!-- END switch_poll_public -->
AU-DESSUS DE
- Code:
-
<!-- BEGIN switch_poll_hide_result -->
- viewtopic_poll_ballot:
REMPLACER
- Code:
-
<form method="post" action="{S_POLL_ACTION}">
PAR
- Code:
-
<form method="post" action="{S_POLL_ACTION}" class="poll">
ET AJOUTER
- Code:
-
<!-- BEGIN warning_public_votes -->
<div>{warning_public_votes.L_WARNING_PUBLIC_VOTES}</div>
<!-- END warning_public_votes -->
AVANT
- Code:
-
<div id="vote_expire">{L_VOTE_EXPIRE}</div>
- viewtopic_poll_result:
AJOUTER
- Code:
-
<!-- BEGIN option_voters -->
<dd><p class="option_voters_list">{poll_option.option_voters.POLL_OPTION_VOTERS}</p></dd>
<!-- END option_voters -->
AVANT
- Code:
-
<!-- END poll_option -->
ET REMPLACER
- Code:
-
<div id="vote_expire">{L_VOTE_EXPIRE}</div>
PAR
- Code:
-
<!-- BEGIN switch_back_to_vote -->
<a href="{switch_back_to_vote.U_BACK_TO_VOTE}" class="btn btn-flat">{switch_back_to_vote.L_BACK}</a>
<!-- END switch_back_to_vote -->
<div id="vote_expire">{L_VOTE_EXPIRE}</div>
{ALL_POLL_VOTERS_LIST}
ModernBB :- posting_poll_body:
AJOUTER
- Code:
-
<!-- BEGIN switch_poll_public -->
<dl>
<dt><label>{switch_poll_public.L_POLL_DISPLAY_MEMBERS}</label></dt>
<dd>
<label><input type="radio" name="poll_public_members" value="1"{switch_poll_public.POLL_DISPLAY_MEMBERS_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_members" value="0"{switch_poll_public.POLL_DISPLAY_MEMBERS_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- BEGIN switch_poll_whovoted -->
<dl>
<dt><label>{switch_poll_public.switch_poll_whovoted.L_POLL_DISPLAY_WHOVOTED}</label></dt>
<dd>
<label><input type="radio" name="poll_public_whovoted" value="2"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK_TIME} /> {switch_poll_public.switch_poll_whovoted.L_TIMED_REVEAL}</label>
<label><input type="radio" name="poll_public_whovoted" value="1"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_whovoted" value="0"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- END switch_poll_whovoted -->
<!-- END switch_poll_public -->
AU-DESSUS DE
- Code:
-
<!-- BEGIN switch_poll_hide_result -->
- viewtopic_poll_ballot:
REMPLACER
- Code:
-
<dd class="resultbar"><strong><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></strong></dd>
PAR
- Code:
-
<dd class="resultbar">
<strong><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></strong>
</dd>
ET REMPLACER
- Code:
-
<dd class="">{L_VOTE_EXPIRE}</dd>
PAR
- Code:
-
<dd class=""><!-- BEGIN warning_public_votes -->
{warning_public_votes.L_WARNING_PUBLIC_VOTES}
<br/>
<!-- END warning_public_votes -->
{L_VOTE_EXPIRE}</dd>
- viewtopic_poll_result:
AJOUTER
- Code:
-
<!-- BEGIN option_voters -->
<dd><div class="option_voters_list">{poll_option.option_voters.POLL_OPTION_VOTERS}</div></dd>
<!-- END option_voters -->
APRES
- Code:
-
<dt><label>{poll_option.POLL_OPTION_CAPTION}</label></dt>
<dd class="poll-bar">
<div class="poll-bar-bar" style="width: {poll_option.POLL_OPTION_PERCENT};"></div>
<div class="poll-bar-desc">{poll_option.POLL_OPTION_RESULT} - {poll_option.POLL_OPTION_PERCENT}</div>
</dd>
AJOUTER
- Code:
-
{ALL_POLL_VOTERS_LIST}
APRES
- Code:
-
<dd><strong>{L_TOTAL_VOTES}: {TOTAL_VOTES}</strong></dd>
ET AJOUTER
- Code:
-
<!-- BEGIN switch_back_to_vote -->
<dl>
<dt> </dt>
<dd><b><a href="{switch_back_to_vote.U_BACK_TO_VOTE}">{switch_back_to_vote.L_BACK}</a></b></dd>
</dl>
<!-- END switch_back_to_vote -->
AVANT
- Code:
-
<!-- BEGIN switch_hide_result -->
<div id="hide_result_msg">{L_POLL_HIDE_RESULT}</div>
<!-- END switch_hide_result -->
PhpBB3 :- posting_poll_body:
AJOUTER
- Code:
-
<!-- BEGIN switch_poll_public -->
<dl>
<dt><label>{switch_poll_public.L_POLL_DISPLAY_MEMBERS}</label></dt>
<dd>
<label><input type="radio" name="poll_public_members" value="1"{switch_poll_public.POLL_DISPLAY_MEMBERS_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_members" value="0"{switch_poll_public.POLL_DISPLAY_MEMBERS_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- BEGIN switch_poll_whovoted -->
<dl>
<dt><label>{switch_poll_public.switch_poll_whovoted.L_POLL_DISPLAY_WHOVOTED}</label></dt>
<dd>
<label><input type="radio" name="poll_public_whovoted" value="2"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK_TIME} /> {switch_poll_public.switch_poll_whovoted.L_TIMED_REVEAL}</label>
<label><input type="radio" name="poll_public_whovoted" value="1"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_whovoted" value="0"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- END switch_poll_whovoted -->
<!-- END switch_poll_public -->
AVANT
- Code:
-
<!-- BEGIN switch_poll_hide_result -->
- viewtopic_poll_ballot:
AJOUTER
- Code:
-
<!-- BEGIN warning_public_votes -->
{warning_public_votes.L_WARNING_PUBLIC_VOTES}
<br/>
<!-- END warning_public_votes -->
AVANT
- Code:
-
{L_VOTE_EXPIRE}
- viewtopic_poll_result:
AJOUTER
- Code:
-
<!-- BEGIN option_voters --><dd class="option_voters_list">{poll_option.option_voters.POLL_OPTION_VOTERS}</dd><!-- END option_voters -->
APRES
- Code:
-
<dd>[ {poll_option.POLL_OPTION_RESULT} ]</dd>
ET REMPLACER
- Code:
-
<dl>
<dt> </dt>
<dd><strong>{L_TOTAL_VOTES} : {TOTAL_VOTES}</strong></dd>
<!-- BEGIN cancel_vote -->
<dd><b><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></b></dd>
<!-- END cancel_vote -->
</dl>
PAR
- Code:
-
<dl>
<dt> </dt>
<dd><strong>{L_TOTAL_VOTES} : {TOTAL_VOTES}</strong></dd>
<!-- BEGIN cancel_vote -->
<dd><b><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></b></dd>
<!-- END cancel_vote -->
<!-- BEGIN switch_back_to_vote -->
<dd><b><a href="{switch_back_to_vote.U_BACK_TO_VOTE}">{switch_back_to_vote.L_BACK}</a></b></dd>
<!-- END switch_back_to_vote -->
</dl>
<d1>
<dt> </dt>
<dd style="width:40%;">{ALL_POLL_VOTERS_LIST}</dd>
</d1>
PhpBB2 :- posting_poll_body:
AJOUTER
- Code:
-
<!-- BEGIN switch_poll_public -->
<tr>
<td class="row1"><span class="gen"><b>{switch_poll_public.L_POLL_DISPLAY_MEMBERS}</b></span></td>
<td class="row2"><span class="gen"><input type="radio" name="poll_public_members" value="1"{switch_poll_public.POLL_DISPLAY_MEMBERS_CHECK} /> {L_YES} <input type="radio" name="poll_public_votes" value="0"{switch_poll_public.POLL_DISPLAY_MEMBERS_UNCHECK} /> {L_NO}</span></td>
</tr>
<!-- BEGIN switch_poll_whovoted -->
<tr>
<td class="row1"><span class="gen"><b>{switch_poll_public.switch_poll_whovoted.L_POLL_DISPLAY_WHOVOTED}</b></span></td>
<td class="row2"><span class="gen"><input type="radio" name="poll_public_whovoted" value="2"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK_TIME} /> {switch_poll_public.switch_poll_whovoted.L_TIMED_REVEAL} <input type="radio" name="poll_public_whovoted" value="1"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK} /> {L_YES} <input type="radio" name="poll_public_whovoted" value="0"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_UNCHECK} /> {L_NO}</span></td>
</tr>
<!-- END switch_poll_whovoted -->
<!-- END switch_poll_public -->
AVANT
- Code:
-
<!-- BEGIN switch_poll_hide_result -->
- viewtopic_post_ballot:
AJOUTER
- Code:
-
<!-- BEGIN warning_public_votes -->
<tr>
<td align="center"><span class="gensmall">{warning_public_votes.L_WARNING_PUBLIC_VOTES}</span></td>
</tr>
<!-- END warning_public_votes -->
AVANT
- Code:
-
<tr>
<td align="center"><span class="gensmall">{L_VOTE_EXPIRE}</span></td>
</tr>
- viewtopic_poll_result:
AJOUTER
- Code:
-
<!-- BEGIN option_voters -->
<tr><td></td><td colspan="3" class="option_voters_list"><span class="gen">{poll_option.option_voters.POLL_OPTION_VOTERS}</span></td></tr>
<!-- END option_voters -->
AVANT
- Code:
-
<!-- END poll_option -->
REMPLACER
- Code:
-
<tr>
<td colspan="4"> </td>
</tr>
<!-- BEGIN cancel_vote -->
PAR
- Code:
-
<tr>
<td colspan="4"> {ALL_POLL_VOTERS_LIST}</td>
</tr>
<!-- BEGIN cancel_vote -->
ET AJOUTER
- Code:
-
<!-- BEGIN switch_back_to_vote -->
<tr>
<td colspan="4" align="center"><span class="gen"><b><a href="{switch_back_to_vote.U_BACK_TO_VOTE}">{switch_back_to_vote.L_BACK}</a></b></span></td>
</tr>
<!-- END switch_back_to_vote -->
APRES
- Code:
-
<!-- BEGIN cancel_vote -->
<tr>
<td colspan="4" align="center"><span class="gen"><b><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></b></span></td>
</tr>
<!-- END cancel_vote -->
PunBB :- posting_poll_body:
AJOUTER
- Code:
-
<!-- BEGIN switch_poll_public -->
<dl>
<dt><label>{switch_poll_public.L_POLL_DISPLAY_MEMBERS}</label></dt>
<dd>
<label><input type="radio" name="poll_public_members" value="1"{switch_poll_public.POLL_DISPLAY_MEMBERS_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_members" value="0"{switch_poll_public.POLL_DISPLAY_MEMBERS_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- BEGIN switch_poll_whovoted -->
<dl>
<dt><label>{switch_poll_public.switch_poll_whovoted.L_POLL_DISPLAY_WHOVOTED}</label></dt>
<dd>
<label><input type="radio" name="poll_public_whovoted" value="2"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK_TIME} /> {switch_poll_public.switch_poll_whovoted.L_TIMED_REVEAL}</label>
<label><input type="radio" name="poll_public_whovoted" value="1"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_whovoted" value="0"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- END switch_poll_whovoted -->
<!-- END switch_poll_public -->
AVANT
- Code:
-
<!-- BEGIN switch_poll_hide_result -->
- viewtopic_poll_ballot:
AJOUTER
- Code:
-
<!-- BEGIN warning_public_votes -->
<div>{warning_public_votes.L_WARNING_PUBLIC_VOTES}</div>
<!-- END warning_public_votes -->
AVANT
- Code:
-
<div id="vote_expire">{L_VOTE_EXPIRE}</div>
- viewtopic_poll_result:
AJOUTER
- Code:
-
<!-- BEGIN option_voters -->
<p class="option_voters_list">{poll_option.option_voters.POLL_OPTION_VOTERS}</p>
<!-- END option_voters -->
APRES
- Code:
-
<img src="{VOTE_RCAP_IMG}" height="12" alt="" loading="lazy" /> {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
ET REMPLACER
- Code:
-
<!-- BEGIN cancel_vote -->
<em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br /><br />
<!-- END cancel_vote -->
PAR
- Code:
-
<!-- BEGIN cancel_vote -->
<em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br />
<!-- END cancel_vote -->
<!-- BEGIN switch_back_to_vote -->
<em><a href="{switch_back_to_vote.U_BACK_TO_VOTE}">{switch_back_to_vote.L_BACK}</a></em><br/>
<!-- END switch_back_to_vote -->
{ALL_POLL_VOTERS_LIST}
Invision :- posting_poll_body:
AJOUTER
- Code:
-
<!-- BEGIN switch_poll_public -->
<dl>
<dt><label>{switch_poll_public.L_POLL_DISPLAY_MEMBERS}</label></dt>
<dd>
<label><input type="radio" name="poll_public_members" value="1"{switch_poll_public.POLL_DISPLAY_MEMBERS_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_members" value="0"{switch_poll_public.POLL_DISPLAY_MEMBERS_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- BEGIN switch_poll_whovoted -->
<dl>
<dt><label>{switch_poll_public.switch_poll_whovoted.L_POLL_DISPLAY_WHOVOTED}</label></dt>
<dd>
<label><input type="radio" name="poll_public_whovoted" value="2"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK_TIME} /> {switch_poll_public.switch_poll_whovoted.L_TIMED_REVEAL}</label>
<label><input type="radio" name="poll_public_whovoted" value="1"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_CHECK} /> {L_YES}</label>
<label><input type="radio" name="poll_public_whovoted" value="0"{switch_poll_public.switch_poll_whovoted.POLL_DISPLAY_WHOVOTED_UNCHECK} /> {L_NO}</label>
</dd>
</dl>
<!-- END switch_poll_whovoted -->
<!-- END switch_poll_public -->
AU-DESSUS DE
- Code:
-
<!-- BEGIN switch_poll_hide_result -->
- viewtopic_poll_ballot:
AJOUTER
- Code:
-
<!-- BEGIN warning_public_votes -->
{warning_public_votes.L_WARNING_PUBLIC_VOTES}<br/>
<!-- END warning_public_votes -->
AVANT
- Code:
-
{L_VOTE_EXPIRE}
- viewtopic_poll_result:
AJOUTER
- Code:
-
<!-- BEGIN option_voters -->
<dl class="clearfix option_voters_list">
<dt> </dt>
<dd class="number-votes"> </dd>
<dd><p>{poll_option.option_voters.POLL_OPTION_VOTERS}</p></dd>
</dl>
<!-- END option_voters -->
AVANT
- Code:
-
<!-- END poll_option -->
ET AJOUTER
- Code:
-
<!-- BEGIN switch_back_to_vote -->
<em><a href="{switch_back_to_vote.U_BACK_TO_VOTE}">{switch_back_to_vote.L_BACK}</a></em><br/>
<!-- END switch_back_to_vote -->
{ALL_POLL_VOTERS_LIST}
APRES
- Code:
-
<!-- BEGIN cancel_vote -->
<em><a href="{U_CANCEL_VOTE}">{L_CANCEL_VOTE}</a></em><br />
<!-- END cancel_vote -->