|
#1
|
||||
|
||||
Changing the design from usermenu
Mod for YSE PRE 6
This is Theme changer the same have used in PRE 7 for BoLaMn;) The user at any time can change the design from Tracker userbar. Used to whom this little known place in functions.php In stdhead.php your theme, for example, after Code:
show_blocks("l"); Code:
//change style - by qwertzuiop if($CURUSER){ $qstyle = sql_query("SELECT id, name FROM stylesheets ORDER by id DESC") or die; while ($styles = mysql_fetch_array($qstyle)) { $id = $styles["id"]; $name = $styles["name"]; $styleopt .= "<option value=\"$id\" ".($id == $CURUSER[stylesheet] ? "selected" : "").">$name</option>"; } $stylechanger = "<select onchange=\"location.href='?styleid='+this.options[this.selectedIndex].value\">".$styleopt."</select>"; } ////////////////////////////////// below, for example, after find: Code:
<font color=\"#FF6600\">".$tracker_lang['your_ip'].": " . $_SERVER["REMOTE_ADDR"] . "</font> <br /> Code:
<table width=100%><tr><td style=\"border-style:none\" width=15>Тheme:</td><td style=\"border-style:none\"><center>$stylechanger</center></td></tr></table> Last edited by kp380lv; 20th August 2008 at 12:31. Reason: forgot YSE tag |
Tags |
changing , design , usermenu |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with TS v4.3 changing server | Edvis | Template Shares | 6 | 29th January 2015 23:46 |
Donation URL Changing Error | bewithuu2 | xBTiT | 0 | 14th August 2009 12:32 |
Changing announce url | AznxTrance | xBTiT | 0 | 11th August 2009 11:02 |
changing script | streetrace777 | TBDev | 6 | 28th August 2008 21:23 |
Design | Explorer | Community Cafe | 4 | 26th January 2008 09:06 |