ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / Code Hack Requests / Style Vorschau hack?


Seite 1 von 1

MichaelD schrieb am 08.02.2003 um 17:34 Uhr

hallo,

gibts einen style vorschau hack? oder kann ihn jemand schreiben?

grüsse

michael

Andy schrieb am 09.02.2003 um 18:20 Uhr

Nö, noch nicht, wirds aber in DynX 2.0 geben.

THE_GANGSTAR schrieb am 09.02.2003 um 23:26 Uhr

header.inc.php so ändern:
dann kannst Forum mit bla.php?style=ID aufrufen

/*
################################################################################
            get style
################################################################################
*/
if(!isSet($style))
{
if( $g_user['styleid'] )
{
    $board['styleid'] = $g_user['styleid'];
}

if( $board['styleid'] == 0 )
{
    $r_style = thwb_query("SELECT styletemplate, colorbg, color1, CellA, CellB, color4, colorbgfont, col_he_fo_font, color_err,
        col_link, col_link_v, col_link_hover, stdfont,
        boardimage, newtopicimage, border_col, styleisdefault FROM
        ".$pref."style WHERE styleisdefault=1");
}
else
{
    $r_style = thwb_query("SELECT styletemplate, colorbg, color1, CellA, CellB, color4, colorbgfont, col_he_fo_font, color_err,
        col_link, col_link_v, col_link_hover, stdfont,
        boardimage, newtopicimage, border_col, styleisdefault FROM
        ".$pref."style WHERE styleid=$board[styleid]"); 
}


}
else
{
    $r_style = thwb_query("SELECT styletemplate, colorbg, color1, CellA, CellB, color4, colorbgfont, col_he_fo_font, color_err,
        col_link, col_link_v, col_link_hover, stdfont,
        boardimage, newtopicimage, border_col, styleisdefault FROM
        ".$pref."style WHERE styleid=$style");
}

$style = mysql_fetch_array($r_style);
$style['smallfont'] = '<font face="' . $style['stdfont'] . '" size="1">';
$style['smallfontend'] = '</font>';
$style['stdfont'] = '<font face="' . $style['stdfont'] . '

MrNase schrieb am 10.02.2003 um 15:59 Uhr

oder du schaust dich mal im Hack-Forum um, da ist ein besserer mit Datenbankunterstützung... :rolleyes:

Andy schrieb am 13.02.2003 um 08:50 Uhr

Was es alles so gibt...

Seite 1 von 1