Icon vor Boards

Read-Only-Modus

Das 01-Supportforum befindet sich im Read-Only-Modus. Es ist nicht mehr möglich sich zu registrieren, neue Themen zu erstellen oder auf bestehende Themen zu antworten.

Alle Inhalte stehen bis auf absehbare Zeit jedoch weiterhin lesend zur Verfügung.


Bei Fehlern oder Problemen mit PHP-Scripten von 01-Scripts.de erstellen Sie gerne einen Issue-Eintrag auf Github oder nehmen Sie per E-Mail Kontakt auf.

  • Hallo!


    Ich war so blöde und habe das "Icon vor Boards" ebenfalls ins wbb 2.3.6
    eingebaut - natürlich kam es, wozu es kommen musste.... :rolleyes:


    Bei mir im Forum prangt nun ganz oben die 4fache Fehlermeldung:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/export/www/vhosts/funnetwork/hosting/uscars/wbb2/acp/lib/functions.php(349) : eval()'d code on line 21


    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/export/www/vhosts/funnetwork/hosting/uscars/wbb2/acp/lib/functions.php(349) : eval()'d code on line 21


    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/export/www/vhosts/funnetwork/hosting/uscars/wbb2/acp/lib/functions.php(349) : eval()'d code on line 21


    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/export/www/vhosts/funnetwork/hosting/uscars/wbb2/acp/lib/functions.php(349) : eval()'d code on line 21


    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/export/www/vhosts/funnetwork/hosting/uscars/wbb2/acp/lib/functions.php(349) : eval()'d code on line 21


    Ich bin mir relativ sicher, dass ich durch die vorzunehmenden Änderungen was
    entfernt haben muss, was ich nicht hätte entfernen dürfen.


    Doof wie ich bin :rolleyes: habe ich mir die alten Codes nicht notiert und nun
    stehe ich da und kriege diese dämlichen Meldungen nicht mehr weg. :(


    Ich habe alles wieder soweit rückgängig machen können, bis eben auf das
    fehlende Teil - kann mir jemand helfen ?(

  • Zitat

    Original von US-Cars
    Die Fehlermeldung tauchte auf, als ich den Hack wieder entfernte.


    Ich habe ausgetauscht, hat aber nichts gebracht. :(


    Das kann aber eigentlich nicht am Hack liegen, weil dieser nichts an der Datei, die die Fehlermeldung verursacht, verändert hat.
    Deshalb bin ich da momentan auch grad etwas ratlos.

  • of course.


    Zitat

    index_boardbit variante 2 and B
    Suche nach: -----------
    <td class="tableb" align="center"><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /></td>
    replace by: --------------- <td class="tableb" align="center"><img src="{$style['imagefolder']}/$boards[boardid]_icon.gif" alt="" title="" /></td>
    Suche nach: ----------- <td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" />&nbsp;&nbsp;</td>
    replace by: --------------- <td align="center"><img src="{$style['imagefolder']}/$boards[boardid]_icon.gif" alt="" title="" /></td>


    mein boarbit
    <tr>
    <if($depth == 1)>
    <then>

    <td align="left" class="$tdclass"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"</then><else> colspan="2"</else></if>><table cellpadding="0" cellspacing="0">
    <tr class="tablea_fc">
    <td><a href="board.php?boardid=$boards[boardid]&amp;sid=$session[hash]"><b>$boards[title]</b></a></td>
    <td align="left"><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
    <if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />$subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
    </tr>
    </table></td>

    </then>

    <else>


    <if($depth == 2)>
    <then>

    <td align="center"><img src="{$style['imagefolder']}/$boards[boardid]_icon.gif" alt="" title="" /></td>
    <td align="left" class="$tdclass"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
    <if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />$subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if>

    <if(isset($favorites) && $favorites)>
    <then><br /><b><a href="newthread.php?boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWTHREAD']}</a> <a href="usercp.php?action=removesubscription&amp;boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_UNSUBSCRIBE']}</a></b></then>
    </if>

    </span></td>

    </then>

    <else>

    <td class="$tdclass" align="center">&nbsp;</td>
    <td class="$tdclass" align="left"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><table cellpadding="0" cellspacing="0">
    <tr class="tablea_fc">
    <td><a href="board.php?boardid=$boards[boardid]&amp;sid=$session[hash]"><b>$boards[title]</b></a></td>
    <td><span class="normalfont"><a href="board.php?boardid=$boards[boardid]{$SID_ARG_2ND}"><b>$boards[title]</b></a></span><span class="smallfont">
    <if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />$subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
    </tr>
    </table></td>

    </else>
    </if>

    </else>
    </if>

    <if($boards['externalurl'] == '')><then>

    <td class="$tdclass" align="center" nowrap="nowrap"><span class="normalfont">$boards[postcount]</span></td>
    <td class="$tdclass" align="center" nowrap="nowrap"><span class="normalfont">$boards[threadcount]</span></td>
    <td class="$tdclass" nowrap="nowrap" align="left"><if($boards['threadcount']!=0)>

    <then>
    <if($showlastposttitle==1)>
    <then>

    <table border="0" cellspacing="0" cellpadding="0">
    <tr align="left" class="tableb_fc">
    <td nowrap="nowrap">&nbsp;&nbsp;$ViewPosticon&nbsp;</td>
    <td nowrap="nowrap"><span class="smallfont"><if($boards['threadprefix']!="" && $permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><span class="prefix">$boards[threadprefix]</span><br /></then></if> <if($permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><b><a href="thread.php?goto=lastpost&amp;threadid=$boards[lastthreadid]{$SID_ARG_2ND}" title="$boards[topic]">$topic</a></b></then><else><b>{$lang->items['LANG_START_UNKNOWN']}</b></else></if><br />$lastpostdate <span class="time">$lastposttime</span>&nbsp;{$lang->items['LANG_START_FROM']}&nbsp;<if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
    </tr>
    </table>

    </then>
    <else>

    <table style="width:100%">
    <tr class="tableb_fc">
    <td nowrap="nowrap" align="right" style="width:100%"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />{$lang->items['LANG_START_FROM']} <if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
    <td><a href="thread.php?goto=lastpost&amp;threadid=$boards[lastthreadid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/lastpost.gif" border="0" alt="{$lang->items['LANG_START_GOTO_LASTPOST']}" title="{$lang->items['LANG_START_GOTO_LASTPOST']}" /></a></td>
    </tr>
    </table>

    </else>
    </if>
    </then>

    <else>
    <div align="center"><span class="smallfont">{$lang->items['LANG_START_NOPOSTS']}</span></div>
    </else>

    </if></td>
    <if($hide_modcell==0 && (!isset($favorites) || !$favorites))><then><td class="$tdclass" align="center"><span class="smallfont"><if($moderatorbit!="")><then>$moderatorbit</then><else>&nbsp;</else></if></span></td></then></if>

    </then></if>
    </tr>



    hier forum : http://jabito.wiizdom.com/burbuja/index.php
    Ich fand hier der Hack aber ich kann nicht downloaden. (v.2.3.x)
    http://yourwbb.de/database.php?databaseid=48

  • Zitat

    Original von jabito
    i used the readme.txt,the folder templates no.
    and inside the readme, first time variante B and next variante 2. :)


    That's the problem ;)
    "Variante B" includes the icons in front of the on/off-gifs.
    If you want to REPLACE the on/off-gifs by the icons you've to use "Variante A" from the readme.txt

  • ready! only modify catbit and boardbit especially add this line in the depth2 between <then> and depth2. "tableb".


    <td class="tableb" align="center"><img src="{$style['imagefolder']}/$boards[boardid]_icon.gif" alt="" title="" /></td>


    and erase this.
    <td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" />&nbsp;&nbsp;</td>


    result. thx Michael for help. :P
    http://jabito.wiizdom.com/burbuja2/