Jump to content

stuartpb

Members
  • Posts

    326
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by stuartpb

  1. We were taught at uni to not use attributes as class and id names, and it's the way I've always coded. It's much easier and simpler just to use well thought out class and id names, which can also be descriptive of their purpose. So that way, if a 3rd party is looking at the css or html, it's much easier for them to work out whats what.

  2. My reply still stands. As you said, nothing is really 100% going to work, but at least knowing what to look for, if you have no spam traps, is the next best thing.

    I'm not trying to say you are wrong, I was merely offering another way to deal with spam. You seem to have got me wrong there?

    @Tom, I've never seen that post, so thanks I'm going to use that for my site B)

  3. I used clear as a name, doesn't mean he has to use it, he could call it big_space_cowboy for all I care, and it would still work. examples don't have to have the exact same name.

    Seeing as you never mentioned this, and he is doing what we say literally, I pointed it out. No need to get antsy over it ;)

  4. To make it easier,

    <div class="clear"></div>

    Put that just above the start of the footer, then in the css file:

    .clear:clear:both;

    That will do the same as what Stuart put.

    You shouldn't name a class or ID the same as an attribute. That's why I used the clearedfloats class name.

    @FSX, just remove the div then. It works on the HTML you provided and I have tested it, so I'm not going to be guessing where you went wrong :rolleyes:

  5. ok but i dont have this in my stylesheet

    please tell me what to insert in style

    The div has inline styling, so you don't need to input anything in your CSS.

    That is unless you want to use the stylesheet, which is a better way to do things. So in your CSS you would enter:

    .clearedfloats {clear:both;}

    Then in the html I showed, you would change the added div to:

    </div>
    </div>
    <!-- Sidearea Ends -->
    
           <!-- Container Ends -->
           <!-- Footer Starts -->
    
    <div class="clearedfloats"></div>  <!-- ADD THIS HERE -->
    
                   <div id="footer">
                           <p class="floatleft">copyright © 2011 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?> | <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a> | Template redesigned/reedited by Airblue Virtual</a></p>
                           <p class="floatright"><a href="#">Utility</a>  |  <a href="#">Links</a>  |  <a href="#top">Back to Top</a></p>
                   </div>
           <!-- Footer Ends -->
           </div>
    <!-- Wrapper Ends -->
    </body>
    </html>

  6. Thanks alot staurt but now my footer is not being displayed i couldnt understand your post after my solved post.

    :lol:

    OK. Here's what I meant:

    </div>
    </div>
    <!-- Sidearea Ends -->
    
           <!-- Container Ends -->
           <!-- Footer Starts -->
    
    <div style="clear:both"></div>  <!-- ADD THIS HERE -->
                   <div id="footer">
                           <p class="floatleft">copyright © 2011 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?> | <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a> | Template redesigned/reedited by Airblue Virtual</a></p>
                           <p class="floatright"><a href="#">Utility</a>  |  <a href="#">Links</a>  |  <a href="#top">Back to Top</a></p>
                   </div>
           <!-- Footer Ends -->
           </div>
    <!-- Wrapper Ends -->
    </body>
    </html>

  7. It isn't always the email that will give them away, it is the country they select that gives them away all the time. They never change drop downs.

    There is an effective trick I use on some registration forms, and that is to have a hidden input field (with something like name as the field title) on the form. a spam engine will enter text into the field, even though it's hidden and not viewable in the html output. I then wrote into the form handler a function whereby any submitted forms with the hidden field completed would be discarded. The spambots look for common fields in forms, and will try to complete these fields, so choosing something like name for the title will usually catch the spambots out. When a pilot completes the form, they don't see the hidden field, so it remains empty and the form gets processed as normal. It's not 100% effective, but then nothing is when it comes to anti spambots.

  8. Glad we got there in the end!

    You also need to clear the floats on the sidebar and mainarea, or else the footer will place itself incorrectly if there is little content. You can do so by placing the following code just before the footer div beginning:

    <div style="clear:both;"></div>

    I set a CSS rule for this purpose:

    CSS:

    .clearfloats {clear:both}

    The I can reuse this in the html like so:

    <div class="clearfloats"></div>

  9. You've not closed two divs in the HTML and that's why the sidebar is in the incorrect position. For future reference, if you are having styling/layout issues, having the CSS and HTML displayed will get you help much quicker than it has this time. :angry:

           </p>
    <br />
    
    </div> <!-- ADD THESE TWO DIV CLOSE TAGS HERE -->
    </div>
    
    <!-- Sidearea Ends -->
    
           <!-- Container Ends -->
           <!-- Footer Starts -->
                   <div id="footer">
                           <p class="floatleft">copyright © 2011 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?> | <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a> | Template redesigned/reedited by Airblue Virtual</a></p>
                           <p class="floatright"><a href="#">Utility</a>  |  <a href="#">Links</a>  |  <a href="#top">Back to Top</a></p>
                   </div>
           <!-- Footer Ends -->
           </div>
    <!-- Wrapper Ends -->
    </body>
    </html>

    • Like 1
  10. Ok now we have something to work with. Try increasing the wrapper width until the sidebar is positioned correctly. I would try 960px first. You can work out the required widths by calculating the sum total widths of all the containers, plus the left and right margins on each, this would allow you to work out a layout that would fit into the overall page width:

    http://www.w3schools.com/html/html_layout.asp

    http://www.htmldog.com/guides/cssadvanced/layout/

    http://www.maxdesign.com.au/articles/css-layouts/

  11. ok here is the screenshot

    screenshot.jpg

    The screenshot is useless. It doesn't tell us what's causing the problem. It's the HTML and CSS that is used to render the page where the problem lies. Without seeing exactly how you have laid the page out how can you expect anyone to be able to point out what's wrong?? :rolleyes:

  12. I know, but post IPs and email addresses too...

    As BMI Baby suggested, who would administer and moderate the list? There would have to be measures in place to ensure the usage of the list wasn't abused, and this could quickly turn into a full time job. There would have to be some structure to rules on any system like this.

×
×
  • Create New...