View Single Post
  #2  
Old 15th May 04, 06:05 PM
Zone-MR Zone-MR is offline
M.I.A.
 
Join Date: Sep 2001
Location: Near Newcastle, UK
Posts: 1,077
Zone-MR will become famous soon enoughZone-MR will become famous soon enough
Send a message via MSN to Zone-MR
This is how we do it:

Code:
&nbsp; &nbsp; &nbsp;<form> &nbsp; &nbsp; &nbsp; <select name='u_skin' class='forminput' onchange="window.location='/?act=UserCP&CODE=07&u_language=en&u_skin='+this.value"> &nbsp; &nbsp; &nbsp; <? &nbsp; &nbsp; &nbsp; $DB->query("SELECT uid, sid, sname FROM ib_beta_skins WHERE hidden <> 1"); &nbsp; &nbsp; &nbsp; if ( $DB->get_num_rows() ) &nbsp; &nbsp; &nbsp; &nbsp;{ &nbsp; &nbsp; &nbsp; &nbsp;while ( $s = $DB->fetch_row() ) &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; $skin_select .= $s['sid'] == $ibforums->member['skin'] ? "<option value='{$s['sid']}' selected>{$s['sname']}</option>" : "<option value='{$s['sid']}'>{$s['sname']}</option>"; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp;$skin_select .= "</select>"; &nbsp; &nbsp; &nbsp; &nbsp;} &nbsp; &nbsp; &nbsp; print("$skin_select"); &nbsp; &nbsp; &nbsp; ?> &nbsp; &nbsp; &nbsp;</form>
You'd just need to find the right place to stick that code, to get the selector to appear where you want it.
__________________
[img]http://celltrack.spv-developers.com/render/Zone-MR.png[/img]
[url="http://future.betaone.net/forum/links.php?url=http://future.betaone.net/forum/links.php?url=http://zone-mr.net"]http://zone-mr.net[/url] - Transcribing Life
Reply With Quote