Bluetrait

Loading
search


Posts:
Comments:

Popular posts

Click here if you are looking for Bluetrait, the weblog software.

Login:

Username:

Password:

GD images.

Posted by Michael Dale on Sat, 03 Jul 2004 9:27 AM

Okay I've fixed up the look of my news layout. Now with funky GD images for the news headings. Each different news item is better defined. I might do some more work on it today, although there are lots of other things I should be doing! We shall see.

EDIT: Testing admin panel with sessions. Seems to be working well.

On Sat, 03 Jul 2004 at 10:15 AM, J. wrote:

Don't mind the images thing, although please pick another font, otherwise the whole thing is pointless and you should just define a set-width DIV element and center text within that with the news background image being the background of that element also, and save bandwidth.

The centered news on the front page sucks, though, imho ;)

What font is "News" in your base image written in? Oh and it may be worth setting border=0 in your image tags for the news things... unless you like the hover blue border thing.

J.


On Sat, 03 Jul 2004 at 10:42 AM, Michael Dale wrote:

Okay fixed up. The font I use is verdana.


On Sat, 03 Jul 2004 at 10:46 AM, J. wrote:

Funky. How much of your layout is hardcoded into the news script, just out of curiosity? Mine is tied in too closely - it'll accept multiple styles as a directive for the purpose of having different background images for the news titles, but ideally I would be able to define a custom config file in each style which would then alter the layout of the news accordingly... something I want to do eventually, but how is yours?


On Sat, 03 Jul 2004 at 10:50 AM, Michael Dale wrote:

Oh no mines just hard coded. Although I was thinking of making it load a different text colour based on the time(); function. We'll see.


On Sat, 03 Jul 2004 at 10:57 AM, J. wrote:

Whoa. Lemme know how THAT goes... output from time is... 11 chars? hmm... 11 chars... convert base10 to base16... that's like 8 chars... so truncate the string to 6 chars (or, if this colour is for something GD related, use the last two chars for alpha) and then use it as a colour... yeah, that could work.

Hehe. You can work out the maths, though ;)


On Sat, 03 Jul 2004 at 11:14 AM, Michael Dale wrote:

Okay done. It only changes the font colour atm. I'll do more with it later.


On Sat, 03 Jul 2004 at 11:34 AM, J. wrote:

Hmmm... the effect is trippy (coz the images take a while to all load, as you scroll down the page the font colours are actually different, because they were generated with a different stamp! Imagine the effect on dial-up!), but the code seems a little... hmm. Yeah, a little dodgy. R, G, B - the green channel is fed by seconds, and will therefore be the most changing, no? Hmm. My splitting a number concept doesn't work too well, either, i guess... grr.

so... how about you just generate three random numbers between 0 and 255? screw this time() business! yeah. that would make more sense, i think.


On Sat, 03 Jul 2004 at 11:52 AM, Michael Dale wrote:

Yeah I might, gives me more control over the numbers. But remember randomising is done based on the computer time anyway (not just php related).


On Sat, 03 Jul 2004 at 12:05 PM, j. wrote:

yup, that's fine - just remember, though, at the minute only green is a highly volatile number; if you generated individual random numbers for all numbers, then all three would be... if that makes sense...


On Sat, 03 Jul 2004 at 12:24 PM, Michael Dale wrote:

Ok done the random number thing. Looks better ;) Thanks.


On Sat, 03 Jul 2004 at 11:56 PM, Michael Dale wrote:

Done a fair bit of work on the admin panel. Now interfaces with the website a lot better. Sessions and everything ;)