Jump to content

trevelluk

Members
  • Content Count

    76
  • Joined

  • Last visited

Community Reputation

0 Neutral

About trevelluk

  • Rank
    Newbie
  • Birthday 06/17/1984

Previous Fields

  • Languages
    PHP, Java, JavaScript, XHTML, CSS

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Bristol, UK
  1. Yes, we'll definitely need a URL to be able to provide help with this.
  2. There's an HTML Validator extension available for Firefox at http://users.skynet.be/mgueury/mozilla/ Once you've installed it, a list of validation errors will appear at the bottom of the View Page Source window.
  3. This looks a bit unusual here, as it looks to me as though the second line (if it wasn't commented out) would be the one initialising sessionFactory.I would have thought you'd need something like:sessionFactory = new Configuration().configure().buildSessionFactory();Session session = sessionFactory.getCurrentSession(); Otherwise there's nothing to initialise sessionFactory, and so it will be a null pointer.
  4. Would I be correct in thinking that the 1st and 2nd items both have the same date, and 3rd one is different? If that's the case, you've probably run into this "feature" of the the_date() function: See http://codex.wordpress.org/Template_Tags/the_date for more info on this.
  5. One thing to bear in mind about this technique is that a lot of email clients and web-based email providers (Hotmail, GMail etc) will not load remote images unless they are specifically asked to, precisely to prevent this sort of tracking. So just bear in mind that the open rates you see will most likely be lower than the actual open rates.
  6. I think the problem is that after each rewrite, then all of the rewriting rules are by default applied again to the re-written URL, so I think what's happening is something like this:Someone visits mystyle/index.phpThis matches your rewrite rule, and is rewritten to styles/index.php?id=mystyleBUT, this also matches your rewrite rule, and so gets rewritten again to styles/index.php?id=stylesWhich then matches again, but I'd imagine that at this point then the web server sees that it would rewrite to the same URL and so stops to avoid an infinite loop.There's a couple of options:1. Change the ru
  7. By default then the XML parser will convert all element names to uppercase. You can change this with the xml_parser_set_option() function. See http://uk3.php.net/manual/en/function.xml-...-set-option.php
  8. #expertRO :hover { The space in the selector is the problem, as this will set the hover style for elements withing #expertRO rather than for #expertRO itself. Try changing the selector to: #expertRO:hover{
  9. That should work absolutely fine. Unless you're deliberately trying to hide the text (e.g. by setting the font color and background color the same) then there shouldn't be any SEO consequences either.
  10. trevelluk

    number format

    The second parameter to number_format controls the number of digits to display after the decimal point. The manual page at http://uk3.php.net/number_format provides more information.
  11. It looks as though the problem is that the file copy (via the imagejpg(), imagegif() and imagepng() calls) happens inside the if statement: if ($w > $width || $h > $height) So, if $w is less than $width AND $h is less than $height, you'll jump straight down to: imagedestroy($orig); without actually doing anything to the file.I'd suggest adding an else statement at the end of your size check, which just does a straight file copy. Something like: if ($w > $width || $h > $height){... all of your current resizing code ...}else{copy($orig, $dst);}imaegdestroy($orig); This means th
  12. First of all, this is a Javascript question, not a Java question (despite the similarity of the names, they're very definitely not the same thing). You're certainly not the first to make that mistake though!I suspect that the problem is that you're including two copies of JQuery, which is a widely used JavaScript library: <script src="datepicker/development-bundle/jquery-1.5.1.js"></script>.....<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> Try removing one of those lines (it probably doesn't matter which one) and see if that fi
  13. The more usual approach would be to have two tables, weight_class and fighter. Add a primary key to weight_class, and then add a weight_class_id column to fighter containing the primary key of the appropriate weight class. E.g. something like this: weight_class---------------id | name---------------1 | heavyweight2 | middleweight3 | lightweight----------------fighter---------------------------weight_class_id | name---------------------------3 | small guy1 | big guy--------------------------- So from this, you could tell that "big guy" is in the heavyweight class, and "small gu
  14. While I'm far from an SEO expert, I'm fairly sure that at least some of the major search engines will ignore hidden text (which presumably would include links).
  15. With CSS, no, as that is only used to control the presentation of what's already on the page, rather than adding new things to the page.Javascript is a possibility, provided there is consistency in how the HTML files for each chapter are named. E.g. if the files are called something like "chapter1.html", "chapter2.html" then it shouldn't be too tricky. If this is the case then I can provide a few pointers (and I'm sure others will be along to help as well). If there isn't any consistency in the naming then I think you're out of luck with JS as well.
×
×
  • Create New...