• User Attivo

    Inserire un nuovo pulsante

    Volevo sapere quale template bisogna modificare per inserire un nuovo pulsante di fianco a quello per la nuova discussione.


  • Super User

    Ciao. 🙂

    Apri il template SHOWTHREAD e cerca:

    [php]
    <if condition="$show['largereplybutton']">
    <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
    <else />
    <td class="smallfont"> </td>
    </if>[/php]Modificalo aggiungendo:

    [php]
    <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>
    [/php]In modo da avere una cosa come questa:

    [php]
    <if condition="$show['largereplybutton']">
    <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]&phpMyAdmin=65ce186d8bf2464235449b99ab7b1f3b" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></td>
    <else />
    <td class="smallfont"> </td>
    </if>

    [/php]


  • Super User

    Ciao. Dovresti modificare il template forumdisplay. 🙂