Jump to content
Killersites Forums

falkencreative

Advanced Member
  • Posts

    4,419
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by falkencreative

  1. What I mean is are you getting any errors in the Javascript console? I understand that things may not be working, but seeing what errors are contained within the console is often important when debugging. http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers
  2. OK, better. Are you still running into any Javascript errors?
  3. I'm just asking because the latest code you posted: <script type="text/javascript"> $ noConflict (). </ script> Is incorrect.
  4. Any chance you can post a screenshot, or have a link to the site if it is online? It would be helpful to visually see what is going on.
  5. Did you see the comment above regarding fixing your noConflict() line?
  6. I believe that's the same username/password for both. So on your localhost, you just have an export .sql file? You haven't used PHPMyAdmin or MySQL Workbench to create the local database and import the information in? This http://www.smashingmagazine.com/2013/04/08/moving-wordpress-website/, or similar articles, might be useful to reference?
  7. If you're running MAMP, the username is "root", the password is "root", and the hostname is "localhost". The name of the database will depend on whatever you named the local database when you copied it over.
  8. OK, leave the username/password alone then -- sounds like you have that part correct. I double checked, and for the validateLogin() method in m_auth.php, it seems like doesn't match up with my code, which is: function validateLogin($user, $pass) { // access db global $FP; // create query if ($stmt = $FP->Database->prepare("SELECT * FROM users WHERE username = ? AND password = ?")) See how there is a global $FP object that is accessed, that stores the database, authorization object, etc? Are you following my tutorial? Or are you building things on your own on top of it? I'm pretty sure I didn't demonstrate the code you are using in the validateLogin() method. Or maybe that code was left over from earlier in the course, when I was integrating the login, and either you missed editing it to add the $FP, or you haven't gotten there yet in the videos? I'm not sure.
  9. You can't testing prepared statements in PHPMyAdmin -- you will get errors. That line is perfectly fine, valid SQL (well, it is if the "?" are properly filled in with the data.) Again, this usually comes down to an incorrect username and password. For XAMPP, I believe the username should be "root" and the password is blank ("").
  10. For the noConflict, I believe that line should be this: <script type="text/javascript">$.noConflict();</script> You have the period at the end, whereas there should be a period between the "$" and the "noConflict"
  11. Can you post your database connection details section of your wp_config.php file? (if this is only running on your local computer, there should be no problem regarding security or privacy -- just don't post the database details of the live website). Are you sure the name of the database is accurate? And the server value listed is "localhost"? And of course that the server and MySQL is running? If you are getting a database error, it won't be a path issue. But that will likely be an issue after you fix your database connection. Wordpress stores the path to the website in two spots in the options table in the database, that will need to be updated. In addition, any links to resources (images, downloads, etc.) will often refer back to the old site. To fix this, I've used both https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ (free) or https://deliciousbrains.com/wp-migrate-db-pro/ (paid) in the past.
  12. 1. Have you copied the database over? If you're using Wordpress, have you updated at least the settings table with the new domain/path information? Are you using the right username/password combination that MAMP expects? (root/root)
  13. I responded in your other topic about your Javascript issues. As for the "non-object" issue, that's usually due to incorrect database login info -- where your database username or password is incorrect. Make sure to double check that, and check the default mysql username for whatever program you are using to run MySQL (MAMP, WAMP, etc.)
  14. Why are there so many random spaces in your code? Before and after "/", and "="? After the "$" in "$noConflict()" and before the "()"? These sort of things cause problems and unexpected behavior. Make sure you're following my code regarding formatting. Also, though I'm not really sure if this would cause a problem or not (may depend on the browser), stick to all lower case for <script> and <link> opening/closing tags. For the noconflict, make sure you're formatting the line based on my example. You can't have spaces after the "$" or before the "()" and expect it to work properly. If you're still having trouble, see http://api.jquery.com/jquery.noconflict/. As for the Colorbox issue -- assuming here that you fix the above issues -- if it still isn't working, you'll need to see the videos near the end of the course where I update ColorBox and the TinyMCE scripts. Unfortunately, updates to those scripts since I originally recorded the series have caused problems.
  15. Everyone tends to have their own opinion about hosting. I've had good experiences with HostGator -- never really had a problem with down time, and their support has been helpful when I've ever needed it. Their basic plans run in the $5-$10 per month range. Stay away from GoDaddy for hosting. They are cheap, but you get what you pay for.
  16. OK, got it. On line 65 in register.php, add the missing ">" at the end of the line, so the </option> tag completely closes, like this: $select = '<option value="">Select an option</option>'; Do the same thing on line 73: $select .= ">" . $name . "</option>";
  17. I've looked over the files, but as far as I can tell, they seem fine. Can you explain in more detail what the issues is? I'm not sure what you mean by "gets disarranged". What are you doing, what are you expecting, and how is the system not working the way you are expecting? Are you getting any specific error messages?
  18. Can you post the register.php file? Are you sure you aren't missing a quote, or that there isn't another error in your code? (a missing closing tag on an HTML element, for example?
  19. The first thing you might try: splitting that line into two lines: $password = md5($input['pass'] . $config['salt']); $stmt->bind_param("ss", $input['user'], $password);
  20. Which tutorial are you following? (I have two: a procedural login, and an OOP/MVC style login). Can you provide the line above/below line 46 as well, just so I know the context of the issue?
  21. That style of comment is only good in CSS and Javascript. For HTML comments, you need to be using the right syntax: <!-- your comment here -->
  22. Sorry, thought you were talking about HTML, didn't realize this was in the Photoshop forum... For justification, check this? http://www.photographybay.com/2012/06/21/photoshop-tip-justifying-text/ For the special characters, check http://technutpam.blogspot.com/2012/11/how-to-insert-special-text-characters.html? Or find an instance of the character online, and copy/paste into Photoshop?
  23. Is the regular text-align:justify property not working? As for special characters, you'd enter those as normal on your keyboard (as far as I understand it, anyway...). I don't think there is anything special you need to do to the textbox itself.
  24. SEO isn't about installing some script. SEO is about offering high quality content that visitors are interested in and that other people link to.
  25. To be honest, my work with frameworks is pretty limited -- I've worked with CodeIgniter and Laravel, and done some playing with Composer, and that's about it. I'm not sure how much help I could be with Zend anyway. Best of luck!
×
×
  • Create New...