Choose Layout

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

28 replies · 1,181 views · started 19 years ago · 1 min read

4 participants
amylee Principal · 1,092 posts #21

as i said just use the same script you are using except use a different dir like http://yoursite.com/theme1

and just link them together at bottom of index.php for example using this

echo "<a href=\"http://yoursite.com/theme1/index.php&sid=$sid\">theme name goes here</a>
";
 echo "<a href=\"http://yoursite.com/theme2/index.php&sid=$sid\">theme name goes here</a>

";

or something like that anyway thats the easiest way i can think of

amylee Principal · 1,092 posts #23

you would have to login if you dont add the session id to the code but if you are using same database will just take you to a different layout without getting logged out

amylee Principal · 1,092 posts #26

no idea the whole site i guess

loony #28

u have to upload them to a difrent directory otherwise u will just save over ur old files but just copy ur config file and put it in the new directory then once u have finished with ur new themes create a new index page with a list of the seprate pages and send it so that when ppl come to your site they get sent to that page instead of login then they choose what theme they want there u just link and they login once simplest way i can think off External image (may be gone)

XXX #29

or you could have a var where it declares the css of the users as u said in the ibwf_users table sumn like

$theme=mysql_fetch_array(mysql_query("SELECT * FROM ibwf_users where id='username'"));

then in in your html headers just do this

<link rel=\"stylesheet\" href=\"$theme[whatever column the theme field is]\">

then u could create a drop down menu where the user can choose what theme they want with a mysql query that updates the users theme instead of uploading a whole new script just for a style/theme...i hope you understand....

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close