Forum dei Forum: Aiuto per Forumattivo
Benvenuti sul forum di supporto di Forumattivo.




Per trarre il massimo vantaggio da tutti i servizi offerti dal nostro forum, effettua il login se sei già un nostro utente oppure registrati per far parte della nostra grande comunità. Il tutto, gratuitamente!

Crea anche tu un forum gratuitamente come questo! Clicca qui

phpBB3: Modifica ai templates per piccoli annunci


phpBB3: Modifica ai templates per piccoli annunci

Messaggio Da Niko il Gio 06 Ott 2016, 11:48


Piccoli annunci: Modifiche ai templates per PhpBB3


Per una migliore esperienza, gli amministratori (fondatore) dei forum PhpBB3 che hanno modificato questi templates viewforum_body, index_box, profile_send_email prima del 28 settembre 2016 devono attualizzare queste modifiche

viewforum_body


Sostituisci questa parte:
Codice:
<a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a> •
 <script type="text/javascript">//<![CDATA[
 var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
 var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
 var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
 var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
 var url_tellfriend = '{U_TELLFRIEND_JS_PLUS_MENU}';
 insert_plus_menu_new('f{FORUM_ID}&f={FORUM_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
 //]]>
 </script>
 {PAGINATION}
 <br /><br />
</div>

Con questo:
Codice:
    <script type="text/javascript">//<![CDATA[
    var url_newposts = '{U_NEWPOSTS_JS_PLUS_MENU}';
    var url_egosearch = '{U_EGOSEARCH_JS_PLUS_MENU}';
    var url_unanswered = '{U_UNANSWERED_JS_PLUS_MENU}';
    var url_watchsearch = '{U_WATCHSEARCH_JS_PLUS_MENU}';
    var url_tellfriend = '{U_TELLFRIEND_JS_PLUS_MENU}';
    insert_plus_menu_new('f{FORUM_ID}&f={FORUM_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
    //]]>
    </script>
    <!-- END show_plus_menu -->
    {PAGINATION}
    <br /><br />
    </div>

profile_send_email


Sostituire::
Codice:
<!-- BEGIN switch_user_logged_in --><p class="right rightside">{LAST_VISIT_DATE}</p><!-- END switch_user_logged_in -->
<p>{CURRENT_TIME}</p>

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">
{ERROR_BOX}
<h1 class="page-title">{L_SEND_EMAIL_MSG}</h1>
<div class="panel">
 <div class="inner"><span class="corners-top"><span></span></span>
 <fieldset class="fields2">
 <dl>
 <dt><label>{L_RECIPIENT}</label></dt>
 <dd><input type="text" name="friendname" value="{USER&#8288;NAME}" class="inputbox narrow" /></dd>
 </dl>
 <!-- BEGIN switch_tell_friend -->
 <dl>
 <dt><label>{L_TELL_FRIEND_RECIEVER_EMAIL}</label></dt>
 <dd><input type="text" name="friendemail" value="" class="inputbox narrow" /></dd>
 </dl>
 <!-- END switch_tell_friend -->
 <dl>
 <dt><label>{L_SUBJECT}</label></dt>
 <dd><input class="inputbox narrow" type="text" name="subject" value="{SUBJECT}" maxlength="100" /></dd>
 </dl>
 <dl>
 <dt>
 <label>{L_MESSAGE_BODY}</label><br />
 <span class="italic">{L_MESSAGE_BODY_DESC}</span>
 </dt>
 <dd>
 <textarea class="inputbox" name="message" rows="25" cols="40" tabindex="3">{MESSAGE}</textarea>
 <!-- BEGIN switch_tell_friend -->
 <input type="text" class="inputbox" value="{MAIL_LINK}" disabled="disabled" />
 <!-- END switch_tell_friend -->
 </dd>
 </dl>
 <dl>
 <dt> </dt>
 <dd><label><input type="checkbox" name="cc_email" value="1" checked="checked" />{L_CC_EMAIL}</label></dd>
 </dl>
 </fieldset>
 <span class="corners-bottom"><span></span></span></div>
</div>

<div class="panel">
 <div class="inner"><span class="corners-top"><span></span></span>
 <fieldset class="submit-buttons">
 {S_HIDDEN_FIELDS}
 <input class="button1" type="submit" name="submit" value="{L_SEND_EMAIL}" />
 </fieldset>
 <span class="corners-bottom"><span></span></span></div>
</div>
</form>

Con questo::
Codice:
<!-- BEGIN switch_user_logged_in --><p class="right rightside">{LAST_VISIT_DATE}</p><!-- END switch_user_logged_in -->
<p>{CURRENT_TIME}</p>

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">
{ERROR_BOX}
<h1 class="page-title">{L_SEND_EMAIL_MSG}</h1>
<div class="panel">
  <div class="inner"><span class="corners-top"><span></span></span>
  <fieldset class="fields2">
    <!-- BEGIN switch_profile_email -->
  <dl>
      <dt><label>{L_RECIPIENT}</label></dt>
      <dd><input type="text" name="friendname" value="{USER&#8288;NAME}" class="inputbox narrow" /></dd>
  </dl>
    <!-- END switch_profile_email -->
    <!-- BEGIN switch_ad_email -->
    <dl>
        <dt><label>{switch_ad_email.L_YOUR_EMAIL}</label></dt>
        <dd><input type="text" name="email" value="{switch_ad_email.V_YOUR_EMAIL}" {switch_ad_email.DISABLE_YOUR_EMAIL} class="inputbox narrow" /></dd>
    </dl>
    <dl>
        <dt><label>{switch_ad_email.L_YOUR_NAME}</label></dt>
        <dd><input type="text" name="username" value="{switch_ad_email.V_YOUR_NAME}" {switch_ad_email.DISABLE_YOUR_NAME} class="inputbox narrow" /></dd>
    </dl>
    <!-- END switch_ad_email -->
  <!-- BEGIN switch_tell_friend -->
  <dl>
      <dt><label>{L_TELL_FRIEND_RECIEVER_EMAIL}</label></dt>
      <dd><input type="text" name="friendemail" value="" class="inputbox narrow" /></dd>
  </dl>
  <!-- END switch_tell_friend -->
  <dl>
      <dt><label>{L_SUBJECT}</label></dt>
      <dd><input class="inputbox narrow" type="text" name="subject" value="{SUBJECT}" {SUBJECT_READ_ONLY} maxlength="100" /></dd>
  </dl>
  <dl>
      <dt>
        <label>{L_MESSAGE_BODY}</label><br />
        <span class="italic">{L_MESSAGE_BODY_DESC}</span>
      </dt>
      <dd>
        <textarea class="inputbox" name="message" rows="25" cols="40" tabindex="3">{MESSAGE}</textarea>
        <!-- BEGIN switch_tell_friend -->
        <input type="text" class="inputbox" value="{MAIL_LINK}" disabled="disabled" />
        <!-- END switch_tell_friend -->
      </dd>
  </dl>
  <dl>
      <dt> </dt>
      <dd><label><input type="checkbox" name="cc_email" value="1" checked="checked" />{L_CC_EMAIL}</label></dd>
  </dl>
  </fieldset>
  <span class="corners-bottom"><span></span></span></div>
</div>

<div class="panel">
  <div class="inner"><span class="corners-top"><span></span></span>
  <fieldset class="submit-buttons">
      {S_HIDDEN_FIELDS}
      <input class="button1" type="submit" name="submit" value="{L_SEND_EMAIL}" />
  </fieldset>
  <span class="corners-bottom"><span></span></span></div>
</div>
</form>

index_box


Sostituisci questa parte::
Codice:
    <dd class="lastpost">
                                <!-- BEGIN avatar -->
                                <span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
                                <!-- END avatar -->

    <span>
    <!-- BEGIN switch_topic_title -->
    <a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
    <!-- END switch_topic_title -->
    {catrow.forumrow.USER_LAST_POST}
    </span>
    </dd>

Con questo nuovo codice::
Codice:
<dd class="lastpost">
<!-- BEGIN ads -->
                    <span class="AD_LastPA">
                                <span class="lastpost-avatar"><img src="{catrow.forumrow.ads.IMG}" alt="{catrow.forumrow.ads.TITLE}" /></span>
                                <span class="AD_LastInfos">
                                    <b><a href="{catrow.forumrow.ads.LINK}">{catrow.forumrow.ads.TITLE}</a></b><br />
                                    {catrow.forumrow.ads.DATE}<br />
                                    {catrow.forumrow.ads.LOCATION}
                                </span>
                    </span>
                    <!-- END ads -->
 
                            <!-- BEGIN avatar -->
                            <span class="lastpost-avatar">{catrow.forumrow.avatar.LAST_POST_AVATAR}</span>
                            <!-- END avatar -->

 <span>
 <!-- BEGIN switch_topic_title -->
 <a href="{catrow.forumrow.U_LATEST_TOPIC}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
 <!-- END switch_topic_title -->
 {catrow.forumrow.USER_LAST_POST}
 </span>
 </dd>


Ultimo aggiornamento 29/09/2016



Regolamento • FAQ • Tutorial e risorse • Perdita della password • Pannello degli attrezzi

    

Niko
Amminattivo
Amminattivo


Sesso : Maschile
Età : 20
Messaggi : 7657
Località : Provincia di Varese


Vedere il profilo dell'utente https://www.translationscloud.com
Niko è stato ringraziato dall'autore di questo topic.

Vedere l'argomento precedente Vedere l'argomento seguente Tornare in alto

- Argomenti simili

 
Permesso di questo forum:
Non puoi rispondere agli argomenti in questo forum