HOW TO RESTORE THE DIGG COUNT ON THE DIGG WIDGET AFTER CONVERTING TO OR FROM FANCY PERMALINKS AND PRETTY PERMALINKS IN WORDPRESS

When I migrated to fancy permalinks (the URL or website page address method) or what are also called pretty permalinks, I lost the Digg count on the Christian Commons Project™ post. The Diggs were still there on Digg.com under the original title that was submitted, but those Diggs were associated with the old standard post ID# (%post_id%). They weren't showing up on the post page anymore.

I had to convert to fancy/pretty permalinks to be able to use WP Super Cache. It was worth it. WP Super Cache though depends on pretty permalinks to build its cache. I used Dean's Permalinks Migration Plugin to get the job done and not lose all the in-coming links to the old URLs that were based on the post ID numbers.

You can read about that on my post: .HTACCESS, ASIRRA, PERMALINKS, GODADDY, PERMALINKS MIGRATION, THEME SWITCHER, WORDPRESS, WP SUPER CACHE, AND WP-CACHE
Posted:
Thursday, September 18, 2008
@ 9:46:35 PM (Pacific Time)
By Tom Usher

That though didn't do anything for the Digg Widget on the Christian Commons Project post.

Unfortunately, Digg's widget that you place on your site reads the current permalink structure and has no way of being backward compatible with the old permalinks. I needed to work around this.

I wanted the few Diggs back on the Christian Commons Project post. I went out searching for solutions. I ended up creating a template for a new category in which the only post I placed is the Christian Commons Project post.

The Christian Commons Project post is also categorized under other categories, but no other posts are also categorized with it in the new category.

I placed a manually scripted Digg widget in that new template file which widget points to the old, original permalink that is based on ?p=1030, the post ID for the Christian Commons Project post. Now the post shows the few Diggs for the post again.

<!— Start "Digg This" —>
<script type="text/javascript">
digg_url = 'http://www.realliberalchristianchurch.org/2007/01/01/the-christian-commons-project-of-the-real-liberal-christian-church.html';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
<!— /"Digg This" —>

You see "?p=1030" in the script above. Digg's widget ordinarily automatically grabs and uses the full, current URL that on this site is now a fancy or pretty permalink. "?p=1030" is now "2007/01/01/the-christian-commons-project-of-the-real-liberal-christian-church.html" The full path is "http://www.realliberalchristianchurch.org/2007/01/01/the-christian-commons-project-of-the-real-liberal-christian-church.html"

nathanrice.net got me started making a special template just for the Christian Commons Project post. It was helpful but wasn't the ultimate solution though. Read it, but also read on here.

The original category for the Christian Commons Project is ID 157. If I were to have created a "single post" template for that category, all of the posts in that category would automatically have shown up using that template. I didn't want each of those posts showing the manually altered Christian Commons Project post Digg Widget, although I could have done that since the Christian Commons Project post is the focus really. It would have been confusing for people though who would be rightly expecting that any Diggs would be about the immediate post and not the Project's main post.

Therefore, I created a new category entitled, "Christian Commons Project Single Post." Its ID is 18977.

nathanrice.net helped to explain one method for having the new, single template for this category called up any time anyone selected to visit the Christian Commons Project post.

Don't rush to use the following function though, because it locked me out of my WordPress administration until I deleted it.
<?php
add_filter('single_template', create_function('$t', 'foreach( (array) get_the_category() as $cat ) { if ( file_exists(TEMPLATEPATH . "/single-{$cat->term_id}.php") ) return TEMPLATEPATH . "/single-{$cat->term_id}.php"; } return $t;' ));
?>

It worked, but it locked me out of the WordPress admin. I deleted the function and got back in fine. Then I installed this plugin instead.

I renamed the template file from "single-18977.php" (no quotation marks of course) to "single-cat-18977.php." It works just fine. I checked, and the plugin didn't write any new functions that could lock me out of admin.

If you read the pages linked to above and the plugin page, you'll understand that you need only copy ("save as") and edit your existing single.php template file to get this done. The only thing I changed on that page was the Digg Widget, although one could go much further with changes than that of course.

If you liked this post, if it helped you in any small way, please consider Digging the Christian Commons Project post


and/or contributing to the cause. If you're an Entrecard user, you can give EC (Entrecard credits) to this site. Visit here, and look for the link line, "Give credits to this site" in the right column.

Mind you, I didn't post this for the sake of selfish recompense. The Christian Commons Project isn't about selfishness. It's about the exact opposite. Considering all the damage all the greed in the world has been and still is doing, I'm sure you can appreciate that helping to promote unselfishness certainly is a good thing. Please help in any way you are able. Thank you.

Why bother with getting back the Diggs? Well as of the date of this post, Digg showed the following for the Christian Commons Project post:
Friended Diggers who Dugg the post:
paiute8
dcmusicfusion
ladybroadoak
TheodoreRichie
CarolVaughan

Who Blogged This?
3 people posted this story on their own blogs.
ladybroadoak: See the Post
TheodoreRichie: See the Post
CarolVaughan: See the Post

New Friend:
Lothar76

Donate


The following should appear at the end of every post:

According to the IRS, "Know the law: Avoid political campaign intervention":

Tax-exempt section 501(c)(3) organizations like churches, universities, and hospitals must follow the law regarding political campaigns. Unfortunately, some don't know the law.

Under the Internal Revenue Code, all section 501(c)(3) organizations are prohibited from participating in any political campaign on behalf of (or in opposition to) any candidate for elective public office. The prohibition applies to campaigns at the federal, state and local level.

Violation of this prohibition may result in denial or revocation of tax-exempt status and the imposition of certain excise taxes. Section 501(c)(3) private foundations are subject to additional restrictions.

Political Campaign Intervention

Political campaign intervention includes any activities that favor or oppose one or more candidates for public office. The prohibition extends beyond candidate endorsements.

Contributions to political campaign funds, public statements of support or opposition (verbal or written) made by or on behalf of an organization, and the distribution of materials prepared by others that support or oppose any candidate for public office all violate the prohibition on political campaign intervention.

Factors in determining whether a communication results in political campaign intervention include the following:

  • Whether the statement identifies one or more candidates for a given public office
  • Whether the statement expresses approval or disapproval of one or more candidates' positions and/or actions
  • Whether the statement is delivered close in time to the election
  • Whether the statement makes reference to voting or an election
  • Whether the issue addressed distinguishes candidates for a given office

Many religious organizations believe, as we do, that the above constitutes a violation of the First Amendment of the US Constitution.

Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.

That said, we make the following absolutely clear here:

  • The Real Liberal Christian Church and Christian Commons Project not only do not endorse any candidate for any secular office, we say that Christianity forbids voting in such elections.
  • Furthermore, when we discuss any public-office holder's position, policy, action or inaction, we definitely are not encouraging anyone to vote for that office holder's position.
  • We are not trying to influence secular elections but rather want people to come out from that entire fallen system.
  • When we analyze or discuss what is termed "public policy," we do it entirely from a theological standpoint with an eye to educating professing Christians and those to whom we are openly always proselytizing to convert to authentic Christianity.
  • It is impossible for us to fully evangelize and proselytize without directly discussing the pros and cons of public policy and the positions of secular-office holders, hence the unconstitutionality of the IRS code on the matter.
  • We are not rich and wouldn't be looking for a fight regardless. What we cannot do is compromise our faith (which seeks to harm nobody, quite the contrary).
  • We render unto Caesar what is Caesar's. We render unto God what is God's.
  • When Caesar says to us that unless we shut up about the unrighteousness of Caesar's policies and practices, we will lose the ability of people who donate to us to declare their donations as deductions on their federal and state income-tax returns, we say to Caesar that we cannot shut up while exercising our religion in a very reasonable way.
  • We consider the IRS code on this matter as deliberate economic duress (a form of coercion) and a direct attempt by the federal government to censor dissenting, free political and religious speech.
  • It's not freedom of religion if they tax it.

And when they were come to Capernaum, they that received tribute money came to Peter, and said, Doth not your master pay tribute? He saith, Yes. And when he was come into the house, Jesus prevented him, saying, What thinkest thou, Simon? of whom do the kings of the earth take custom or tribute? of their own children, or of strangers? Peter saith unto him, Of strangers. Jesus saith unto him, Then are the children free. (Matthew 17:24-26)

  • Subscribe


  • Tom Usher

    About Tom Usher

    Employment: 2008 - present, website developer and writer. 2015 - present, insurance broker. Education: Arizona State University, Bachelor of Science in Political Science. City University of Seattle, graduate studies in Public Administration. Volunteerism: 2007 - present, president of the Real Liberal Christian Church and Christian Commons Project.
    This entry was posted in Uncategorized. Bookmark the permalink.
    • If you feel overwhelmed, check in with your priorities here's only one of you, and stretching yourself too thin can lead to burnout. Kennedy Christian

    • @Kennedy Christian - That's a quote from Tutor.com | 5 Time Management Tips For Students.

      Tip #5: "N-o" is ok.

      Your boss offers you an extra shift, the art club needs your help painting banners and all your friends are catching a movie after school. If you feel overwhelmed, check in with your priorities—there's only one of you, and stretching yourself too thin can lead to burnout. It's okay to say, "Sorry, I'm busy."

      I'm not saying you're wrong to have quoted it here, but I would appreciate it if you would elaborate on what you see as the relevance or connection.

      Also, the site is copyrighted, and shouldn't you have indicated the source? I doubt if they'd mind either way, but I do try to promote giving credit where due.

      Thank you for stopping by and commenting. I look forward to your reply.

      Blessings,

      Tom Usher