Re: Hypothetical: Customizable Member Pages

2007-06-21 Thread Merric Mercer

We've taken the approach using cookies.   The value of the cookies is 
returned to the template via a simple context processor.  Each
cookie then simply refers to a stylesheet,  which can change the whole 
look and feel of the site.  Very straightforward.

MerMer

James Bennett wrote:
> On 6/20/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>   
>> This feature is a show-stopper, since the market I'll be gearing this
>> to almost requires features like this to be there.  So am I dreaming
>> that this can be done? Has anybody else attempted something like this
>> yet?
>> 
>
> It should be relatively easy; look at Chapter 12 of the Django book,
> which covers extending the auth system with a custom profile model.
> You'll want to develop a model which includes the ability for users to
> specify whatever styles/customizations are needed (along with any
> other information you want to collect), and use that as the profile
> model. Then the 'get_profile()' method on each User will return the
> appropriate object which you can look at to determine how to display
> the user's customized page.
>
>   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Hypothetical: Customizable Member Pages

2007-06-20 Thread Bryan Veloso

> Not really sure if it's a good idea to
> allow users to enter arbitrary HTML code. I mean, just look at what
> happened to MySpace and Friendster :) It's better to just allow users
> to select from a set of predesigned templates and then allow them to
> customize the CSS stylesheets.

Believe me, I feel ya, I'll try and get away with as little MySpace-
ness as possible. :)


> It should be relatively easy; look at Chapter 12 of the Django book,
> which covers extending the auth system with a custom profile model.
> You'll want to develop a model which includes the ability for users to
> specify whatever styles/customizations are needed (along with any
> other information you want to collect), and use that as the profile
> model. Then the 'get_profile()' method on each User will return the
> appropriate object which you can look at to determine how to display
> the user's customized page.

So that's all it is eh? I don't know why I was thinking it would be so
difficult to do. I guess because I thought of template tags first, of
them placing our content in their code rather than have them place
code around our content.. if that makes any sense. I guess my best
example of what I'd want done is Virb, but from a database standpoint
it definitely makes sense.

Thanks for the quick responses guys. :)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Hypothetical: Customizable Member Pages

2007-06-20 Thread James Bennett

On 6/20/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
> This feature is a show-stopper, since the market I'll be gearing this
> to almost requires features like this to be there.  So am I dreaming
> that this can be done? Has anybody else attempted something like this
> yet?

It should be relatively easy; look at Chapter 12 of the Django book,
which covers extending the auth system with a custom profile model.
You'll want to develop a model which includes the ability for users to
specify whatever styles/customizations are needed (along with any
other information you want to collect), and use that as the profile
model. Then the 'get_profile()' method on each User will return the
appropriate object which you can look at to determine how to display
the user's customized page.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Hypothetical: Customizable Member Pages

2007-06-20 Thread Nimrod A. Abing

Hello,

Django does not support this out of the box. If you plan to use the
built-in auth module, you can extend it by creating Profile and
UserStyle model which would presumably store details about the user's
profile (fields not already in the default User model) and user's
custom style. Can't tell you which one, but that's how I did it for
one site I made with Django. Not really sure if it's a good idea to
allow users to enter arbitrary HTML code. I mean, just look at what
happened to MySpace and Friendster :) It's better to just allow users
to select from a set of predesigned templates and then allow them to
customize the CSS stylesheets.

HTH.

On 6/21/07, Bryan Veloso <[EMAIL PROTECTED]> wrote:
>
> I'd like to build a site in which members have the ability to
> customize the look of their profile using HTML, CSS and template tags
> that we'd provide to the member. So, I want to know if Django supports
> this or not, as well as how difficult it would be to implement. Best
> case scenario would be a customization experience like that of
> Geocities or Yahoo!Pages, but experiences that parallel to say,
> Wordpress.com or MySpace would work too.
>
> This feature is a show-stopper, since the market I'll be gearing this
> to almost requires features like this to be there.  So am I dreaming
> that this can be done? Has anybody else attempted something like this
> yet?
>
> Thanks. :)
>
> ~ Bryan
>
>
> >
>


-- 
_nimrod_a_abing_

http://abing.gotdns.com/
http://www.preownedcar.com/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---