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.

Change the title of the discussion thread created when using embedded Blog Comments

Hello! As the title states, my goal is to be able to manipulate the name of the forum thread created when the first blog comment is made via the embed script.

Currently it's appending my site title at the end of every post title (since that's the HTML title for the page) and it's very redundant. Here's what I mean..

*New blog post made
*Blog post title: TITLE HERE
*Viewer visits blog post
*Viewer makes first comment
*Forum thread is created, called: TITLE HERE | SITE TITLE

What I want is for the forum thread to be called just TITLE HERE

If it fetches the site title via JS, then all I need to know is what variable to manipulate so I can search and replace the "SITE TITLE" part.


  • Have you ever written a Vanilla plugin?

    If you're up for it, this is the event hook you'd need:

    public function discussionModel_BeforeSaveDiscussion_Handler($Sender, $Args) {
            //If a discussion has a ForeignID it's most likely generated by Wordpress
                     //Here you can change the name of the discussion to anything you'd like
  • rbrahmsonrbrahmson "You may say I'm a dreamer / But I'm not the only one" NY ✭✭✭

    Just a small (and irrelevant to this change) clarification to the comment about the foreign ID - I'd say it's likely a result of an import (e.g. WordPress, feed import, etc.). I happen to work on a new feed import plugin in my little spare time and I also use it...

Sign In or Register to comment.