ok, I will give that a whirl.. TY!
102 2005-01-20 17:56
Topic: CSS Postioning Question (17 replies, posted in Programming)
I was wondering if any one can help me out with something I am trying to do with positioning "boxes".
I have a left column navigation that is generated based on user access rights. I wont bore you with the code logic here. What I am trying to do its this.
Say I have a default navigation menu box, (not logged in), on the left hand side of the page that that has the following rules applied to it:
#navBox1 {
position:absolute;
width:150px;
top:100px;
left:20px;
border:1px solid black;
background-color:#C8CCD0;
padding:0px;
z-index:2;
}
And I want to add another navigation menu box just below it that has a 20 px space between the bottom part of "navBox1", and the top of the new navigation menu box, call it "navBox2". The height of "navBox1" will adjust depending if the user is logged in or not. When the user logs in, "navBox2" should appear just below "navBox1" with a 20px pad between them. "navBox2" will also adjust its size and contents depending on the users level of access. To further complicate matters, I also need to have a 3rd "navbox" below "navBox2" that will also adjust its height automatically based on the users level of access.
The logical end of the menu building is in place. The markup was all done with tables. (I know, ugg!) I am now trying to go to the next level and update it to today's "web standards" and make it a CSS site thats XHTML 1.0 strict.
Any takers? I would greatly appreciate it. thanks in advance!
103 2005-01-19 03:40
Re: WC3 XHTML 1.0 Strict Logo (19 replies, posted in PunBB 1.2 discussion)
LOL I didn't know I would cause such a ruckus. Thanks btw
104 2005-01-19 03:37
Re: CSS Font sizing methods em or px? (9 replies, posted in Programming)
Thanks! That helps alot!
105 2005-01-18 19:10
Topic: WC3 XHTML 1.0 Strict Logo (19 replies, posted in PunBB 1.2 discussion)
Rickard/Paul
Might be a good idea to include this on the main page of punbb.org. Since it is a real feather in your cap
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
from the WC3 Validation site.
106 2005-01-18 16:31
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
I think I remember that VB or phpBB does something like that with posts. Preventing a person from posting more than one post in a given timeframe which had an adjustable setting in the admin. I am sure that it checks the active valid account of the user. Usually when mass signups occur, its a new email and user account each time. I am not sure how you could put a "limiter" in there. I have a friend who did all the code for a very large community site that got hit by DOS around its launch time. They dont use a character recognition method on the signup page. I am going to see if he made changes to how accounts are activated on his site. I also know his site uses all of his own custom PHP as well as some C+ to help speed page load times. Its a very graphically site and when it lauched suffered from slow page load times, even with a broadband connection.
If anyone cares to check it out, go here
107 2005-01-18 16:17
Re: Free PHP/HTML editor (99 replies, posted in Programming)
yeah, but its not that hard on the wallet. I own 2.5, and had only been using it for CSS. I just upgraded for 24 USD to 3.1 last night. Played with it a bit. It does syntax highlighting for PHP. I do like the live preview bit alot. It saves a step from having to have a browser open all the time pointed to the page and refreshing. Which is good for spot checks, but not for cross browser checks. I think the Preview window only uses a version of IE. I have not read the guide thouroughly, but I remember seeing some note to that effect.
Thanks Paul!
BTW have you ever tried. StyleMaster?
108 2005-01-18 16:11
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
7 days is too late. lol. I have seen a number of community sites go down briefly because of DOS attacks. Any method to deter would be hackers/exploiters would be welcomed. On one hand I wish there weren't such deviants out there, on the other hand. It ends up making better programmer out of all of us. Unfortunately, it just makes the "keep things simple" method a little less simple.
109 2005-01-17 23:49
Re: Free PHP/HTML editor (99 replies, posted in Programming)
I have to admit, I'm a big fan of Topstyle Pro. The output from the preview is far more accurante than DW and the stuff thats supposed to improve productivity really does.
What version of TopStyle pro are you using? I thought it was just Style editor.
Thanks.
110 2005-01-17 18:54
Topic: CSS Font sizing methods em or px? (9 replies, posted in Programming)
I am a little confused as to the best way to size fonts with CSS. In my research, I have noticed that one author will reccommend using PX and another will state that em's are the way to go. I just wish it would be fixed and not have so many options. One author stated that EM should be used for text, and px should be used for other sizing such as padding and margins. Is this just a recomendation or a standard? Say I mix the two. Will it cause problems. Its one thing to have to work around different browser quirks, but when you have all these other options for sizing things to boot really confuses me. When I look at what WC3 has to say, They eplain things in such "geek" terms that I have to read it over and over to understand what the hell they are trying to say. lol. Can anyone put things into laymens terms?
Say I set a font-family to Verdana... in a body selector and give it a size 1.0em and later I set the <p> selector to a font-size of 0.8em since the <p> element is a child of the <body> element does this mean that the <p> element will be 0.8 of 1.0? Or better yet, say I set the <body> element to have a font size of 12px and later I set a child element to have a font size in a percentage. I assume that it take x% of 12 px. Is this correct or am I way out in left field on this one?
Also, when I size a font using the units em, is this based on the users browser default setting. i.e 1.0em = default size, and 0.8 = 8/10 of the default browser size?
I'm lost.
111 2005-01-17 18:34
Re: Zend Studio 4 Beta (8 replies, posted in Programming)
I don't like Java. I've already dumped my use of ZE4... I'm back to good ol' EditPlus.
lol that was fast.
Have you ever tried any of these?
Maguma Studio / Maguma Workbench
I like what Zend does as far as features, but I to don't like the GUI and it loads like crap. I have been using homesite+ and homesite 5.5 but, I like the code completion feature in zend. Call me lazy, but I can't tell you how many times my dyslexic fingers have misspelled a function, or variable. The code completion in homesite does not extend to PHP, at least I don't think it does. Syntax highlighting works fine, it just does not offer the same code completion features as it does with HTML. If anyone knows of an extenstion for HS+ that allows for code completion in PHP. Let me know.
Thanks.
112 2005-01-17 18:05
Re: Simplified CSS (16 replies, posted in Feature requests)
I understand the math logic, but where do these numbers come from? Maybe I am reading into it too deep.
113 2005-01-17 17:54
Re: Simplified CSS (16 replies, posted in Feature requests)
TIP OF THE DAY.
If you are finding a particular selector does not seem to be doing what you wanted remember specificity. This is not strictly accurate but works in most cases
id = 100
class = 10
tag = 1So #myid(100) DIV(1).myclass(10) = 111
To overrule it somewhere else you would need DIV(1)#myid(100) DIV(1).myclass(10) = 112
You lost me here.
114 2005-01-16 08:00
Re: PunBB 1.2 (142 replies, posted in News)
It was never intended to auto generate. He stated this somewhere on the form. But I guess where there is a will there is a way. I suppose if you had access to it, you could setup a cron job.
115 2005-01-16 04:50
Re: PunBB 1.2 (142 replies, posted in News)
Whoa nice job. Worked like a charm. I can see the potential for even more uses for this.
116 2005-01-16 04:48
Re: The new website (137 replies, posted in News)
117 2005-01-15 00:08
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
Rickard: Isn't the GD lib package with PHP now? They only thing I had to do with my host was to use an htacess file that included it in the PHP path. But I can see where this would be a problem with Windows Server. I don't have much server experience other than toying with one at home. I guess I am one of the lucky ones to have a host that has it.
Thanks for the input.
118 2005-01-15 00:04
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
dhdesign: I get your point. Makes more sense now. I see where putting these people in a group would make filtering easier.
119 2005-01-14 23:09
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
It would also require another user group called 'validating' to be created, which would be assigned to all unapproved forum registrations. Permissions for that group would have to be very strict.
Would you realy need to have a seperate user group setup? Could it just be done with a boolean "on or off" in the user account information that could only be changed by an admin?
New user signs up. Gets email confiming sign up
Admin(s) get email that a new user has signed up.
Admin Validates
New user get an email confirmation.
One of the problems I see with this is that some "legit" users may get turned off by waiting for the admin to validate the registration. Some admins don't visit their message board as much as ours does
120 2005-01-14 22:31
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
Mmm
Someone could create a mod for this
I don't think that something that strengthens site security should be considered a mod. Maybe it could start out that way to see how well it works and effects speed & performance.
I generally dislike the use of images for this. There must be a better way.
How come?
121 2005-01-14 21:26
Re: Protecting the forum from auto signups (36 replies, posted in Feature requests)
This would require the GD lib and not all hosts support that.
Yes. Some of the functions I used were from the GD lib. ie imagecreatefromjpeg()
122 2005-01-14 21:12
Topic: Protecting the forum from auto signups (36 replies, posted in Feature requests)
I have experienced this first hand. Are there provisions in 1.2 for this? One way I know of is to use some sort of optical character recognition in the sign up form that asked the user to enter in the characters that are dispayed in auto generated image. I am sure most people have come across this before. I have done one before in a testing enviorment, but never on a live site. I did it with classes. One for sessions, and one for randomizing the image text.
Has this ever been thought of for punBB? I am not sure what kind of load that it would put on a server, but its definately a safegaurd from "bots".
Even if a system requires email confirmation of an account, the confirmation process can also be part of a "bot" provided that the bot has access to the account that the email confirmation was sent.
123 2005-01-14 20:25
Re: Private Message System (332 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Besides that, on a large comunity site, what would the load be on the mail server each time a PM was submitted. I get enough spam as it is. That counter to the punbb philosophy. If PM is going to be a mod, then simple notification on the site is all that I think would be required. (e.g. Logged in as Rickard, you have X # of new messages)
124 2005-01-13 23:16
Re: The new website (137 replies, posted in News)
Excellent, Rickard! I've been literally glued to this subject within the forum since I installed PunBB less than 24 hours ago Can't wait, and I suspect quite a few others feel the same too!
ditto
125 2005-01-13 21:46
Re: CSS/XHTML Resources (26 replies, posted in Programming)
Sitepoint.com client side tutorials on CSS
http://www.sitepoint.com/subcat/css