wpxdm

  • Services
    • WordPress Maintenance Troubleshooting and Support
    • Recent Work
  • About
  • Contact
  • Blog

How to Fix Disqus Comments Not Showing

August 29, 2016 by Eric Gauvin Leave a Comment

Here’s how to fix Disqus comments not showing correctly. The solution can be found in the Disqus migration tools.

This fix is for when you have Disqus up and running but your comments are not showing correctly.

First you need to understand that Disqus stores your comments and syncs with your WordPress site, so they can become out of sync. There are tools in the Disqus plugin within your WordPress admin for help with syncing with Disqus. However, that may not fix your problem. In many cases you need to use the migration tools.

How to Use the Migration Tools

  • Domain Migration Tool
    This is for when you change any part of your domain (for example, http to https, domain name, .net to .com).
  • URL Mapper
    This is for when you change any part of your url after the domain.
  • Redirect Crawler (Advanced)
    This is for when you have 301 redirects and Disqus needs to know about them. (I didn’t need to use this one.)

First, log in to your Disqus account and go to Admin then go to Community. The Migration Tools are located on the left side under Tools.

The problem in my particular case had 3 causes:

  • I had recently changed from .io to .com
  • I had recently changed from http to https
  • Comments from my development environment (with .dev) got synced to Disqus

The first thing you should do is use the URL Mapper tool to simply download a csv of all your urls (comments) so you can see what’s going on (the csv file will be emailed to you). Then use the Domain Migration tool and the URL Mapper to correct all your urls. I didn’t need to use the Redirect Crawler as I didn’t have any 301 redirects. Disqus makes this look a bit more complicated than it really is. Just use the csv like a report of all your urls and then use the other tools to search and replace until everything is correct and then all your comments will work great.

Once everything looks good, you should sync the Disqus comments with your WordPress database. Within your WordPress admin, go into Comments and then Disqus. The Disqus plugin defaults to moderation. Click on “Plugin Settings” on the far right. Look for the section “Sync Disqus with WordPress” and check the checkbox for “Remove all Disqus comments before syncing” (This is a very misleading label. This will delete the comments in the WordPress database before synching in the Disqus comments.). WARNING: always backup your database before performing destructive actions on your database.

You can verify your comments are all correct in 2 ways. You can download a new csv file within the URL Mapper or you can go to “Moderate Comments” under “Community.” Be sure you select “All Time” in the filter dropdown. If you have a lot of comments, you’ll probably want to use the csv method instead.

Filed Under: Development, Hacks

How to Export Contacts from Juno and Import into Gmail

July 16, 2016 by Eric Gauvin 2 Comments

This may seem like a convoluted way to export your contacts out of Juno, but this was the only way I could do it when I was helping a client migrate from Juno to Gmail.

In a nutshell you need to copy-paste the contacts out of the source code of the print preview page and generate a csv file with a small amount javascript (provided below). If that sounds really confusing to you then you may need to find somebody else to do this for you following these instructions. It’s easier than it looks and works great. Enjoy!

NOTE: In the examples below, I am using a Juno account that was created for demonstration purposes only. This account doesn’t have any contacts.

Step 1

Sign in to juno.

1-signin

Step 2

Go to your address book.

2-addressbook

Step 3

Click on “Print Contacts”

3-printcontacts

Step 4

Leave the print settings as shown below and click “Print” in the bottom, right.

4-printsettings

Step 5

After clicking print, you will see the print preview page below.

5-printpreview

In your browser, view source for this page and locate the following two javascript arrays:

  • var ContactListTable (this one is for contacts that have first and last name)
  • var EmptyContactListTable (this one is for contacts that do not have first and last name).

(Note: in the example shown below the arrays are empty. Yours will be filled with contacts.)

6-viewsource

Step 6

Open your favorite text editor and create a file called something like “generate-csv.html” and paste in the following code. To download this code, hover your cursor over the code below to expose a small menu in the top, right of the code section. From there you should then be able to save or copy/paste the code.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>

<script type="text/javascript">

var data = [];

</script>

</head>
<body>

<script>
//var data = [["name1", "city1", "some other info"], ["name2", "city2", "more info"]];
var csvContent = "data:text/csv;charset=utf-8,";
data.forEach(function(infoArray, index){

   dataString = decodeURIComponent(infoArray.join(","));
   csvContent += index < data.length ? dataString+ "\n" : dataString;

});

var encodedUri = encodeURI(csvContent);
var link = document.createElement("a");
link.setAttribute("href", encodedUri);
link.setAttribute("download", "my_data.csv");
document.body.appendChild(link); // Required for FF

link.click(); // This will download the data file named "my_data.csv".

//Thanks to:
//http://stackoverflow.com/questions/14964035/how-to-export-javascript-array-info-to-csv-on-client-side
//http://stackoverflow.com/users/1768690/default

</script>
  
</body>
</html>

Step 7

Go to the print preview page source code and copy the javascript array “ContactListTable” and paste it into the javascript array “data” in your html file. It will likely be a very large array, so be careful to copy-paste it correctly. You will need to do this again for “EmptyContactListTable”. You will also need to change the name of “my_data.csv” to something appropriate for each of your csv files.

Step 8

Open the html file into a new browser window (Chrome works best). In a moment a new csv file will download, which you can then open in Excel or your text editor.

Step 9

Add column headings at the top of your csv file. Make sure they map to the right values.

First Name,Last Name,Email Address
7-columnheadings

Step 10

Import your csv contacts into gmail.

http://www.wikihow.com/Add-Contacts-to-Gmail-Using-a-CSV-File

IMPORTANT: Always be careful when importing contacts into gmail and make sure you back up all your data as a precaution.

Filed Under: Development, Hacks

Search

Newsletter

Subscribe to my mailing list for all the latest news updates.

* indicates required

Recent Posts

  • Understanding Time Zones in The Events Calendar by Modern Tribe
  • How to Create an Event Flag in The Events Calendar by Modern Tribe
  • Review: Optitek Computer Readers by Select-A-Vision

About Me

Hi. I love designing and building websites with WordPress. I have many years experience working on websites for large corporations, and I'd like to use my skills and experience to bring your website idea to life. Read More…

Location

I'm nestled in the heart of New England's quaint Farmington Valley.

Expient LLC
71 Brookmoor Road, Avon CT, 06001

Start a Project

I'd love to hear about your upcoming project. Tell me about it by filling out my contact form.

Or, give me a call at 860-335-6082.

Connect

  • Dribbble
  • Email
  • Facebook
  • GitHub
  • Google+
  • LinkedIn
  • Pinterest
  • Tumblr
  • Twitter

Copyright © 2023 Expient LLC | Expient® is a registered trademark of Expient LLC.

Copyright © 2023 · Agency Pro Theme for expient on Genesis Framework · WordPress · Log in

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT