OK, this is something that I've been working on and attempting ever since back in the 6.0 beta test. It never worked. Then a few days ago Tech-Ni-Kal and I got together determined to make it work. And finally, after months of dreaming and planning and a couple days of hacking, Tech and myself are proud to present for your viewing pleasure, YourStyle™!!! (The name's not final, but it's the best we could come up with at midnight...)
What this does, is allows your users to select from any available UBB™ Style Templates and pick the one they like best, and always view the site in that skin. Some more detailed information about this is available n the post on the demo board...
To use the demo board, log in with one of the four usernames listed below. Each username has one of the four demo Styles associated with it. Log in with any or all of them to see the different styles. Please note that for legal reasons, this is ONLY a test board. We have locked the profiles and disabled registration and posting. So for now, all you can do is look, enjoy, and drool. One small bug we've found and are working on a fix for, is that when you log out and then log back in as another username, the main forums page defaults to the first template. Simply hit Refresh/Reload in your browser, or go into a forum, or basically click any link to fix this and view the site in the Style associated with that user.
So without any further adieu, here is our demo board for you to enjoy:
I have had to pleasure to work on this hack with Skorpion so far and it has been loads of fun! We have troubleshooted alot of things that have gotten us pretty far but we are having a great time and this hack is going to be great when it is all ready.
Make sure to read the post about YourStyle™ Info at the demo board. You will learn more about this hack. I would talk some more but it is 1 am and Aol is giving me hell so...
We plan to release an early version of it sometime soon after 6.1 gets released. Right now, the hack is very basic and underdeveloped, and there is a lot of room for user error to screw up the board. Besides the legal issues, that is the main reason why we disabled so much stuff on the test board... There's just too much room to screw things up right now. And of course there's the not-cache-friendly thing, which we're gonna try to work on.
There are several other nifty features that we want to implement into the hack eventually (and that we won't tell you about quite yet), but for right now we're just concentrating on finalizing the main portion of the hack and waiting for 6.1.
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
BTW, please do NOT email us thousands of emails asking for the code and saying I promise not to show anyone just me. I promise you it will not happen. We will release it when it is ready. Until then Skorp and I will be working on it. We will not release it earlier because you need it.
Travis: I don't have access to Tech's server logs, so I can't really say anything. But I *believe* the resources aren't affected any differently than what happens when you just turn the cache off. No matter which style is selected, no cache just means that the UBB has to build each page every time it's called, so afaik the only difference is which style it gets built with each time. Though this is another reason we're not gonna release it till 6.1: Since 6.1 is (supposedly) going to have better I/O support, we hope turning the cache off won't be quite as big a deal on large boards as it is/was with 6.0.
Allen: Thanks. Like Tech said, we hope it will be popular.
Splitfyre: Glad to be of service.
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
You do know this has to do with Style Templates, not regular templates. With this hack your user can select which Style Template they want to use. Skorp and I discussed about doing something with using different templates. I think we might work together and release it but I am not sure.
I may be wrong and you might know but the way I read it you think it has to do with templates. But I also didn't get much sleep last night sooo.
I am sure we could use your help because we couldn't figure out how to fix the login/logof thing and you look like you fixed it. Plus, you have gotten farther but it is all up to Skorp.
Javier: That is another great idea on ways to use this, something I hadn't even thought of. NIce!
Tech: Yeah, he's talking about Style Templates... His Header doesn't work right in Netscape, so he will just use a different Header for each template and let users pick which browser they have...
LK: Um, fine by me. We're on Tech's server, so I'll have him PM you with some more info about that...
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
Skorp-> yeah the idea works out great! Glad I could add another benefit for it's use hehehe...
Tech-> I think skorpion grabbed what I was trying to say. See, by setting up a different style template for netscape users, I can avoid the problem I'm having with site integration and netscape.. a different template for netscape users that maybe doesn't surround the whole forum as a table... I think you've seen my forum so you probably know what I'm saying
Just wanted to say it looks like it is going to be a great mod
Any word on how much it will beef up the cache size (if you were to use it of course)?
I was going to try to do this before but some projects @ work has brought my spare time down considerably. My approach was a bit different though (and will probably be made easier with the release of 6.1). Without a doubt cache friendly (and usable even on non ubb site pages!)
Change the style sheets as opposed to ubb styles.
Based my idea on this script http://www.sfu.ca/~ajdelore/cssfile/
Anyway, since you guys are still developing this, I wanted to bore you with my thoughts, ideas and well wishes on the project!
Your CSS-changing idea is good, and would work very well for large sites that want to allow this level of user-customization but don't want to forego the cache. However, all that does is let you change the colors and fonts and stuff (unless there's something there that I'm not aware of). By changing the actual UBB Style Templates, we can allow the users to change everything from colors to graphics to nav menus to just about anything else that can be customized.
As for the cache thing: At this time, it actually reduces the cache, cuz it doesn't use it at all. Good for your hard-drive space, bad for your processor. However, in order to make a cache-friendly version, someone (maybe LK? i don't remember...) suggested that we actually use different caches for each style. In that case, the cache size would be affected by how many styles you offer - if you offer two choices, the cache size doubles; four choices, it quadruples, and so on.
---Skorpion
Don't put that signature in your mouth! You don't know where it's been!
The images and things would definatly be a no go with the css option. forgot about those DOH! Forgot all about those!!!!
You can control table/cell colors with css though. Would be a pain defining all the classes in the templates to give it to amount of control I would like though. Also you would have to keep in mind that the page colors will be changing when designing graphics.
Maybe you guys could kick out a light version using the css idea for bigger sites that use the cache. I would estimate it to take you guys around 5-10 minutes
Anyway, keep up the great work and I'm looking foward to it!
I was going to suggest that your CSS version would make a good Light Edition, but I figured you'd want to develop it yourself. If you think it's alright for us to do it, we'd (I'd, anyway, I can't speak for Tech and LK) be more than happy to give it a shot.
Of course it is alright! Definatly looking foward to that too!
I only Wish I had the time to do it. I'm about 99% done with another mod I have been working on for waaay too long - Super UBB image control (allows you to have mouseovers + flash buttons as options for any clickable image in the ubb)
Can't wait for 6.1!!!!!! Bet the page loadtime is 1/2 with the unmentionalble enhancements I am thinking they have added.
Are you sure? You do not link directly to the style sheets when you code it this way, you link to a script that sets the style sheet based on a value set in the users cookie when they made a selection.
local cache maybe but I doubt it would store other values (color, font size or whatever) in the UBB cache since the style sheet is translated when it is called by the browser as opposed to being processed on the server.
Skorpy, I advise you to wait until 6.1.0 is out before releasing this hack.
Why?
&ServeFromCache() and &LoadTemplate()
If this thing works anywhere near the way I think it does, you can *EASILY* modify those two routines... not only will it be cache friendly, but it will be MUCH easier to code....
Charles, we have decided to wait till 6.1.0 to release this hack because of how close is it to being released and since 6.1 is going to be different. We just posted a small board to show everybody what it will look like.
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.