#45643
03/11/2001 6:41 PM
|
Joined: Mar 2001
Posts: 8
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 8 |
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.
|
|
|
#45644
03/11/2001 7:02 PM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
This is possible, in theory, but would require about twice the disk space for storing the cache for the additional style template copies...
UBB.classic: Love it or hate it, it was mine.
|
|
|
#45645
03/12/2001 12:12 PM
|
Joined: Mar 2001
Posts: 8
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 8 |
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?
|
|
|
#45646
03/13/2001 3:22 AM
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
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.
UBB.classic: Love it or hate it, it was mine.
|
|
|
#45647
03/13/2001 10:15 AM
|
Joined: Jun 2000
Posts: 8
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 8 |
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> 
|
|
|
#45648
03/13/2001 4:04 PM
|
Joined: Aug 2000
Posts: 594
Member
|
Member
Joined: Aug 2000
Posts: 594 |
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  [ March 13, 2001: Message edited by: freakscene ]
jeremiah
|
|
|
#45649
03/13/2001 9:42 PM
|
Joined: Mar 2001
Posts: 8
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 8 |
This would be really cool. 
|
|
|
#45650
03/14/2001 6:35 PM
|
Joined: Jan 2000
Posts: 114
Member
|
Member
Joined: Jan 2000
Posts: 114 |
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.
|
|
|
#45651
03/14/2001 9:05 PM
|
Joined: Oct 2000
Posts: 807
Member
|
Member
Joined: Oct 2000
Posts: 807 |
i just actually made a hack that can make a diffrent forum look visually diffrent like the html can change for a forum!
|
|
|
#45652
03/15/2001 7:54 AM
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
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
Do you believe in love at first sight, or should I walk by again?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|