Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Personal Preferences (Portal Site)

Posted 04 Nov 2004 12:07:39
1
has voted
04 Nov 2004 12:07:39 Chriz L. posted:
Hello all,

I'm trying to create a portal site and i want each user to have his own preferences(background color, fonts, ect ...)

How do i do that with ASP?

Should i create a table in the database and save each user's preferences or is there another way?

Thanks in advance!

Replies

Replied 04 Nov 2004 19:31:17
04 Nov 2004 19:31:17 Rene Bandsma replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Should i create a table in the database and save each user's preferences or is there another way?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Yes, that is the best and fastest solution. If you let your users log in with Dreamweaver you can use the MM_UserName to select your recordset where the username is equal to MMUserName.

A background color would than be:

<pre id=code><font face=courier size=2 id=code>
&lt;body bgcolor="&lt;%=(Recordset1.Fields.Item("backgroundcolor".Value)%&gt;"&gt;
</font id=code></pre id=code>

Assuming that your recordset is named Recordset1 and that you have a fieldname 'backgroundcolor' what is filled with e.g. "#0000FF" (blue). Another thing what you might consider is to let your users only choose a CSS style. You have to create e.g. 5 CSS styles and users can choose a style. THis information could also be saved by a cookie (not my recommendation, because the cookie is set to a computer and not a user).

Good luck!
Replied 08 Nov 2004 12:27:58
08 Nov 2004 12:27:58 Chriz L. replied:
That's what i thought! Thank you!

Is it possible to add a colour palette and when the user choose a colour the colour code will get into a textfield?
Or i should have a drop down menu with some color in it (as it goes here...)

Thanks again!

Reply to this topic