Jump to content

falkencreative

Advanced Member
  • Posts

    4,419
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by falkencreative

  1. The short answer is this -- an API is a way for an external person/machine to access a database and retrieve information from it. Usually, you'd ask for information using a specific URL, and you'd get the data you need in some sort of structured format -- either JSON or XML usually (this particular response returns XML). You'd then use PHP to parse that result and use the data however you needed. I'd suggest doing a search for tutorials on building a basic API to understand how it works, and specifically how to process the XML returned from an API request.
  2. Originally, the course was intended to be two parts, but I'm currently working on other things at the moment. If you definitely want to see the backend section, I'd suggest emailing Stefan directly (stefan [at] killersites.com), since he's the one who decides what I work on. Thanks for your interest, and I hope the course was useful!
  3. @cygnet - a CSS change won't fix it. @Rwaller - You'd need to modify the render_products() function within /functions/templates.php to add support for individual rows within the product table. Within the foreach loop that loops through each product, you'd need to add a counter that tracked which column the product belonged in. So, for example, the first product would be product 1, the second would be 2, etc. If the counter is 1, you know to start a new row and insert a "<tr>" tag. If it is 3 (assuming you want three products per row), after the product has been added to the output variable, you'd need to insert a closing "</tr>" and reset the value of the counter back to 1. Hope that makes sense?
  4. Try looking at/using Adobe Kuler -- that's what I go to when I'm stuck on colors: https://kuler.adobe.com/
  5. Thanks for letting us know. I've passed along your message to the person who usually handles the Video Library, and hopefully that will be fixed in a day or so.
  6. I think you'll need to post more of the code for us to be ale to help with this.
  7. Yeah, I think it's a similar issue to what happens to text copied and pasted from Word sometimes -- If you copy/paste text from Word into a WYSIWYG field (for example, say a textarea when you are editing a Wordpress page) you'll often get junk spans and CSS classes included as well. I would bet that if the code is pasted into a plain text editor like Notepad, then copied/pasted from Notepad to the forum, it will be fine. I don't think there's an easy way to fix it, and I would bet that other forums have the same sort of issue unless they are using only plain text or markdown to enter comments.
  8. Yes, you can have multiple statements in a .htaccess file. I'm assuming you have your server set up to support .htaccess files? If not, see the "How to do a 301 redirect using a Windows server" in the link. If you are wanting to redirect all visitors from anywhere on the old site to the home page of the new site, you'd use: RewriteEngine On RewriteRule ^(.*)$ http://newdomain.com/ [R=301] If you want to redirect all visitors who visit a page on the old site to the same page on the new site, you'd use: RewriteEngine on RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] With the samples above, you don't need to include the old site URL anywhere -- the server will automatically figure it out. And the .htaccess file needs to go in the root of your old domain's hosting. http://stackoverflow.com/questions/1945568/htaccess-redirect-all-pages-to-new-domain
  9. This has a pretty good overview: http://www.bruceclay.com/blog/2007/03/how-to-properly-implement-a-301-redirect/
  10. Thanks. Is it consistently happening when you use DW6? Or just randomly? When you copy/paste text, does the extra/unnecessary text show up immediately, or only after you post and view your posted message?
  11. A couple things: -- You can use a 301 redirect (http://www.seomoz.org/learn-seo/redirection, which tells Google that the URL has moved permanently. As Google recrawls the site, it should update its index. -- You can also ask Google to remove specific pages or an entire website from its search results using Google Webmaster Tools (http://301redirects.net/redirect-old-domain-to-new-website.php)
  12. It isn't quite that easy. Joomla (like Wordpress or other CMS's) uses a database. So if you want to transfer it down to your computer, you'll need both the FTP info and the ability to export the database/import it into your own server. In most cases, people set up a server on their computer using something like WAMP or MAMP, which adds support for a server, PHP and MySQL. Usually you would use a tool like PHPMyAdmin (included with WAMP or MAMP) to import/export the database. However... what changes is the client needing exactly? If they don't need to change the layout/styling of the website, and just update the content, the client should be able to provide the Joomla username/password, and you should be able to make those changes using the Joomla administration panel online -- no need to use Dreamweaver or transfer the site to your computer. One way or another, you'll probably need the Joomla login. As far as your specific FTP question, you'd get that info either directly from the client or you'd need the client's web hosting information and you'd log into whatever web control panel they have and get the FTP info from there.
  13. It happens at both times -- when the browser loads, and also when resizing. That makes it convenient for testing purposes.
  14. Just a quick comment... Are you sure you can do this? PHP code is processed before/as the page loads. Javascript code is only processed after the page loads. For example, you can use PHP to set Javascript variables, but I'm pretty sure you can't use Javascript to create PHP (short of passing a string to PHP via AJAX and then PHP parsing it into an array). Unless you meant this?
  15. Ah right, that makes things a little more difficult. If you are using media queries, you should be able to adjust the height for specific screen widths? More info: http://mobile.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/
  16. Why are you using position:absolute for that section? Seems like you really don't need that?
  17. the "mobile.mysite.com" is just a subdomain -- it would need to be set up with your hosting, but it doesn't require any additional registration or payment. For a mobile redirect, you might want to check out http://detectmobilebrowsers.com/. Personally, though, if you are going to do a mobile version (and assuming the content is changed/simplified between the two versions) please give the mobile user a way to view the full site. As a potential mobile user, I like the ability to have the web -- the FULL web -- available on my phone. I don't want to view your website and get some watered down version which is missing the essential info I was looking for. Pet peeve of mine.
  18. I wonder if Dreamweaver/code view adds additional formatting that isn't copied over properly when pasting between it and a browser. What happens if that code is pasted into a simple text editor like Notepad, then recopied/pasted? I wonder if this is actually a Dreamweaver problem, and not the forum at all? (if so, a forum upgrade may not fix it?)
  19. Huh. Well, the more recent versions of the forum have better moderation functionality, so I'll try to encourage Stefan to upgrade, and maybe that will fix it.
  20. In regards to the actual fix... the issue is that in your HTML, you have your navigation within your #logo div. In your HTML, I would suggest doing two things: -- Use proper code indenting, like the NetTuts sample shows, so you can see what elements are nested within what other elements -- Move the navigation ul after the #logo div Next, you need to do some CSS fixes. The first thing would be to add some additional styles to your #container div, since that holds your site: width: 960px; // sets a fixed width. May need to be adjusted, depending on your needs. margin: 0 auto; // centers the site horizontally, in the middle of the browser position: relative; // allows you to use absolute positioning on your elements, and the will be positioned relative to #container Then, on your #logo, you need to change "left:320px;" to "left:0;" And finally, on #menu, add "top: 20px;" to position it correctly. Hope that helps? Personally, I'd highly suggest following along with the tutorial, building each step as they explain it, and working on it that way. It'll result in clean, error free code, and hopefully you'll learn something along the way?
  21. I'm confused. If you have a tutorial that you are following along with, why aren't you doing step five, which explains how to build/position the logo and navigation?
  22. Where did you hear that HTML is "better" than ASP? That isn't true. From an SEO standpoint, a search engine doesn't care what language the site is built in -- it cares about the content on the page, how easy pages are to find and understand, how many other people link to the same page. It really isn't possible to convert from ASPX to HTML, at least not without losing functionality. ASPX provides functionality that regular HTML can't provide -- it can do things like shopping carts, logins, remembering information between pages, storing and retrieving information in a database, etc.
  23. I'll see if I can look into it. Andrea has mentioned the same thing, though at least for me personally, I haven't been able to duplicate the issue. I'll talk to Stefan about upgrading the forum software to the latest version to see if that fixes things. If you could step me through exactly what you are doing, and what code you are trying to enter that causes the forum to get confused (HTML? CSS? Anything?), that would be helpful. It would be nice if I could be able to duplicate the issue so I can properly explain it to Stefan.
  24. Sorry, I'm not sure what's going on with that -- I would expect "ceiling(10*rand())" to only ever return one value. This sort of question might be better off asked at StackOverflow, where you'll have more people with more insight into MySQL's quirks.
  25. Which browser/browser version/operating system are you using?
×
×
  • Create New...