Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Php e tema xoops

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2006
    Messaggi
    33

    Php e tema xoops

    Ciao a tutti, ho visto discussioni simile nel forum ma non sono riuscito a risolvere il problema che adesso vi dico.... Qui sotto riporto un pezzo di codice funzionante inserito nel file theme.html del mio tema xoops.


    <div id="header" class="inside">

    <!--Accessible Page Navigation (Hided by css specification) -
    The link content has to be contextualized with the site navigation-->

    <table width="990" border="0">
    <tr>
    <td>
    <{php}>echo getbanner_from_id_banner(39);<{/php}>
    </td>
    <td>
    <{php}>
    $banner = rand(1,3);
    if($banner == 1)
    echo getbanner_from_id_banner(54);
    else if($banner == 2)
    echo getbanner_from_id_banner(63);
    else
    echo getbanner_from_id_banner(65);
    <{/php}>
    </td>
    </tr>
    </table>



    </div>
    <hr class="hide"/>
    <hr size="1" noshade="noshade" class="hide" />




    Adesso per rendere più semplice la gestione, vorrei inserire questa parte all'interno di un file banner.php nella stessa cartella del file sopracitato theme.html.
    $banner = rand(1,3);
    if($banner == 1)
    echo getbanner_from_id_banner(54);
    else if($banner == 2)
    echo getbanner_from_id_banner(63);
    else
    echo getbanner_from_id_banner(65);
    ciao a tutti e grazie in anticipo per l'aiuto.

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2006
    Messaggi
    33
    P.s. Buon anno a tutti!!!!

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2006
    Messaggi
    33
    Nessuno ne sa niente??

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.