Jump to content

falkencreative

Advanced Member
  • Posts

    4,419
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by falkencreative

  1. I've tested your code on my own machine, and I'm not having any problems. After running that code I get "stefan". What sort of server setup are you using? WAMP? MAMP? Something else? As far as I know, this code should work the same and you shouldn't need to modify any settings for this to work.
  2. The main thing that appears not to be working is your jQuery on() function. $('#fp_cancel').on('click', function(e){ e.preventDefault(); $.colorbox.close(); }); Note this section in the documentation (especially the first sentence): #fp_cancel elements are added to the page after the page is loaded, so you need to change your on() call to use a delegated events to attach an event handler (it's inserted at the end of the document, so you'd likely need to use "body". The documentation provides this example -- you'd need to follow this as an example: http://api.jquery.com/on/ Hope that helps?
  3. No one has responded to this yet, so thought I'd leave a quick comment... In regards to "$stefan = new person();" that's just what he happened to name the variable. There's no exact reason for using a person's name, and yes, using a more general name like $name or something similar would make more sense. The exact variable name doesn't change the value that it holds.
  4. That shouldn't be happening... the add to cart functionality is done using PHP -- not something that should be effected by the choice of browser. Do you have the site online anywhere? You can also zip up the code/dump of the database, and I can look at it for you (email to ben [at] killersites.com) but I'm super busy right now and probably won't have the chance to look at it until the end of the week/the weekend.
  5. The browser can't find these files: http://localhost/frontcms/app/resources/css/fp_style.css Failed to load resource http://localhost/frontcms/app/resources/javascript/colorbox/colorbox.js Failed to load resource http://localhost/frontcms/app/resources/javascript/colorbox/colorbox.css Looks like they are all pointing to a localhost location rather than your live site. For example, to help with the install process on a CMS? I don't think so, though I haven't really done any research on the subject. Wordpress might be a good example to follow: they have an installer where the user enters the database details, and then the system automatically sets up the required database tables and an admin user.
  6. What browser are you viewing the site in? Using Chrome (Chrome 24, Mac) I've logged into your CMS and tested your site, and everything seems to be working correctly for me -- the popups are opening and closing correctly. In regards to using Mercury, yes, you could switch out TinyMCE for something else. I can't really provide support for that process though -- I've never used Mercury and I'm not familiar with Rails.
  7. falkencreative

    Bug In Script ?

    in that case, I think "name" is supposed to be "$new_name".
  8. falkencreative

    Bug In Script ?

    That likely means that there is a "$" missing before a variable name on line 31. Take a look at that, or post the code from class_lib.php and we can take a look.
  9. If you actually purchased it at http://www.killervideostore.com/, then you should be able to download it here: http://www.killervideostore.com/user-login.php. If you signed up for a subscription to the Video Tutorial Library (http://killersites.com/video-library/), those are videos you can only view online. Hopefully that makes sense? If you have any questions, you can email Stefan [at] killersites.com.
  10. As I said, check the documentation: http://api.jquery.com/live/ http://api.jquery.com/on/ on switch to an earlier version of jquery (anything before 1.7): http://code.jquery.com/jquery-1.6.4.min.js
  11. Just removing or fixing that code won't necessarily be enough to fix things. That's just something I noticed -- not a significant error that the Console was complaining about. Next up would be to fix the "live" issue as I talked about. The error is talking specifically about: $('#fp_cancel').live('click', function(e){ e.preventDefault(); $.colorbox.close(); });
  12. When I look at the console, I see these two errors: -- Uncaught TypeError: Cannot read property 'msie' of undefined colorbox.js:4 (colorbox.js) -- Uncaught TypeError: Object [object Object] has no method 'live' I also see that you have used jQuery's NoConflict functionality, but there is code at the bottom of the page that doesn't properly follow jQuery's NoConflict rules: <script type="text/javascript"> var currentYear = (new Date).getFullYear(); $(document).ready(function() { $("#year").text( (new Date).getFullYear() ); }); </script> Personally, I would start by fixing the above code. Then I would look at the "live" issue -- apparently in the latest version of jQuery, that functionality has been depreciated and they intend you to use "on" instead (check the jquery documentation). You can either switch to use "on" rather than "live" (check the documentation), or you'll need to load a version of jquery earlier than the current 1.7 version. I'm not sure what the colorbox error is, and a quick search isn't turning much up, but try fixing the other two errors first and perhaps that one will resolve itself.
  13. The first thing I would do would be to check the Javascript Console for Javascript errors -- it will tell you about incorrectly linked files, misspellings in your Javascript code, etc. http://www.netmagazine.com/tutorials/javascript-debugging-beginners
  14. What username/password combination are you using? "admin" for both, right?
  15. I really don't think there is going to be a magic tool for that -- each frame of that animation would very likely be hand drawn. To some extent you can use the free transform tool to adjust the proportions of large elements (like a wing), but this is more of an illustration question than something done by a photoshop tool.
  16. ...sorry, I'm not sure if I understand. Do you have an example or a rough sketch of what you need?
  17. That's because you changed the CSS to be invalid (there is no selector to indicate what element(s) the margin/border/padding are being applied to), meaning the browser ignored the incorrect CSS.
  18. Finished college, and diving into full time freelancing. Super busy!

    1. LesP

      LesP

      hi Ben, hope you do well in your Web business

    2. LesP

      LesP

      hi Ben, hope you do well in your Web business

    3. falkencreative

      falkencreative

      It's keeping me busy. =)

  19. Correct. I can't really comment on this -- it isn't something I use. You might want to check the FiddleJS support or FAQs or something. Though I don't use it much, it is useful for questions where the code needs to run, and means it's a bit easier for me to help you with any questions without having to manually create my own files and copy/paste code.
  20. Here's a simple example. Say you have this: x = 1; x += 2; The result of x should be "3". The += adds whatever is on the right side of the "+=" to whatever is on the left. It's the same as saying: x = 1; x = x + 2; In your sample, when you click the button, you use jQuery to get the value of each .span, adding it to "x" each time. The alert message that appears after the loop completes displays the values for all .spans in the page. The first time it loops, it grabs the value for the first .span: "Nationality: " and adds it to the x variable. The second time it loops, it gets the second value " Irish", and adds that to x. Once the loop completes and there are no more .spans to access, Javascript uses an alert message to display the final value for x. Hope that helps?
  21. I would suggest using .position(): http://api.jquery.com/position/
  22. falkencreative

    New Member

    Welcome to the forum!
  23. I've never had a problem with it. Have you searched for that specific error message? I would bet you aren't the only person who has gotten that error message.
  24. So when you run the first file, you get "We have no products listed in Our store Yet"? In the second file, here's the PHP code at the start, a bit more organized: ?php // Check to see URL Variable is set and that it exists in the database if (isset($_GET['id'])) { $id = preg_replace('#[^0-9]#i', '', $_GET['id']); //use this var to check to see if this ID Exists, if yes then get the product //details, if no then exit this script and give message why. $sql = mysql_query("SELECT * FROM products WHERE id='$id' LIMIT 1"); $productCount = mysql_num_rows($sql);//count the the output ammount if ($productCount > 0) { // get all the product details while($row = mysql_fetch_array($sql)) { $product_name = $row["product_name"]; $price = $row["price"]; $details = $row["details"]; $category = $row["category"]; $subcategory = $row["subcategory"]; $date_added = strftime("%b %d, %Y", strtotime($row["date_added"])); // Notice here how we changed it from _added to _Added //product_name,price,details,category,subcategory,date_added } } else { echo "That item does not exist."; exit(); } } else { echo "No product in the database with that ID"; exit(); } mysql_close(); ?> If you are getting the "No product in the database with that ID", according to your code, that means that you don't have an ID set in the url, like "products.php?id=1". You need to have an id set in order to use this page.
×
×
  • Create New...