• User

    Banner adsense vuoto usando mod per forum phpBB

    Usando questa mod il banner mi rimane bianco come se non lo caricasse.
    Riporto la mod per completezza.

    
    #
    #----[Open]----
    #
    viewtopic.php
    
    #
    #----[Find]----
    #
    define('IN_PHPBB', true);
    $phpbb_root_path = './';
    
    #
    #----[After Add]----
    #
    $adblocktext = <<<EOM
    <tr><td colspan=2 align=center>
    *** QUI VA INSERITO IL CODICE PUBBLICITARIO ***
    </td></tr>
    
    <tr><td class="spaceRow" colspan="2" height="1"><img
    src="templates/subSilver/images/spacer.gif"
    alt="" width="1" height="1" /></td>
    </tr>
    EOM;
    
    #
    #----[Find]----
    #Line 826
    //
    // Okay, let's do the loop, yeah come on baby let's do the loop
    // and it goes like this ...
    //
    for($i = 0; $i < $total_posts; $i++)
    {
    
    #
    #----[After Add]----
    #
    if ($i=="0") {
    $adblock = $adblocktext;
    } else {
    $adblock = "";
    }
    
    #
    #----[Find]---- 1170
    $template->assign_block_vars('postrow', array(
    'ROW_COLOR' => '#' . $row_color,
    'ROW_CLASS' => $row_class,
    
    #
    #----[After Add]----
    #
    'AD_BLOCK' => $adblock,
    
    
    #
    #----[Open]----
    #
    templates/subSilver/viewtopic_body.tpl
    
    #
    #----[Find]----
    #
    <!-- END postrow -->
    
    #
    #----[Before Add]----
    #
    {postrow.AD_BLOCK}
    
    #
    #----[Save/Close All Files]----
    #
    #EoM
    
    

  • Super User

    Ciao ti sposto in php 😉