iWeb Tip #23 – Comments in iWeb

106
60012
Comments in iWeb

Comments in iWebSo you have a website you’ve created in iWeb and you have a blog or page that you want to add comments to, well then this is the iWeb tip for you.  This post is all about getting comments into your iWebsite.  iWeb has a built in commenting system, but it is for MobileMe Members only.  In this tip I will show you how to add comments to your iWeb made site no matter who you are hosting your site with!  Adding comments into your iWeb made site is great way to add interactive elements for your viewers, they start conversations and it starts to build a community on your website, plus giving you some feedback on your post.  I’ve seen many people post that they’ve wanted this added as a tip in the iWeb Forum here, and finally here it is.  So lets get started.

View Demo »

There are 4 major options when choosing to get comments onto your iWeb site.  The four big commenting systems are:

Each of them have different features and looks to them.  So I’d recommend looking at each one and deciding which one will work best for you and your website.  I’m going to show you how to get your comments if your using MobileMe first, then we’ll get into implementing comments if you’re not using mobileme.

Comments with MobileMe:

MobileMe CommentsMobileMe is probably the easiest way to get comments into your website.  It’s already built in to iWeb, and it’s very simple for users to use.  If you don’t have a MobileMe account yet, it’s a great option that Apple offers.  It gives you 20GB of online space for storage or a website, it syncs contacts; calendars, bookmarks, and more across all your macs and devices, as well as many other features which you can read about by visiting the MobileMe Site.  Here’s how to get your comments working if your hosting your site with MobileMe.

  1. Create your page(s) in iWeb, then click on the site folder (it’s the main site above all your pages).
  2. Choose MobileMe as the choice where it says “Publish To:”
  3. Then go to the Blog/Podcast page your wanting your comments on, then open the inspector and choose the “Blog and Podcast Inspector” (It’s represented by a an RSS button).
  4. In the Blog and Podcast Inspector you’ll see a tab that says Blog, click that and you’ll see a section that says Comments.
  5. Click the Comments Checkbox.  You’ll be presented with a box that tells you about what comments does, just click OK.
  6. Then click the Allow Attachments (Optional).  This allows users to attach images, documents, etc.  It is possible for visitors to attach items that are objectionable to you or others so if you choose to use this option be sure to moderate the comments often.
  7. Publish your site and that’s it!

You’ll see that when someone comments on your site using the MobileMe Comments iWeb will have a little number tick next to it’s icon (similar to Mail) when there is a new comment, so you’ll know when there is a new comment on your site.  That’s it and have fun.


Adding Comments to your site without MobileMe:

Non MobileMe Comments in iWebTo add comments to your site without MobileMe, we first have to sign up for an account at one of the comment platforms by going to Disqus.com, IntenseDebate.com, or AboutEcho.com.  Disqus and Intense Debate are free and Echo costs about $99 p/year.  We then setup our settings on their sites, get comment code and paste into an HTML Snippet.  The only problem with this is that we need to adjust our snippet to the size our commenting is going to be, because the HTML snippet will not adjust in size as more comments are added to our site.  So you have to either stretch your snippet to the size that you expect your comments to grow as, or you can put the code onto a blank HTML page and iFrame that into iWeb, that way you can set the size of your snippet to be whatever you want and as more comments are added, the iFrame will simply have a scroll bar to show all the comments.  It works really good and makes it easier for you to manage and design.  I tell you this upfront cause there are really two ways to implement this into your site 1) A Direct Snippet and 2) An iFrame (as I discussed).  So Let me first show you how to do it with a Direct Snippet, then I’ll instruct you how to do it with an iFrame so you can have scrolling comments and won’t have to worry about the size of your HTML Snippet as more comments are added to your site.

1) First Sign up for a Free account at Disqus.com or InstenseDebate.com (Or AboutEcho.com if you want to pay the $99 yearly fee) and get your comment code.

Signing up and getting comment code with Disqus.com:

  1. Go to Disqus.com and hit the “Sign Up, Free” Button.
  2. Enter your Site URL, Site Name, Site Shortname, then decide your username, password, and email address you want to use.
  3. You’ll then be directed to step number 2 where you will choose the language for your comments, and some optional features such as providing allowing users to log in with Twitter, Facebook, Yahoo, Open ID, and others, and the ability to share across social networks.
  4. Step 3 is where you will get your install code.  Choose the option that says “Universal Code”.
  5. Copy the code that is next to the “1.” (don’t worry about the code in the 2. section) and you’ll now have the code we’ll need in the next steps.

Signing up and getting comment code with IntenseDebate.com:

  1. Go to InstenseDebate.com and hit the “Sign Up” Button.
  2. Enter in a Username, Email, and Password, and choose the option “I want to install IntenseDebate on my blog or website”, and hit the sign up button.
  3. You’ll then need to check your email to verify the account before you can go on.
  4. Once you’ve verified you email go ahead and login.
  5. Upon logging in you’ll be directed to your dashboard, you’ll see a section on the right side under “Manage Blog/Sites” a button that says “You have not installed IntenseDebate on any blogs yet. Install IntenseDebate.” click on that link.
  6. You’ll then be walked through 3 steps to get the code we need to go on. Step 1 is to enter in your blog/website URL.  Do that and hit “Next Step” to continue.
  7. Step 2 is to choose your platform.  You won’t find iWeb in the list there so just choose the option “Generic Install”.
  8. Step 3 is where they will give you your install code. On the left side it says “JavaScript Install”, copy the code next to the “1.” and move to the next step.

Comments using a Direct HTML Snippet:

2) Now take that code and paste it into an HTML Snippet on your iWeb page that you want the comments to be on and hit apply.

3) You’ll notice that it seems nothing has happened.  That’s because your site isn’t online yet.  Your comments actually won’t work until your site is online, so don’t worry that you don’t see your comments show up yet.  At this point you need to size your HTML snippet to accommodate the comment response box and all the comments and future comments that you are going to have.  So be sure to stretch it long enough to accommodate all the comments that you foresee your page having.

note: If you’re unsure about what the size of your snippet should be you can jump to the “Comments using iFrame” which will make this snippet scrollable so you won’t have to worry about the size and comments not showing.

4) Now publish you site to your server either using direct FTP publishing in iWeb or to a folder then to your server.

5) Visit your page to make sure it is working properly with the comments and give yourself a pat on the back for adding comments to your iWeb page.


Comments using an iFrame:

2)  Now open up an HTML editor such as Coda or TextEdit.  Start a new page/document and paste in this code to create a blank HTML page:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Comments</title>

</head>

<body>

<!-- Add Comment Code Here -->

</body>

</html>


and replace where it says <!– Add Comment Code here –> with your own comment code you got from Disqus or Intense Debate.

3) Now save the document as an HTML file (something like pagecomments.html)

note: If your using text edit be sure you go into the textedit prefs and under the Open and Save section and check the checkbox that says “Ignore Rich Text command in HTML files”.  Then when you save your html document be sure to change the file format to “Web Page .html”.

4) Now put your newly created html file on your web server host using an FTP program like Transmit.  You might want to make a folder somewhere that is just for comment pages.

5) Now that your HTML file is online, go visit the page to make sure it is working.  Your URL to test it might be something like www.yoursite.com/comments/commentHTMLpage.html, if it is working that you can smile and continue on, it not, go back and make sure you got everything in order.

6) Now all we need to do is iFrame that page into iWeb.  Simply go to the iFrame tip page by clicking here, and paste the iFrame code into a snippet, but don’t hit apply quite yet.

7) With the iframe code in a snippet, replace the iframe URL in the code to be the URL to your comment page (i.e. www.yoursite.com/comments/commentHTMLpage.html), then hit apply.

8) If your using Disqus you should actually see the comments show up, if your using IntenseDebate you actually won’t see your comments until it’s online.  At this point we need to do two things.  Resize our snippet and put those dimensions in the iframe code.  So…

9) Adjust your HTML Snippet to be where you want it to be on the page and the dimensions you’d like it to be on your page as well.

note: you don’t need to worry about stretching the snippet length extra large like on the direct snippet method above because this method is going to have a scroll bar when more comments are added.  So just make the snippet a good size to see a good comment post or two.

10) Now that your snippet is where you like it you need to put in the snippet width and height into the iFrame code.  You would have seen the dimensions while dragging the size of the snippet, but if you didn’t see it simply click the snippet so it’s selected and go to the Metrics Inspector (the one with the ruler icon) and see what the width and height is of your HTML Snippet box and put that into the iFrame code where it says width and height, and hit apply.

11) Your comments should now be ready to post online.  Simply publish your site online, test to make sure it is working and looking properly, and give yourself a pat on the back for successfully implementing comments into your iWeb site.


That’s all there is too it.  If you having problems you can watch the video tutorial on how to do this by clicking below:

Watch Video Tutorial »

Hope that answers all your commenting questions.  If you have further questions or if anything is unclear feel free to comment below.  If you feel that this tip has helped please consider donating to the iWebUnlimited;

[iWeb-Code=’donation’]

Thanks for stopping by.

—iJason

iJason

106 comments

  1. Levis 26 May, 2010 at 08:28 Reply

    hi, I’m using iframes as described in one of your tutorials to use intensedebate for my visitors to post comments on my site. Everything looks and works perfect on Safari, but when I checked it with Internet Explorer and Firefox, it doesn’t load right (on internet explorer) or it doesn’t even load at all (on firefox). Do you have any ideas/suggestions/workarounds?

    Thanks in advance and kind regards,
    Levis

  2. kyle 27 May, 2010 at 18:14 Reply

    im trying to use the facebook social plug in comment and i think it’s so hard to understand that one. than other’s you have explained here :|

    • iWebUnlimited 17 July, 2010 at 10:29 Reply

      Yeah, that’s why I didn’t post that one here. You may find my Facebook and Twitter post helpful for implementing Facebook stuff in iWeb.

  3. Arienne 28 May, 2010 at 05:10 Reply

    Hi There!

    Thanks so much for this tutorial. I thought there was no way I could have comments without MobileMe.

    I’m trying to load in my comments but I seem to be getting nowhere. I started with iFrames, with no luck, so I’ve gone back to just “simple” snippets, but it’s not so simple for me for some reason… :s

    I’ve created a new page on my site for comments. I’ve inserted an html snippet and hit apply. I’ve stretched it out for size. I’ve then saved and published my site changes and uploaded my files to my hosting site. BTW i’m using GoDaddy’s FTP server.

    I’ve uploaded it so many times with no success. What could I be doing wrong? I really want to be able to use an iFrame, but I just can’t seem to get the basic snippet to work.

    Any direction would be greatly appreciated :)

    A.

  4. David 12 June, 2010 at 09:05 Reply

    I’ve been using Intense Debate on my website, http://www.MacMufasa.com , and it worked great up until one day it started not showing up comments. Sometimes it was just hit and miss. It also seemed to show comments in Firefox but not Safari.

    Just wanted to say the iFrame idea is brilliant – that way you don’t have to go in and resize every time you get a few comments on a post – which gets old really quick!

    For the time being I still have Intense Debate as my comment system even though it’s not working that well. If you want to see it in action feel free to go post a comment and see how the feel of it is.

    David

  5. Jhon 12 June, 2010 at 15:04 Reply

    thanks! all worked fine but there is a problem, i want to put a comment box in many pages in my website but in all the pages it appear the same comments please help

    • iWebUnlimited 17 July, 2010 at 10:37 Reply

      Jhon, you need to create a new comment system, per entry. In all these commenting systems (Disqus, etc) they have an option to add a new commenting system (I think they call it a new site), then just enter in the page that your publishing it on and you’ll get new code for your new post.

  6. Dylan W. 13 June, 2010 at 09:33 Reply

    What about PHP scripting? It works with the tags. I made a small stupid chat using PHP, comments would be no problem!

  7. David 16 June, 2010 at 22:03 Reply

    Hi,

    Is there any way to set it up so that people can leave comments as a guest and not have to sign in? I’ve got the page set up and everything looks hunky dory. If I’m signed in under my disqus account I can leave a comment. If not, however, and I try to leave the message as a guest, the window in which I enter my email address and name just stays up after I click submit comment…nothing happens.

    Thanks!
    David

  8. kappy 21 June, 2010 at 07:16 Reply

    Is it possible to make the Iframe auto-adjusting? So that if i for example link my Disqus comments, it will automatcally expand as new comments is added, so i can get rid of the scroll?

    • iJeff 25 June, 2010 at 20:10 Reply

      For Disqus, you can just change the first line of code by adding in the “div” block
      style=”height:1000px;width:450px;color:#000000;font:13px/16px Verdana;overflow:auto;”

      Which gives as a result:
      div id=”disqus_thread” style=”height:1000px;width:450px;color:#000000;font:13px/16px Verdana;overflow:auto;”

      • iJeff 25 June, 2010 at 20:54 Reply

        I replied too fast. From my undestanding of iWeb, it is creating “static webpages”. The dynamic part is added through widgets but in a static frame, which implies a static size for the widget.

        Unless you modify after the code by hand to make it more dynamic to auto-expand, there may be few solutions for you.

        If you need it to auto-expand, you may have a look at another editor like SandVox.

    • iWebUnlimited 17 July, 2010 at 10:40 Reply

      It won’t auto adjust, that’s why we use the iFrame option so that it will scroll automatically as new comments are added.

  9. iJeff 25 June, 2010 at 20:05 Reply

    Thank you so much for this great tutorial iJason (and the other one as well).

    Here is a big tip to have a scroll bar in the iWeb widget without having to create an external page. I used your tips on how to add scroll bar to text. (https://iwebunlimited.com/2010/iweb-tips/scrolling-text-in-iweb/)

    For Disqus, there is only a simple tweak to do: changing the first line of the code

    by adding the style to have a scroll bar:

    For ID, there should be an easy way as well (I don’t use it so can’t say for sure).

    Hope it can help

    Thanks again for these great tutorials!

    • iJeff 25 June, 2010 at 20:07 Reply

      The code part as not been displayed, I try again.

      For Disqus, there is only a simple tweak to do: changing the first line of the code
      <!– –>
      by adding the style to have a scroll bar:
      <!– –>

  10. iJeff 25 June, 2010 at 20:08 Reply

    Last try

    For Disqus, there is only a simple tweak to do: changing the first line of the code
    div id=”disqus_thread”
    by adding the style to have a scroll bar:
    div id=”disqus_thread” style=”height:1000px;width:450px;color:#000000;font:13px/16px Verdana;overflow:auto;”

  11. Dylan 1 July, 2010 at 18:32 Reply

    If you want, I can just whip up a small little comment script with PHP while I’m at it for this site. E-Mail me when you want it.

  12. Phil Pelling 2 July, 2010 at 07:20 Reply

    I am just trying to work out the best system for me and in looking noticed that you seem to have an incorrect link:

    Disqus – Free (http://www.diqus.com)

    That took me to a rather strange site for a weight loss product. Thought I was going mad…

    Thanks

  13. joyce 12 July, 2010 at 13:50 Reply

    Maybe to you guys this is not the most smart question.. But im figuring out how to work with disqus.com and with all the explanation, i got it to work. But.. 2 things bothered me, so I took it offline.

    The first is the font. I use a totally different font on my website. Is it in any way possible to change the font of the leave a comment box you get from disqus?

    Second question is.. Is it true people are required to have a disqus account to be able to respond to my blogs? Because that is what it says when I tried leaving a comment, without being logged in at disqus.

    Thank you so much for your help. I must say this website is really usefull, so keep up the good work!

    Joyce

    • iWebUnlimited 17 July, 2010 at 10:44 Reply

      Joyce, you may want to browse the option and settings in your account at Disqus.com or contact them for support on settings.

  14. David 17 July, 2010 at 13:56 Reply

    Well….. I tried the Disqus method and everything is great but when you go look at the comments in Firefox, the previous comments are not there!

    Is that why that extra code down below the copy and paste code is there on the Disqus site?

    • David 17 July, 2010 at 14:18 Reply

      Yeah, this just is not working correctly. Different browsers are not seeing comments. Safari can see comments that people commented using Safari, Firefox can see comments that people commented using Firefox.

  15. marian 18 August, 2010 at 15:59 Reply

    I used to use JS-Kit earlier, but then i switched to Flexi Comment Box. I just liked the idea of storing my comments on my own server instead of sending them off to some other server!
    I think you should definately give it a try: http://www.alimsyed.com
    Cheers

  16. Scott 3 September, 2010 at 10:22 Reply

    First off, THANK YOU so much for all this invaluable information. I so appreciate it.

    I am using Disqus and I want people to be able to comment on each blog entry (called “News” on my site). if I understand one of the above posts I have to create a new website on Disqus for every single blog post, then create a blank html page for each blog post with the appropriate code from disqus. Is that right?

    That seems unbelievably onerous to manage.

    Am I missing something? Is there an easier/better way?

    Again, thank you so much!

  17. Aric 20 September, 2010 at 15:41 Reply

    Is it possible to make a comment box only for myself that I can use my cell phone to text a comment to my website. I tried twitter but every widget seems to have a reply area and I don’t want anyone else to post a comment.

  18. Rogelio 22 September, 2010 at 21:35 Reply

    Hi. I already did a comment page with iFrames in my web site and it went just nice, but it has a little problem. This is the page: http://www.ryapsicologos.net/Centro_de_Psicologia_Clinica_y_Psicoterapia/Comentarios.html . The problem I have is that somehow it doesn’t show the scroll but only when I open the page with “my” Safari (because it runs perfectly in my other computer’s Safari). When I open my page in Firefox, Chrome or Opera, it works ok.

    One curious thing is that the comments I write with “my” Safari browser they can’t be seing from another browser, let’s say Safari. On the contrary, when I put a comment from Chrome or another one, I can read them from other browses.
    Another curious thing is that when a Publish from iWeb to “my Folder”, and I visit my site from my folder, in Safari it runs perfect. The problem happens when I publish to FTP and then visit my site.

    I appriciate your help. This site is wonderful. Thnx a lot.

Leave a reply

Facebook
Twitter
YouTube