|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
MyStyle™ modification takes much CPU usage, bandwidth and hard disk space, so with the cooperation of AllenAyres, we've created the first-ever UBB style template changer which doesn't require you to get a better server to use. Allen made the CSS templates, which you can also get from our design forum , and I added an addon to add a style template changer. Name: Colorforums Authors: AllenAyres and me Description: Converts your whole board to CSS; adds css style template changer Demo: Anyone got one? Link: ZIP File Requirements: UBB™ 6.5.0 Number of downloads: [img] https://www.ubbdev.com/lk/num.php?s=css65.zip[/img] Thanks to: tacks for the name suggestion Note: The biggest problem is that you'd probably have to re-modify all your template files, because it's very difficult to beyond-compare it (although it is possible), and also it's more difficult to install modifications which support it. (but if anyone asks me, I will create css-oriented versions of my modifications).
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
This seems so cool to have. I wish I could use it. Maybe I can do it on another project however. Let's see some demos people!
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
IPHQ will have a demo very soon However, sorry about this LK, but I'm using another Perl-based CSS manager to merge with the entire site, so users can change every colour on the site through one dropdown box... Still, I'll leave your hack on my test board for sure, just for your sake so you have a demo for this
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
For those who try this one and want some more example css styles, I based this css on the files that come with ubb.threads. We have many posted here if you want some more to choose from https://www.ubbdev.com/threads/php/postlist.php?Cat=&Board=css
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, I started moving my boards over to css with this, but I get an error when I Upgrade(rebuild everything, not to 6.5.xx)
It says that my public_rating_list.pl is 1.13 when a 1.14.2.2 is expected. I'm running 6.5, so I don't know if you just zipped the wrong file
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
hmmm... this might have been based on a beta 6.5 Try using Beyond Compare to check the files here and the current 6.5 files
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
while I'm doing that can anyone help me with my other problem? If I select the second color scheme (non-default), it'll show up, but once I leave the boards and come back, it shows the default again, but when I look in my profile it still says I'm using the second one. So I change it to the default, then right back and click ok, and it shows the one I wanted again. Is this a cookie issue? please, help (off topic: I just need to mention how much I love this board. I've been a member of UBBs for years, and came here once to find a hack, and saw all the stuff I could do with UBB. I've been hacking ever since and you guys are just so helpful )
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, I've gotten 2 reports of this error. when someone's been away from the board and comes back, sometimes the boards is completely unformatted. it's in times new roman and I need to go to my profile and update my profile to get the css to work. I'm almost positive I've done the css right, and all the other hacks have been working once i ported them. if you need to access my board, it's http://www.alforadmin.com/cgi-bin/ultimatebb.cgi and you can use the following account login: UBBDEV password: UBBDEV please help
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I tried and it seems to work well for me... Though maybe you should rename your schemes, so they wouldn't have spaces or parenthesis...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Okay, I see what you mean... I forgot many steps in ultimatebb.cgi and a step in ubb_lib_2.cgi... I'll update it later today...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ZIP file updated, re-modify ultimatebb.cgi and ubb_lib_2.cgi and let me know if it fixes it..
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks LK, this is a great mod
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, I added all the modifications, and it seems to be going well. but it happens at random times so I'll report back in a couple hours too
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
well the good news is that I don't get that error anymore, but I'm having a problem with UBB code now. when I edit, or quote anything I get [/code]when I should be getting UBB code. I am using quick reply if that matters (I heard it might)
also, in ubb_lib_posting.cgi I have [code] that isn't in css, but it doesn't tell me to edit it in the txt. the only reason I mention it is cause it's in sub reverse_ubb_code thanks for all your help. if anyone wants it I have ported my favorite hacks to css
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
In ubb_forum.cgi [code][/code]you might want to add that to the install txt
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
thanks.. that's odd, I did all that stuff for sure but I guess when I beyond compared to see the differences it had a problem... sub reverse_ubb_code: [/code]replace with:[code] (untested)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
try the zip now, I also added your name to the credits
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
thanks, it fixed where I edit it and quote it in their own pages. Now I gotta figure out why the quick reply quote still does it the wrong way. it's only when I quote a quote. :-/ EDIT: weird, now everything works, thanks LK
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
the problem with quick reply quote is that it uses cache, so until you clear cache or someone posts there it won't be updated...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
just when you think you're done the member ratings don't show on the topic page. it'll show Member Rated: but no stars or red x It shows everywhere else, but not the topic page. I didn't see anything in the txt that would change anything. Have I mentioned you're my favorite member?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
lol thanks (I hope you mean me ) I see... ubb_lib_posting, you see in the css.txt file that it has: [code][/code]you see $rating{stars}, replace it with $rating{$stars} (notice the "$" before "stars")
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
thanks man, it worked. Don't forget to update that zip
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Hey LK, I just wanted to say this has to be the best hack ever conceived for the UBB. I wanted to show you what's possible with just a little tweaking. I've ported the Who's Online status effect so that you can make an Admin appear red italic on one skin, but blue bold on another. I've ported DPK's smiley hack so that the popups are even skinned I've added 2 more classes, so that on the main page you can add gradients etc without messing up the looks of main posts. You would not believe how much fun it is to be able to change an entire look by just uploading a different 3KB file. After doing some tweaking, I've added jpg backgrounds to quick reply and other textareas. Here\'s a link to my boards, I just wanted to show you how much flexibility you've added I'm about to PM you a logon for my boards if you wanna look around (I had to disable registrations because of some idiots)
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
that's awesome! I love what you did with Essence theme: that the altcolumncolors have a background image, the background color of textareas, and your who's online.. also the choice of colors is pretty cool.. (for example the date/posted by color)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
yeah, I'm havign so much fun tweaking with the looks, I just gotta get new folder icons made for it The only other thing I want to do that haven't been able to is make the shoutbox use the style sheets
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
The following file is tested against server errors, but I'm not sure if the CSS works well because my main board doesn't use this hack (because I'm a betatester and stuff): www.ubbdev.com/columns/lk/weird_ubb_shoutbox_al.txt
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
al, in http://www.alforadmin.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=2;t=000009;p=1#000006 at the bottom (and top) the "Topic closed" icon is like 2-pixels big or something... fix: (untested) ubb_lib_posting.cgi: [/code]replace with:[code] lemme know if it works, cause I'm currently adding it to the zip code...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
haha, actually I uploaded a 2 px transparent gif by accident, that was not glitch.
One thing I did add was in public_common.pl
Non-members were getting no errors, but members who hadn't selected a style yet were getting an unformatted page. so I did this...
[code][/code]I'm off to test the shoutbox, I'll report back soon
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
damnit, I'm getting the same errors from when I ported it.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
LK, which part of code would I have had to forget to make the dropdown menu in my profile to make it always default to the default style, not the chosen style?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
in ubb_shoutbox.cgi, find "use strict;" and remove it.. lemme know if it fixes the problem...
about edit profile, it's in public_edit_profile.pl
you see:[code][/code]
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
perfect! that's the place I didn't change 60 to 65
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
well it's unformatted for the shoutbox, but I looked through the source and noticed this.. [code][/code]notice how the css declaration doesn't finish (ie. no "/>)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, I got that fixed and now it works [code][/code]now I'm off to make delete gifs for each skins
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
cool, looks good Al
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I'm gonna be redoing my boards because of a bunch of errors, and I've got so many hacks it's impossible to find easily. I can't tell you enough how much of a help you've been(both you and Allen)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
LK, you know how I was having trouble with the game hack? Well I had to comment out one line from Colorforums to make it work. To see the code see here How important was that line, and why would it be a problem?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I replied in the other thread quote: Originally posted by Weird Al: I'm gonna be redoing my boards because of a bunch of errors, and I've got so many hacks it's impossible to find easily. I can't tell you enough how much of a help you've been(both you and Allen) I'm confused, it means you're still gonna use colorforums?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
quote:
Originally posted by LK: I replied in the other thread
quote: [qb]Originally posted by Weird Al: I'm gonna be redoing my boards because of a bunch of errors, and I've got so many hacks it's impossible to find easily. I can't tell you enough how much of a help you've been(both you and Allen)[/qb] I'm confused, it means you're still gonna use colorforums?
yeah, since I had so many conflicting parts of the user profile, it was easier to restart than to search through all the code from all the hacks
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I wonder if anyone else is gonna use this I can't find any glitches anymore.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
we use it here
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
does that mean there is a compact header version of this, or is it only for you?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
This board is using colorforums since UBB 6.2 or so, and the colorforums code we use here is very lame (you can click on View Source in your IE, just see how many lines each image requires) about compact headers - it changes only the top part of some public_*.pl files, and some parts in public_common.pl file, so you can check the compact headers thread and try to port it... yet if at first you don't succeed, try try to ask me to do it
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, now I got a weird problem (probably makes sense to you ) my games page is using some of the css, but not others. I can use tdheader, etc, but not font tags, or even the scrollbar formatting. I'm clueless on how this can do this. Who's my favorite admin
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I dunno, Allen's the css expert, I just made the perl part of the hack
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
off-topic, in shoutbox, you see: [/code]replace it with:[code] (and in the end of the line add another ) because now the time is first with class=small and then class=time, which makes it x2 smaller...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
great, I got that fixed.
*sits at computer trying to figure out which thread to ask about the css in*
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
hey Allen, you got any idea what's wrong? (hopes Allen reads this)
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
do you still have the css from the base code in public_common.pl?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
yes, I didn't remove anything from public_common.pl. I'm just confused how it could use some of the css and not the rest
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
There's some css in the base code that may be overriding yours. If you have a question, especially about display issues, if you could post a link to exactly where you are seeing the problems, this could be answered much more specifically and easily
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I already did
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
oh, ok... the games.cgi file hasn't been updated for css... I didn't do it because most people don't use it yet... you'll need to update it with the classes whereever you see a font tag
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I did that, that's the weird thing. the css is used for the colors, and the font style, but not the scrollbar and font size. it uses some of the body tag part of the css file, but not the rest. Can you help almighty css god?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
LK, a bug for you [code][/code]you might want to update that. I almost never use polls, so it took me forever to notice that
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
what's the url to your style sheet?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
oh, I guess I haven't noticed that because I'm using poll beautification hack
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
it's even just the listing of the choices
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
just checking the first one, you don't have anything specified for the scrollbars and you're using several different specifications for font size... not all of them will work. Run your css files through the validator at w3.org http://jigsaw.w3.org/css-validator/validator?uri=http://www.alforadmin.com/ubb/css/WWFWG.css&warning=1&profile=css2 start there
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
but why does all of the css I've done work on EVERY page except the game page? The scrollbars work on the rest of my board. The font sizes work on the rest of my board. The font colors and background colors, along with font style all work on the games page, but the scrollbar and fontsize don't. Compare http://www.alforadmin.com/cgi-bin/ultimatebb.cgi and http://www.alforadmin.com/cgi-bin/games.cgi . they both use the same stylesheet, yet on one the scrollbar and fontsize are correct, and the other it isn't.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
start with fixing the errors in your css file then we can be sure it's not that It could be the doctype I've added to the startpage sub, it will send your browser into strict mode, which is fine, if your code is up to snuff
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Or instead you could remove the doctype from games.cgi ()
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
quote: Originally posted by LK: Or instead you could remove the doctype from games.cgi () that sounds so much easier *does that* it works sorry Allen, but it's 3AM, and I'm going to Williamsburg in 2 hours. I'm not redoing my css files right now
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I'll remember that when you just have to have an answer right now...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
you know validating the CSS is only a suggestion
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
yeah, unless you've got problems because you wrote it badly...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
but if it works cause I wrote it badly? the validator approved my font size stuff, but it didn't work. and I got the scrollbar script from like 30 sites using the same thing
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
and all 30 wrote it poorly The first thing you do when you are having html/css display problems is validate your code... it makes sure it isn't something written poorly that is causing the problem For a better explanation: http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you.html
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
well I couldn't find a scrollbar property in css anyway
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
oops, the Warning in the validation page is my fault (I forgot to add background-color: transparent)... btw allen the error can not be fixed if he wants colored scrollbars...
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
zip file updated for fixes in frost.css (to make it validated), public_polls.pl and public_common.pl (possibly makes the emails look like without the mod)
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks LK
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
hey LK, would leaving the non-css quote codes make it so older posts could be quoted or edited?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
yes. if you want to use the new ones and still let the old ones get parsed, in ubb_lib_posting, instead of REPLACING, just ADD BELOW. (it's a bug that it wasn't like that at the first place, sorry ) fixed the zip file
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
perfect, the last thing I can think of to make this better is this...
If I want to remove a skin, and someone is using it, there forums will be unformatted. Is there anyway to make it so if the skin name that he has chosen is no longer choosable, that it would go to the default?
*Off topic: what's been happennig with your boards, lately they keep shutting down*
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
afaik, it's not possible, unless I have a javascript array with all css templates names in public_common, something I don't want to do... * Off topic: don't ask *
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
this hack also makes making a spoiler hack a breeze You also made the coding very intuitive, so it was easy making other images change with the styles
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ooh, found a bug. the profile, homepage, etc icons show up as skinned on the public topic page, but it's not skinned on the Member of the Moment island
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
darn zip file updated with a newer version of public_ci_members.pl... can you upload it and let me know if it works for you?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
works fine. one thing you might want to add to the css files are font versions of the classes. ie. [code][/code]that'll fix any mixups anyone gets when using gradient backgrounds. EDIT: *Off Topic: Oooh, so that's why *
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
LK, I'm trying to port a version of the Quick Reply mod to work with this mod... but I keep running into snag's! Have any time to help by chance? document.write('<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi"> <input type="hidden" name="ubb" value="submit_new_reply" /><input type="hidden" name="f" value= "$forum_number" /><input type="hidden" name="t" value="$topic_number" /><table border="0" cell padding="1" cellspacing="1" width="$vars_style{TableWidth}" align="center"><tr bgcolor="$vars_ style{TableBorderColor}"><td><table border="0" width="100%" cellpadding="3" cellspacing="0"><t r bgcolor="$vars_style{TableColorStrip}"><td colspan="2"><font size="$vars_style{TextSize}" fa ce="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}"><b>$vars_wordlets_mods{Qui ckReply}</b></font></td></tr><tr bgcolor="$vars_style{AltColumnColor1}"><td valign="top" width ="18%"><b>$vars_wordlets_mods{QRMessage}</b>
<font size="1" color="$vars_style{Visi tedLinkColor}">$is_html <a href="$ULTIMATEBB?ubb=ubb_code_page" target="_blank">$is_ubb</ a>
</font><input type="checkbox" name="Signature" id="Signature" value="yes" checke d="checked" /><font size="1">$vars_wordlets_mods{ShowSig} <input type="checkbox" id="disa ble_smilies" name="disable_smilies" value="yes" />$vars_wordlets_mods{QRSmilies}</font></td><t d><textarea name="message" rows="10" cols="50" wrap="virtual"></textarea>
<input t ype="submit" name="submit" value="$vars_wordlets{submit_new_reply}" /> $preview_button</td></t r>$TBB_js</form>'); Is the mess :x... Edited by LK: problem with [code] to make the page ugly..
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
document.write('<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi"><input type="hidden" name="ubb" value="submit_new_reply" /> <input type="hidden" name="f" value="$forum_number" /><input type="hidden" name="t" value="$topic_number" /><table width="$vars_style{TableWidth}" cellspacing="1" align="center"> <tr><td><table class="tableborders" width="100%" cellpadding="3" cellspacing="1"><tr class="tdheader"> <td colspan="2"><b>$vars_wordlets_mods{QuickReply}</b></font></td></tr><tr class="lighttable"><td width="100%"><table width="100%"><tr><td valign="top" width="18%"> <b>$vars_wordlets_mods{QRMessage}</b>
<font class="visited small">$is_html <a href="$ULTIMATEBB?ubb=ubb_code_page" target="_blank">$is_ubb</a>
</font> <input type="checkbox" name="Signature" id="Signature" value="yes" checked="checked" /> <font class="visited small">$vars_wordlets_mods{ShowSig} <input type="checkbox" id="disable_smilies" name="disable_smilies" value="yes" /> $vars_wordlets_mods{QRSmilies} </font></td><td><textarea class="normal" name="message" rows="10" cols="50" wrap="virtual"></textarea>
<input type="submit" name="submit" value="$vars_wordlets{submit_new_reply}" /> $preview_button</td></tr></td></tr></table>$TBB_js</form>'); I used some of the code from UBBDEV to get it to look right also, use this code instead of the stock code to get a "qdown" image to go with each skin. function quotedown (quote) { if(ubber_cookie_array[13] != '0' && ''!=user_cookie && null!=user_cookie) { document.write('<a href="javascript:return false;" onclick="insertAtCaret(document.replier.message, \''+quote+'\'); document.replier.message.focus(); return false;"> <img border="0" src="$vars_config{NonCGIURL}/graphics/'+style+'/qdown.gif" alt="$vars_wordlets_mods{QRWQuote}" /></a> '); } return true; } btw: the first code I showed was only one line, added breaks to stop stretching the page. on the second one, the writeln part was all one line if you want to see an example of the use of the code, see here . login: test password: test
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
haha, I pity anyone trying to read this page LK, is there anyway to get the style choice to be editable in cp_edit_profile.pl? It would be nice for that. Also, how about being able to search in the directory for anyone using a certain style, nice to combine these incase we ever need to remove a style
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
1) why would you want to edit someone's style? 2) yeah, it could be possible, but you'll have to do it on yourself cause I really haven't got free time
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
question: with this CSS style templates, I understand u can change them in ur profile, but can u make it so that when u update it in ur profile, it updates ur homepage as well?
I dunno, I saw it on ubbdev.com. U can like change it to blue, and the whole homepage turns blue. Its pretty sweet
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
it's stored in a cookie, so if you know how to call a cookie in an html page, you could just have it use the same code as in the public_common.pl
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
is there anything like that for 6.3? I mean a colorforms hack, or a hack where the user can change his/her template?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
well there is the MyStyle hack, but that ruins the cache because it doesn't use css, thus must rerender the page for every viewer. Theoretically there was a 6.3 version which was never released, it was only used by ubbdev
|
|
|
|
Joined: Jul 2003
Posts: 273
Member
|
Member
Joined: Jul 2003
Posts: 273 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
hehe... we're using 6.6 colorforums here.. but we have a problem (check all Forum Pages, scroll down to the bottom, you see "Powered by:" is huge.. and sometimes also javascript problems in that page)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
hey LK, any chance for the 6.7 Colorforums to have the preview not change your cookies? ie, create a public_style_preview.pl, and have it change with the skin, so that people aren't confused when there skin is Frost, but their profile says Khaki.
|
|
|
|
Joined: May 2001
Posts: 27
Junior Member
|
Junior Member
Joined: May 2001
Posts: 27 |
Is Colorforums 6.6 ready to go yet?
-Trekkie To point, click and boldly go...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Just some information for those waiting for a 6.6 version, it's not coming. I'm taking over the mod in 6.7, and already have some nice features added(or being added) - A new preview skin page, which doesn't mess with your cookies, and will give you a better preview overall of the skin [ Preview ]
- CP Integration, giving you the ability to choose which images change with the styles, and which don't without having to open a template.
- You will also be able to override a user's choice, so that on Holidays everyone will see that tacky Green and Red style instead of the one they chose.
- Also, you will be able to set the default style for those unregistered or that have not chosen a style.
I also plan on releasing a Compact Headers version for the 1 site that would use it
|
|
|
|
Joined: Oct 2000
Posts: 2,667
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,667 |
ok here is a fix found by LK to display the images when using previous/next buttons (if the page is not in the cache you will be missing most of them) in public_common find: if ($ubb eq 'get_topic' || $ubb eq 'directory' || $ubb eq 'my_profile' || $ubb eq 'get_pm') { replace with: if ($ubb eq 'get_topic' || $ubb eq 'directory' || $ubb eq 'my_profile' || $ubb eq 'get_pm' || $ubb eq 'next_topic') { find: if ($ubb eq 'get_topic') { replace with: if ($ubb eq 'get_topic' || $ubb eq 'next_topic') { find: if ($ubb eq 'get_topic' || $ubb eq 'forum' || $ubb =~ /pntf/ || $ubb eq 'directory' || $ubb eq 'get_daily' || $ubb eq 'faq' || $ubb eq 'get_pm') { replace with: if ($ubb eq 'get_topic' || $ubb eq 'forum' || $ubb =~ /pntf/ || $ubb eq 'directory' || $ubb eq 'get_daily' || $ubb eq 'faq' || $ubb eq 'get_pm' || $ubb eq 'next_topic') {
Do you believe in love at first sight, or should I walk by again?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
this is fixed in the 6.7 version
|
|
|
|
Joined: May 2001
Posts: 27
Junior Member
|
Junior Member
Joined: May 2001
Posts: 27 |
Any word on the release date now that 6.7 is final?
-Trekkie To point, click and boldly go...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
it's been out for 12 hours, give me a chance *sheesh*
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
what were you waiting for?
|
|
|
|
Joined: May 2001
Posts: 27
Junior Member
|
Junior Member
Joined: May 2001
Posts: 27 |
I really, really wanna upgrade to 6.7 asap.
-Trekkie To point, click and boldly go...
|
|
|
|
Joined: Oct 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 24 |
How can I add a gradient without adding a style sheet?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
It's possible, but you'll need to edit the TBT sub in public_common.pl to use the gradient image.
|
|
|
|
Joined: Oct 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 24 |
Allen, thanks for your feedback. I still couldn't figure it out. By the way, I'm using version 6.7. Could you post a clip of the code so I know where to put it? Also, is public_common.pl the only file I need to modify?
Thanks!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
TBT will cover most places you might want the image, anywhere else wil be a matter of your preference.
I'm not at home, so I don't have code to post, but it's in:
sub TBT {
in public_common.pl and adding the background image in that table there would be the same html code you'd use for any plain html page.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Hussein, do you want the borders to be the gradient, or something like http://www.ianspence.com/cgi-bin/ultimatebb.cgi , where the gradient is behind the text
|
|
|
|
Joined: Oct 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 24 |
Ian, I want it exactly like your site. I want the gradient behind the text exactly as you have done. I know that it is just a matter of including the gradient image as a background for the table cell, but I couldn't figure out where to put the code.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
In your noncgi folder, there will be a folder called Styles
in there will be files. open them, and find the line that starts
q!TableColorStrip!
edit that line to be something like
q!TableColorStrip! => q~#000000" style="background-image: url('/grad1.gif');~
This will get undone when you edit styles in the CP, so remember how to do this.
you can do something similar for the line starting q!CategoryStripColor!
|
|
|
|
Joined: Oct 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 24 |
Guys, sorry to divert the topic away from the Colorforums discussion, but I'm close to getting my layout to look the way I want. Ian, I was only able to get the gradient to appear in the row that displays the recent visitors. I used the following code: q!TableColorStrip! => q!#003743" background="grad.gif"!, However, for CategoryStripColor, I tried the code you listed but it needs some tweaking. Here is my page for your reference: http://www.netmuslims.com/bboards/ultimatebb.cgi I appreciate all of your help. Regards, Hussein
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
instead of using background-image, try to use background. that should override the color specified and give you the gradient.
|
|
|
|
Joined: Oct 2001
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 24 |
Thanks, Ian. It's looking good.
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
I am trying to create a gradient for the Table Color Strip. I get the same results that Hussein got in the above posts (only the recent visitors table strip has a gradient), the other headers are #777777 in color, which is in the code, but I'm confused as to overiding it as Ian mentioned above. After downloading the appropriate Vars file I modified the q!TableColorStrip! option. The code I entered is below q!TableColorStrip! => q!#777777" qq~ style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#00aa00', startColorstr='#003300', gradientType='0');"~!, I've tried a few different permutations of that code as well as Ian's suggestions above but with the same results. I am clearing the cache on the UBB every time I test a new Vars file as well. Website I'm supporting is: http://www.technicalblog.org/tech/ultimatebb.cgi UBB 6.7.2 Guest login: Username: guest Password: 7PKZ64 Any ideas, thanks!
REaMERE
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
what about removing the qq~ ~ from around the style tag? I see it in the source
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Same results. Maybe I am missing something else in the code? Also, I deleted the old Vars, uploaded the new, set changed mode to 777, cleared the UBB cache, and cleared my browser cache. Perhaps I am missing something, I tend to skip the obvious... Another thought, perhaps the only way to do this is to create an actual image, and use that instead of the gradient option?
REaMERE
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
the image should work, I am wondering if the gradient only works in td's and not table's tho. Possibly the color noted in the td's is overriding the gradient set in the table that holds the td's. What does it look like in firefox?
|
|
|
|
Joined: Jun 2003
Posts: 60
Member
|
Member
Joined: Jun 2003
Posts: 60 |
Okay, so use an image created in Fireworks (etc...) instead of the Microsoft.gradient. I guess that is what they were talking about in the above posts.
I had never looked at the site with Firefox, i never knew that it changes the look of the site a lot. Seems it doesn't like the gradients, and has trouble with background images for tables.
I'll try the graphic and see what happens. Thanks!
REaMERE
|
|
|
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: 5,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|