Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.


This discussion is related to the BlogThis addon.


  • As this is a new release, please let me know if it works - not just if it doesn't :P
  • Just checked out your site. This is a really wonderful, nice, clean & simple solution to a common problem... much easier than the vanilla/wordpress integration options.

    Now I have NO excuses left to re-examine Vanilla. I'll let you know if I encounter any problems. Thanks in advance.


    PS One feature request I do have is the ability to get an RSS feed of the 'blogged' items.
  • I'm glad we see eye to eye :)

    I'm going to look at the RSS feed issue tomorrow. I'm using FeedPublisher at the moment which relies on the search facility to get its feed. So I might have to somehow add the ability to search for comments with the "BlogThis" flag. Hopefully I can do that using the Framework, without modifying the base code.
  • will your new contraption coexist with the current blog extension, or will I have to remove it first?
  • I'm using the same Class names IIRC - so chances are it won't be happy.

    Just untick the Blog extension in the extension page, and that is enough to stop them upsetting each other.
  • Uploaded version 1.01 of BlogThis.
  • Version number changed from 1.01 to 1.02.
  • Uploaded version 1.02 of BlogThis.
  • Uploaded version 1.03 of BlogThis.
  • Uploaded version 1.04 of BlogThis.
  • Sorry for all the updates - as it stands, it's working bug-free on a clean install, with both friendly urls and without.
  • Wow, that looks great.

    I am curious what extensions you are running on your set-up. Also, do you have a sitemap for Search Engine Indexing?

    I am definitely going to be testing your extension out. It seems like a great way to extend Vanilla.
  • Uploaded version 1.05 of BlogThis.
  • Hi Sstarwarz,

    I have the "Pimped" extension installed, so you can view what I'm using:

    From memory, I've tweaked most of them to work exactly as I want them to, and any that I feel would be useful to other people I've posted the code in the relevant threads.

    As far as sitemap, there's nothing in there that I can think would help. But obviously the blog posts are merely linking to comments inside existing discussions - so as long as they are being indexed, technically so are your blog posts.

    I have just added support for FeedPublishers RSS feeds, which helps a lot.
  • Spode: I wonder if there is something going on with your rewrite rules. when I go to the link you posted. it redirects me to the blog page.

    I was looking for pimped, but I did not see a link.

    Let me know the link and Thanks for sharing.

    I'm surprised the latency involved in your forum. It was kind of slow for me. Do you have lots of traffic?

    I don't have much to recommend better performance.

    you might want to use Firefox with Firebug and YSlow and see if you can add some optimizations. (Use Gzip, maybe combine your CSS and JS files into a single file.)

    I have not had much luck with it, but you might want to look at the Low Cal Vanilla
  • Sstarwarz - No, I realise now that you have to be logged in to see the extensions, I guess it defaults to that for security. I'll take a look to see if I can disable that tomorrow - in the meantime, registering is the easy way!

    I'm renting a dedicated server in the UK with my own Fedora install on, and I've always found it super fast. What country are you in? Annoyingly I don't think Vanilla has a "time taken" debug tool. Should be a feature request :) My regulars haven't complained, so it could be you.

    But yes, I am thinking something like LowCal - I did look into it, and I have a feeling there was something stopping me from using it.
  • well, I am US. So, that could be it.

    don't worry. I'll just register.
  • Hi Sstawarz. I did have it turned on for global access, but it was a bug in the extension. I've fixed the bug (and posted it in the Pimped thread). The extension could do with a bit of a do-over really, I'm sure there must be a simpler way of doing what it does.
  • This is awesome. I'm wondering if you could help me figure out the following conundrum:

    I'm running Vanilla as community forums for a main website. As part of the website there is also a blog. The mains website and the blog are powered by Wordpress. The community forums are obviously powered by Vanilla.

    I'm wondering whether it would be possible to use you BlogThis plugin and connect it somehow with the Wordpress blog, so that any Vanilla forum posts that get promoted are sent to the Wordpress blog front page. Does that make sense?

    Does anyone know if that's possible? Is there a stand alone RSS feed for the BlogThis posts? Because perhaps I could use a Wordpress plugin that would display all new Vanilla BlogThis posts on the Wordpress blog front page.

    I wonder if there's an easier way of going about all this...

    Any suggestions would be most appreciated indeed. Thanks very much.

  • Brilliant Extension!

    I have 2 (hopefully) small questions/problems.
    It does not appear to work with the sitemaps extension, so I have disabled this to avoid the error.
    Nuggets do not appear on my new 'Blog' page. Can this be fixed?

  • RabbitAbout:

    Not sure on the sitemaps extension. I'll install the extension myself and see if I can sort something out. More than likely, the original Blog extension has the same issue.

    And as far as Nuggets, I'm using it fine and I don't think I had to modify it. You might need to go back to each Nugget and select the Blog page, to make sure it adds them there. Nuggets allows you to only put certain nuggets on certain pages, and the default is to not add them. So adding a new page, means no nuggets!


    Installing WordPress looked a mess, so I didn't bother doing it. That's why I wrote this extension. There are two ways that come to mind, both of which involve coding. One is to an extra insert SQL query, which puts the post in both databases, which has the problem of sysnchronisation of updates. The second would be edit the WordPress code to join with the Vanilla database to fetch any BlogThis posts, aliasing column names to fit. Neither of these are ideal in my books, and I have no intention of coding them - I'd sooner add more features to this Extension.

    There isn't a stand alone RSS feed for this extension, but I've added code into the Search function so that the FeedPublisher extension can search for only Blogged posts. It works flawlessly, and is very very easy to set up. I guess it might be nice to add RSS code into this extension, but I imagine all I'd be doing is taking FeedPublisher and just customizing it towards the Blog - which wouldn't be a bad idea I guess. But the whole point of Vanilla is that when you want new features, you add them later. Not everyone will want RSS :)

    So in summary, install FeedPublisher and try and find a WordPress plugin to take advantage of it :)

    Everyone Else

    Any other feature requests are welcome! And if you've got this setup on your sites, please either post them in this thread, or e-mail me so I can check them out!
  • spode, Many thanks for your suggestions.

    I have checked the blog box for the Nuggets, but still nothing.
    Also, I notice that my blog tab does not change colour when on the blog screen.

    In the BlogThis settings screen, click to see examples under Blog Post date format does not work either.
    I wonder if I have not installed correctly, or if I have a conflict with another extension...
  • I'll take a look at the examples, that's just a style sheet issue. I noticed yesterday that I've not changed a number of "Blog" references to "BlogThis", so that may well be causing issues.

    Another thing you might have to do for nuggets, is make sure they are called on extension.php. Most extensions seem to check for index.php, search.php etc. and leave out extension.php.

    The Blog Tab not working is confusing too, the code is pretty simple to cover that and came directly from the Blog extension, so should be working. Do you have page manager installed? Might need to resync. If you have this live online, drop me an e-mail so I can take a look.
  • Many thanks spode,
    Page manager. That was the answer.
    I resync'd and another 'Blog' page appeared (one that i had previously deleted when trying out)
    So this was deleted again and all is working fine now. Tabs and Nuggets.

    Thanks for your help.
    Brilliant Extension!
  • Not a problem. Let me know any problems/suggestions and I'll add them to my current to-do list :)
  • Hi spode, I'm having a little problem of my own - it's really minor, but I thought I'd post and ask.

    It appears when a non-logged in person is browsing the site, they get this error at the top:

    Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/marrow/public_html/vanilla/extensions/BlogThis/default.php on line 62

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/marrow/public_html/vanilla/extensions/BlogThis/default.php on line 62

    Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /home/marrow/public_html/vanilla/extensions/BlogThis/default.php on line 68

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/marrow/public_html/vanilla/extensions/BlogThis/default.php on line 68

    It seems obvious to say that I need to correct the mysql database details, but I can't find where to do that.

    Any help would be much appreciated, thanks.
  • Hmm. Odd. I'm not having that problem at all. It uses the same username/password as Lussumo is set up with, as it uses the Vanilla functions to parse the query. Is www-data with no password, how you usually access the database?
  • Hey Spode, pretty cool extension :)

    However, I've tried it on a "twin" forum (two installations on the same database using different prefixes) and something went quite wrong.

    Here's what happened:
    - I disabled the Blog extension which I was previously using.
    - I enabled BlogThis
    - The result when I click on the blog tab is a fatal error:

    Error Message
    An error occurred while fetching the list of blogs.
    Affected Elements

    The error occurred on or near: Table 'mybase.LUM0_User' doesn't exist

    LUM0_ is the prefix I use for one of my vanilla install (the other one being LUM_). Everything else works fine, and since I'm far from being a PHP or MySQL guru, I've no idea what is causing the problem.

    My database.php file got somewhat corrupt during the process (I installed & reinstalled Blog & BlogThis several times trying to figure what was going on). The last few lines of the file were copied twice and were causing an error because the PHP tag was closed too early. I managed to fix this, but I still get the fatal error when BlogThis is enabled.

    So... I've no idea how to make BlogThis work :/
  • Hi Ø,

    The error message is pretty clear, it's suggesting that the User table doesn't exist in the database - although your prefix appears to prefix the database name too, I'm not sure if that's causing the issue. i.e it should be "LUM0_User" not "mybase.LUM0_User". What do you have in your control panel settings? This could because I used raw SQL rather than SQLBuilder - perhaps the framework has a way of dealing with these issues ;)

    The corrupt database.php was a fear of mine, as it manipulates the database file directly. I just copied it directly from the Blog extension. As I'm learning more about the Framework, I'm realising where this extension could be improved.

    I have tested it on clean installs, only with LUM_ mind you. The key is somewhere in your prefix. Do you have something like phpmyadmin installed?
  • Yep, I've phpMyAdmin installed. I've had a look and I've got a BlogThis column at the end of LUM0_Comment. The LUM0_UserSearch table exists, but it seems empty. What do you mean by "what do you have in your control panel settings"? BlogThis' settings?

    The extension somewhat works because I can blog/unblog comments. The error only occurs on the blog tab. Could it have something to do with Page Manager?
Sign In or Register to comment.