ok big_smile Go ahead just say it, I am being to picky.

hmm, my "English", as in the Queen's English dictionary has it as localization, but it does also have it as localisation (dep.)  as in depreciated wink.  Oh well, like I said.  No biggy.

You say colour, I say color, lets just call it a day big_smile.  Can't help but say "colour" with a French accent. lol

I must have viewed this page 100 times and never noticed this until today.

In the profile page (Essentials):

1st legend has "Enter your username and password"  Should read "Username & Password"  since you are not actually "entering" either.

2nd legend has "Enter a valid e-mail address" Should read "Your current email address" or something like that.  Again you are not actually entering anything here. (i.e. form).

3rd legend has "Set your localisation options".  In English its spelled localization.  wink

These are not show stoppers by any means, and I know most people are going to say that it's no big deal. But, IMO when someone gets around to it, it should be corrected.

Thanks.

You did your upgrade live with users logged in? Probably have to clear the cache.

80

(7 replies, posted in Programming)

Rod,  I had to do something similar (I think) with alternating row colors.  I just created two CSS rules.

External CSS file has this...

.rowcolor1 {background-color: #F1F1F1;}
.rowcolor2 {background-cloro: #CCCCCC;}

Then I used PHP to do the work for me.

$rowcolor1 = "rowcolor1";
$rowcolor2 = "rowcolor2";

$row_count =0;

$query ....
while ($row = mysql_fetch_array($query)) {

  $row_color = ($row_count  % 2) ? $rowcolor1 : $rowcolor2;
  
  echo '<tr class="'.$row_color.'">';
  .....
  $row_count++;

}

Not really sure if this is what your trying to do with PHP and CSS.

Paul: is this how you achieved the colors for the post icons?  Or did you manually adjust the colors for each "corner"?

good stuff!

81

(4 replies, posted in Programming)

Paul wrote:

Trouble is those moz specific properties don't validate. If you want it consistent then simply apply any border setting to IE and that will give IE sharp corners.

I figured that it would not validate.  I like how IE has the rounded corners. it kind of breaks up the "boxiness"  of the page.  I hope that a similar feature will be added to the next CSS rev. For the time being,  If I want it to look the same and validate, then I will apply a border setting to the FIELDSET.  The way I used to moz specific property will only effect moz browsers. IE ignores the > selector so it remains at its default.  The gecko default is just plain ugly.

Oh well its just one more thing I have to work around.  roll

82

(4 replies, posted in Programming)

Its not that I like or dislike the sharp vs. rounded. It was something that I thought would help make it look consitant across as least 2 of the three major browsers.  Since Paul seems to like IE's "rather nice default" wink

83

(4 replies, posted in Programming)

I have noticed that when viewing a fieldset in IE/WIN 6+ the fieldsets by default have nice round corners.  In Gecko browsers they are displayed as striaght 90° angles.  I wanted FireFox to display the round corners as well.  So I applied the following rule to the DIV>FIELDSET definition.

-moz-border-radius: 5px;

It seems to do the trick, and looks identical the the default FIELDSET that IE renders.  Opera will still display the striaght corners.

I know that this is not a supported CSS2 property, but I have read that something similar will be part of CSS3

84

(4 replies, posted in Programming)

Frank, I really do apprecieate your feedback.  There is so much to consider. I often don't know where to start first.

Thanks again

85

(4 replies, posted in Programming)

Thanks frank.

That?s the general consensus from other developers that I know.  Would you by any chance know of a good resource that explains tried and true methods of posting form data securely?

TIA.

86

(4 replies, posted in Programming)

I just wanted to know if anyone has ever used, or uses the PEAR library.  Looking for some pros and cons, etc.. I am experimenting with HTML_Quickform and I am looking for someone who has had any prior experiences with this and any other PEAR packages? I have noticed that Quickform objects output using HTML tables to generate a given form.  It states at the pear website that Quickform is XHTML compliant, but I am trying to not use tables in my design, except where tabular data needs to be displayed.  Does anyone know if there is a way around this?  I read something about some functions with in the QuickForm class that allow you to create your own templates for output, but I am not sure how it all works.  and BTW, I did RTFM wink.  The manual is so tech oriented, that my head spins.  I am just an average joe trying to learn more.

thanks!

87

(5 replies, posted in PunBB 1.2 bug reports)

Will this be fixed in future versions?

88

(5 replies, posted in Programming)

Nevermind.   got it now.  the p needs to be there.

89

(5 replies, posted in Programming)

Paul wrote:

If you want to see how a class is assigned to the first item by a loop just look at viewtopic.php. The first post in each thread gets a class of .firstpost.

Is this the line you are talking about?  and should there be a letter p before the opening <?php right after <div id="

<div id="p<?php echo $cur_post['id'] ?>" class="blockpost<?php echo $vtbg ?><?php if (($post_count + $start_from) == 1) echo ' firstpost'; ?>">

Thanks for the help.  Sometimes just getting started is the hard part.

90

(5 replies, posted in Programming)

Yes, I am running a loop to genterate the list items.  How did you overcome this with IE?

91

(5 replies, posted in Programming)

I am wondering of someone could offer an assistance with this problem I am trying to resolve.  I have a left column navigation system that is generated based on if a user is logged in and the level of access the user has.  I have created 3 navigation boxes that "stack" on top of each other.  All of the boxes are wrapped in a div.  The boxes have a header with a background color and the box has a 1 px solid border.  the navigation is generated buy using a unordered list with list-style-type set to none.  I set background colors for each list item for link and hover, etc.  I also have a top border on each list item to create a button effect using css rather than JS and images.

Here is the problem.  I dont one the first item in each list to have a border so I was thinking a creating a special rule that would be applied only to the top list item in the navigation.  since the menu is generated differently for different usergroups, I need to dynamically apply this rule "class" using PHP.  Any thoughts on how I could do this?  Should I take the procedural approach, and count rows and then check for the 1st row and apply the css rule ?  Again I may be making this harder than it needs to be.

Thanks

Connorhd:  Great plugin.  Very useful. I like the option for backing up other tables in the db that are not part of the core app.  I found one teeny weenie error.  The word ?Optimise? is spelled Optimize.  It appears both in the submit button and the successful message.  .  Believe me, I am not spelling genius.  I just thought that since this was something many people would use that you would want to change it.  big_smile

Awesome job!

thanks!  Worked like a charm!!!!!  How damn frustrating that was.  My style sheet was getting out of control. lol

I have been struggling with this for a couple of days now, and can find a catch all solution to the problem.  When you use either min-height or min-width in a style sheet to set the minimum height of minimum width of an element, it looks fine in moz browsers, but in IEPC and in Safari it breaks.  I have found that if you can simulate it by setting the width or height of a block level element inside the parent element.  This works fine if the last block level element is the same for each instance of the parent-child element being displayed.  Example of my min-height usage:

#contentarea {
    float: left;
    width: 520px; 
    margin: 0;
    padding: 0 0 18px 18px;
    border-left: 2px dotted #fff;
    text-align: justify;
    font-size: .9em;
    min-height: 500px; /* sets the minimum height of the conetent area box */
}

#contentarea p {
    height: 500px; /* workaround for IEPC lack of support for min-height */
}

The above example works fine ONLY if your LAST block level element inside of the <div id="contentarea"> is a <p>.  But if your main content area is dynamically generated, there is no guaranty that the last block level element inside of the content area is a <p>.  I would hate to have to create a rule for each element that would be the last displayed in my dynamically generated content area.  Also, and this is a big also, there can only be one instance of the block level element inside of your content box.  For example, if I had two instances of the <p> element, the height of each <p> element would be set to 500px.  This will create a lot of unnecessary space between the 2 <p> tags.  Sometimes <p> is not the last element.  On some pages I have just a form, and when this occurs the page breaks in IE. 

Does anyone know of a global fix for IE other than the one I described above?

I hope this was not to confusing.

Thanks.

95

(17 replies, posted in Programming)

roo wrote:

It's easy to get very complicated very quickly with CSS, and it tends to cause trouble when you do.  smile

Yeah tell me about it.  I was fiddling with a design last night.  I thought I was all set.  It looked great in FF.  Then I looked at it in IE.  This is when I found out that IE does not like/support the min-width or min-height property.  I made a separate Style sheet for IE that sets the width of a block level element i.e. <p> that was inside a div = to the value I set for min-width of the div on my main style sheet.   This is just a matter of preference. I like to keep my bug fixes in a separate file so I can keep track of them.

Thanks again, hopefully someday we wont have to worry too much about fixes or backwards compatibility to browsers that where around when the 386 was the king CPU. I guess it really matters who your target audience is.  If I know that my audience tends to be on the cutting edge of technology.  I won?t even bother to try and support NS4 or IE4. I know people have a lot of beef with how the browser makers follow the WC3 specs.  In their defense, one of my job responsibilities is to read and interoperate specifications for large scale construction projects, and what it all comes down to is how the person using the spec. interoperates it.  This is why I have to submit items to the authors, in this case consulting engineers, for approval.  If I don?t meet the intent of the specification, I have to make the required corrections and resubmit. 

Wouldn?t be nice if browsers had to be reviewed by the WC3 for compliance before they are release to the public. smile

96

(17 replies, posted in Programming)

First thing, this seems to be a hot topic yikes  Just like anything in life there is more than one way to skin a cat.

roo:  I take what makes navbox2 drop below navbox1 is the clear: left; property.  Thanks for the very simple example.  The engineer in me wanted to make things a lot harder than they needed to be.

Paul wrote:

For you next exercise buzzkill put main before the floats in the markup and give the left column a full height background colour.

I am all over it smile

I like the idea of the wrapper because I am finding it easier to add other elements into the page and still keep scale.  Although I still have found I needed to work around IE...  like italic text breaking a float.  Whats up with that.

97

(17 replies, posted in Programming)

hahaha big_smile hmm that looks vaguely familiar wink

98

(17 replies, posted in Programming)

Bwongar.com wrote:

Take a look at http://www.bwongar.com/ - Is that kind of the format you're looking for?

Yes, but not fixed width.  Nice layout btw big_smile


Paul wrote:

A good example of a two column layout that can be adapted to any look you like is here
http://www.projectseven.com/tutorials/c ? /index.htm
You even get the sample files to download.

I have a couple of Al's books.  He seems to be a big fan of DW.  I have DW4 Magic, and his e-book, I forget the title.  both are geared towards using Dreamweaver so he uses the term "layer" for div layout objects. not to be confused with NS <layer>.  DW4 Magic does not really get into using CSS for layout other than changing the look (colors and fonts).  Most of the book revolves around DHTML.  this is where the term layer gets used a lot.  His second book starts off with a table design and using CSS inlue of JS for rollovers.  and then goes into how to make the same page using CSS.  Just after my last post I remebered this book.  I never got into the CSS-P sections. 

BTW, he has some very tasteful artistic layouts.  My wife is an artist and loves his work. Who said CSS layouts boxy? wink

I guess the reason I steered away from floats was the problems I have read about with IE.

Again, I can't thank the both of you enough!

99

(17 replies, posted in Programming)

Paul wrote:

Assuming divs

Yes divs are being used

Why are you using absolute positioning for this?

I have a class called contentBox thats position is relative and has a z-index greater than the nav box.  I use this class for each content box created.  Actually,  a main content box, and a footer box (e.g. like the one at the bottom of the page). like this.

.contentBox {
   position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */
   width:auto;
   margin: 0 0 20px 170px;
   border:1px solid black;
   background-color:white;
   padding:0px;
   z-index:3;
}

To be completely honest, I got this class from bluerobot.com  I am still new to using CSS for postioning elements.  Only used it in the past for colors and padding.  The way I learn is from example, then reading the specs.  I also have picked up a couple of books in the past couple of days, and I am just scratching the surface.

Your example is what I eventually did.  I was reading into things way to much.  If you know of a better way to achieve this.  I am all ears and eyes wink .  I really do appreciate all the feedback and help I get from here.  Being that Web Auth/dev is a hobby for me, I can't afford to take any formal education on this subject.  Having a wife and kids adds to the time constraints.  Its a simple two-column layout with navigation boxes on the left and content on the right.  The resources I found on the web helped some, but I wanted to come up with my own "look-and-feel".

Thanks again!

100

(17 replies, posted in Programming)

hmmm.  Can't seem to get it to work.  would the style container be #nav .box1 {....}  or #nav>.box1 {...}