BetaONE will rise again!


Reply
  #1  
Old 15th May 04, 04:15 PM
Bads's Avatar
Bads Bads is offline
BetaONE Supporter
 
Join Date: Jul 2001
Location: Quebec
Posts: 1,710
Bads is an unknown quantity at this point
Hi,

I want to put a "theme selector" in the main page of my forum I don't have a news page just the main forum

How can I do that please ?

Thanks
__________________
Reply With Quote
  #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
  #3  
Old 15th May 04, 06:14 PM
Bads's Avatar
Bads Bads is offline
BetaONE Supporter
 
Join Date: Jul 2001
Location: Quebec
Posts: 1,710
Bads is an unknown quantity at this point
Thanks Zone-MR

I have to paste this code in the index ?

I will try in my local forum before
__________________
Reply With Quote
  #4  
Old 15th May 04, 07:38 PM
Bads's Avatar
Bads Bads is offline
BetaONE Supporter
 
Join Date: Jul 2001
Location: Quebec
Posts: 1,710
Bads is an unknown quantity at this point
I can't find where to put this code
__________________
Reply With Quote
  #5  
Old 9th Jun 04, 09:12 AM
robinwilson16 robinwilson16 is offline
Administrator
 
Join Date: Jul 2001
Location: UK
Posts: 903
robinwilson16 will become famous soon enoughrobinwilson16 will become famous soon enough
Did you try putting it in the header in skin_global
Not sure if that php will work in a skin file though
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Officially Releases "Royale" Theme NewsBot ieXbeta News 0 21st Oct 04 09:51 PM
Distrowatch - Linux Guide felixml Alternative OS Support 0 5th Mar 02 02:17 PM


All times are GMT +1. The time now is 05:58 PM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.