Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Embedded Vanilla Comments in Wordpress : show number of comments and open url not in the iframe

jeanvietjeanviet New
edited May 2012 in Vanilla 2.0 - 2.8

Hello There,

So i decided to replace my wordpress comments by Vanilla Comments. I installled the plugin 1.1.11 which i downloaded here http://wordpress.org/extend/plugins/vanilla-forums/

The comments show in a kind of iframe after my post, users can reacts easily thanks to facebook, twitter integration, and it creates a new topic in my forum...

Everything is great except two things :

1/ The number of comments doesn't show

here's what i've got when i look at the source code :

<a href="http://blogbuster.fr/adsense/encore-un-article.htm#respond" title="Commentaire sur Encore un article"> <span vanilla-identifier="102">No Comments</span>

the number and the link to the comment come from the old system

2/ When i click on the author in vanilla comments, it opens inside the iframe... too bad.

I don't know where is the problem... I saw it work perfectly here : http://penny-arcade.com/report/editorial-article/what-can-they-do-but-burn-par-reviews-the-avengers#vanilla-comments

My Wordpress version is 3.3.2 and use the Parchment Theme.

my blog is here : http://blogbuster.fr and my vanilla forum here http://blogbuster.fr/forum

It's a mess (lots of messages of tests) cause I started a new projet. Excuse my poor english and thanks by advance if someone can help me on these 2 troubles.

Answers

  • Options

    Argh 4 days, and no answers :-(

  • Options

    The comment count is accurate.

    The information is being generated by wordpress, so "no comments" means no comments made through the native wordpress comment system... which of course is the case since you are replacing that system with vanilla embedded comments.

    I suggest you simply disable the wordpress comment count on posts, and then users can see the vanilla count when they scroll down.

    As for any link that opens within an embedded frame you can simply alter the html like so:

    OLD: <a href="www.example.com">username</a>

    NEW: <a target="_blank" href="www.example.com">username</a>

  • Options

    The Vanilla WP plugin is able to update comment counts via JavaScript.

    Add Pages to Vanilla with the Basic Pages app

  • Options

    Shadowdare said:
    The Vanilla WP plugin is able to update comment counts via JavaScript.

    Yeah, but it doesn't update them in that field. It updates them in the embedded comment area at the bottom of the post.

    Two different counts for two different commenting systems.

  • Options

    It would be needed a PHP function to fetch the comments count from the Vanilla database entry. But doing so, you would need to include php files to authenticate and connect to the database, breaking Wordpress (that's one big reason why Vanilla developers chose to embed the comments using an iframe, I guess.).

    Anyway, I heard somewhere that a new version of the wordpress plugin is coming, which will integrate with the native comments part of WP like the management via dashboard etc (like Disqus does).

  • Options

    Shadowdare said:
    The Vanilla WP plugin is able to update comment counts via JavaScript.

    do you have a code for that?

  • Options
    ShadowdareShadowdare r_j MVP
    edited May 2012

    @futuretalk and @ludalex:

    The Vanilla WP plugin should do it automatically, and if not then all you have to do is modify the comment links on your template so that it looks similar to this:

    <a href="http://yourdomain.com/path/to/page/with/comments/#vanilla_comments" vanilla-identifier="embed-test">Comments</a>

    Add Pages to Vanilla with the Basic Pages app

  • Options

    Shadowdare said:
    @futuretalk and @ludalex:

    The Vanilla WP plugin should do it automatically, and if not then all you have to do is modify the comment links on your template so that it looks similar to this:

    <a href="http://yourdomain.com/path/to/page/with/comments/#vanilla_comments" vanilla-identifier="embed-test">Comments</a>

    This actually worked for another issue I'm having here. Thanks.

Sign In or Register to comment.