76

(9 replies, posted in Programming)

Right.  But if someone wants to learn how to do it correctly from the beginning, instead of learning the easy way first only to have to relearn it later and make up for past mistakes, it does't take much more effort to learn how to use relative sizes.  For one thing, it's very easy to avoid (or at least minimize) the nested elements problem by setting sizes as I suggested above (and again here):

body {font: 0.84em/1.3 Arial, sans-serif;}
* {font-size: 100%;}
h1 {font-size: 2em;}
h2 {font-size: 1.5em;}
h3 {font-size: 1.33em;}
h4 {font-size: 1.1em;}
h5 {font-size: 0.9em;}
h6 {font-size: 0.75em;}
pre, code, tt {font: 110% "Andale Mono", Courier, "Courier New", monospace;}
small {font-size: 85%;}
big {font-size: 115%;}

77

(8 replies, posted in Programming)

I give up

78

(9 replies, posted in Programming)

Relative units -- em, %, etc -- are generally the preferred option because they are more flexible for various screen sizes, resolutions, and the visually-impaired who need large fonts.  Fixed units -- px -- are good for special circumstances such as making text line up with a fixed object like an image.

There are several posts at Hiveminds.org that deal with font-size:
http://hiveminds.org/phpBB/viewtopic.php?p=29425#29425
http://hiveminds.org/phpBB/viewtopic.php?p=30108#30108
http://hiveminds.org/phpBB/viewtopic.php?p=38289#38289
http://hiveminds.org/phpBB/viewtopic.php?p=38303#38303

Here's an excerpt from my stylesheet:

/* Basic HTML Tags */
html, body {margin: 0; padding: 0;}
body {font: 0.9em verdana, helvetica, sans-serif;}
* {font-size: 100%;}
h1 {font: normal 2.2em verdana, helvetica, sans-serif;}
h2 {font: normal 1.4em verdana, helvetica, sans-serif;}
h3 {font: normal 1.2em verdana, helvetica, sans-serif;}
h4 {font: bold 1.0em verdana, helvetica, sans-serif;}
h5 {font: bold 1.0em verdana, helvetica, sans-serif;}
h6 {font: bold 0.9em verdana, helvetica, sans-serif;}
dt {font-weight: bold;}
dd {margin-bottom: 0.6em;}

79

(8 replies, posted in Programming)

Ludo wrote:

I do not have any problems when I use IE6.
The only problem I have is when I use firefox.
Do you think there could be a solution?

That would be funny if I hadn't heard it so many times already. wink  Lots of people say that.  However,...

You have it backwards.  Firefox is not doing anything wrong -- it's displaying the code exactly as you've written it.  Your problem is with IE6 because it's making adjustments it shouldn't be making.  In short, IE=BAD, Firefox=GOOD.  The first step towards the solution to your problem is to realize your problem is in fact with IE.

Then what you do is code for Firefox first.  After it displays correctly in firefox, go back and add the appropriate IE hacks to make it display correctly in IE without messing up the Firefox version.  See this punBB thread for links to the IE hacks.

80

(65 replies, posted in PunBB 1.2 discussion)

How funny.  Two of the ads are for phpBB -- as if anyone here is going to be interested in them.  (We could still click it though, to transfer their wealth to Rickard.)

81

(68 replies, posted in PunBB 1.2 discussion)

This punBB post on user registration lists a few tutorials on php sessions.  When in doubt, it's always a good idea to check out the php.net manual.

82

(14 replies, posted in Programming)

Oh, that's so cute -- you gotta love it.  How can you not like favicons when you see a thing like that? wink

83

(14 replies, posted in Programming)

>> "this site now has a favicon"
It does?  It isn't showing for me - Mozilla 1.5, IE6.

84

(68 replies, posted in PunBB 1.2 discussion)

What about putting register.php in a directory called /private/ and then password-protect that directory with .htpasswd.  The only way people could register for the forum would be if they have the correct username/password.

Related punBB Threads:
* Login Detection - http://punbb.org/forums/viewtopic.php?id=5539
* Cookie parameter Httponly, does it work outside MSIE? - http://punbb.org/forums/viewtopic.php?id=3306
* Sessions & Cookies - http://punbb.org/forums/viewtopic.php?id=2626
* PunBB Login Integration - http://punbb.org/forums/viewtopic.php?id=6041
* Multiple group membership - http://punbb.org/forums/viewtopic.php?id=5609
* Apply parser.php on a whole site ? - http://punbb.org/forums/viewtopic.php?id=4795
* Separate authentication module for sharing applications? - http://punbb.org/forums/viewtopic.php?id=4806
* Admin / Moderator confirm registration - http://punbb.org/forums/viewtopic.php?id=4071
* Coding .htaccess - http://punbb.org/forums/viewtopic.php?id=6008

86

(14 replies, posted in Programming)

Rickard wrote:

Nice list.

By "Does the site have a favicon?" I hope he means: If it does, remove it! favicons are evil. I hate them smile

Why do you hate them?

I'm not sure what your point is.  Are you saying you want to do the same thing?  "a lot of posts are talking about this issue" - Really?  Which ones?  I went back 6 months and didn't find any.

It isn't as simple and easy as your post implies.

I don't want to just use punbb's login on my whole site, which is what the other posts refer to.  I want a stand-alone login system -- 'stand-alone' means it doesn't require installation of the forum; it works all by itself.  I haven't seen that discussion in the other posts; if I missed it I'd appreciate a link, but in the ones I've seen they don't talk about this at all.

I want to set up a login system that works all by itself without the installation of the forum.  For example, below are some introductory tutorials on user login.  I'm planning to start with them to learn more about what exactly is going on with the sessions, cookies, passwords, etc.  Then I'll try separating punbb's user login system from the forum code and see about making it a stand-alone system (or by then I may just write my own).

Managing Users with PHP Sessions and MySQL - http://www.sitepoint.com/article/users- … ions-mysql
Authenticate and Track Users with PHP - http://webmonkey.wired.com/webmonkey/00 … rogramming
PHP Sessions Introduction - http://www.phpfreaks.com/tutorials/41/0.php

88

(200 replies, posted in General discussion)

Connorhd wrote:

One of the problems with webmail is there's no way to know when new mail arrives unless I go look

- i haven't seen pop3 brain implants yet... tongue

What we need is an extension that sends a PM to notify that there are new emails. wink

89

(68 replies, posted in PunBB 1.2 discussion)

Rod wrote:

It's incredible the lot of people who don't want to show their stuff on the web but ask very annoying questions ...

To help YOU, WE HAVE TO see your work ... unless you have something to hide ?

I just figured he lucked into a really cool domain name -- http://mywebsite.com/ . wink

90

(200 replies, posted in General discussion)

Bwongar.com wrote:

Unfortunately no one can be told what Gmail is - you have to see it for yourself.

tongue

Ha ha ha.  I have it -- I have several, but I still don't get it.  That's why I'm asking.  Personally, I don't like webmail.  I prefer pop3 and storing email locally on my own computer, and I like using my domains as part of the address because it's a way to advertise my website.  One of the problems with webmail is there's no way to know when new mail arrives unless I go look.

This sounds similar to another thread started a few days ago: User Registration, Login script modeled after punbb 1.2

92

(200 replies, posted in General discussion)

Speaking of fuzzy, I'm still not clear on why Gmail is so desirable.  I heard you can use it for storing remote backups -- that sounds useful.  But other than that why is it any different than a normal pop3 account with my own domain?

93

(142 replies, posted in News)

Rickard wrote:

PunBB 1.2 is a major upgrade from 1.1 and I do expect bugs to surface over the next few days. This release is considered stable, but if you are hesitant or if you run a high traffic site, wait a few days until the dust has settled.

How is the dust doing?  Has it settled yet?

This is why I asked if it might be easier to do a clean install of 1.2, and then convert the old database myself using phpMyAdmin. -- to prevent any problems that might arise caused by the conversion script.

95

(142 replies, posted in News)

When in doubt, a quick trip to the php.net manual is a good place to start:    include()

You say you need an email notification to tell you that you have a PM.  Here's a suggestion: put the message in the email - you're checking your email anyway, why not receive the message at the same time?  Then you don't need the PM because you're already using email.

97

(26 replies, posted in Programming)

Markup and CSS documentation, specifications, 'The Manual'
http://w3.org/MarkUp/
http://w3.org/Style/CSS/

Validators
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

CSS layouts, tips, tricks, and techniques
http://realworldstyle.com/

Web developer help forum
http://hiveminds.info/phpBB/viewforum.php?f=6

98

(142 replies, posted in News)

I know.  I went and found your polite notice.  Then I tried the mafia game site, but my computer got overwhelmed downloading the page, so I figured I'd try later.

Very funny messages on the bottom - telling me my IP address, the number of kilobytes in a megabyte, ...

99

(142 replies, posted in News)

deusiah wrote:

Some people here have been trying to tell others that they don't need a PM system. Who are they to say that? Everyone who would like one has a very good reason for saying so. The email form is no substitute for a PM system and never will be in my eyes and the eyes of others who wish to use a PM system.

I'm not going to explain my reasons for needing them once more since they shouldn't need justifying anyway. I simply asked if it was planned for the future and still have no answer so I guess I should take that as a no. A definate answer would be a plus however as I would like to know for certain before I start work on a PM system which I will have on my site one way or another.

deusiah, when I said my vote was for 'no PMs', I didn't mean to imply you don't need a PM system.  I was only saying that I like having a forum without one.  I agree with you that it would be nice to have an easy way to add a PM system for those that need it -- hopefully the mod that's being written will do the trick.

BTW, very cool sig you have there.  *bookmarking* your site now.

100

(16 replies, posted in Programming)

This article deserves to be 'sticky'.