Forum phpBB3, come visualizzare un post "sponsor" dopo ogni post di apertura

Data 20/08/2015 17:07:30 | Argomento: Internet

In questa guida vedremo come effettuare una modifica al forum phpBB3 per visualizzare un post di sponsorship subito dopo il primo post di ogni topic.


Per far ciò è necessario modificare il file:
Citazione:
styles/prosilver/template/viewtopic_body.html


cercare la seguente linea di codice:
<!-- BEGIN postrow -->


ed inserire subito prima il seguente codice:
<!-- start Ads after the first post in a topic byFP -->
       <!-- IF 
postrow.S_FIRST_ROW -->
   <
div class="post bg2">
      <
div class="inner"><span class="corners-top"><span></span></span>

      <
div class="postbody">
         <
h3>{postrow.POST_SUBJECT}</h3>
         <
class="author"><strong>Sponsor</strong></p>

         <
div class="content" style="text-align: center;">
            
Insert your ad code here
         
</div>
      </
div>
      
      <
dl class="postprofile" id="profile0000">
         <
dt>
            <
strong>Sponsor</strong>
         </
dt>

         <
dd>&nbsp;</dd>
      </
dl>
      
      <
div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>
      <
span class="corners-bottom"><span></span></span></div>
   </
div>
   <
hr class="divider" />
   <!-- ENDIF -->
    <!-- 
end Ads after the first post in a topic byFP -->


Infine, è necessario svuotare la cache di phpBB dal pannello di amministrazione/generali/vuota la cache.


Per approfondimenti vi rimando al seguente link (in inglese): https://www.phpbb.com/support/docs/en/ ... advertisements-in-phpbb3/




This article comes from www.NonSoloGuide.altervista.org
http://www.nonsologuide.altervista.org

Il link di questa guida e':
http://www.nonsologuide.altervista.org/modules/news/article.php?storyid=321