UBB.Dev
Posted By: TroyR Different templates for different users - 03/12/2001 1:41 AM
I posted a question about this in the 5.x section. It probably makes more sense to post it here.

Is it possible to have different templates display for different members? It would probably be based on a field in the profile.
I'd like to be able to have different header and footer info based on a profile field. The user would need to be logged in to get the special template.

I could use this to have a banner-free version of the forum available to some members.

Another point brought up in that thread was that it could also make it possible for members to choose different design templates.
This is possible, in theory, but would require about twice the disk space for storing the cache for the additional style template copies...
Posted By: TroyR Re: Different templates for different users - 03/12/2001 7:12 PM
Thanks, Charles. I wouldn't really be worried about the disk space. As long as it didn't cause any performance issues.

What would happen to the size of the cache if we had 6 or seven different templates available?
Each additional template would double the original space use. If your cache used 200 megs when fully built with one template, it would use 400 with two, 600 with three, etc.

Of course, a fully built cache is not very likely.
Posted By: Dany Re: Different templates for different users - 03/13/2001 5:15 PM
It is a great idea, but for me I need only the color templete for my user to choose in there display like windows setting>

smile laugh
Posted By: freak.scene Re: Different templates for different users - 03/13/2001 11:04 PM
I am waiting on ubb6 to come out of beta to try to work it into a full mod but it is very easy to do this. It just uses a cookie to point to the style sheet you want the user to use which can be picked from a list. I will probably be asking for help from one of the resident pros in tying to tie it in to the ubb profile settings but I have it working as a standalone cgi script for now. Just a couple small bugs to work out.... The only extra server space this method requires is for multiple style sheets which are tiny smile

[ March 13, 2001: Message edited by: freakscene ]
Posted By: TroyR Re: Different templates for different users - 03/14/2001 4:42 AM
This would be really cool. cool
Posted By: Leshrac Re: Different templates for different users - 03/15/2001 1:35 AM
I have a hack related to this running on my UBB6 test board that allows the user to select their language, though it's a bit out of date, what with all the wordlet changes. It uses a secondary cache for all display pages, but uses a central one for everything else, like the search indexes. I'm planning on modifying it so that the user can change their template choice as well, just waiting for UBB6 to come out of beta before I do any more work on it.
i just actually made a hack that can make a diffrent forum look visually diffrent like the html can change for a forum!
Posted By: Charles Re: Different templates for different users - 03/15/2001 2:54 PM
Leshrac I am really interested in your language choosing feature,

Since I am doing the french translation (available in french support forum) I would be mostly interested to offer people a way of having different language choices.

thanks
© UBB.Developers