Home > General, PHP > Patch for the VastHTML WordPress Forum Server

Patch for the VastHTML WordPress Forum Server

March 3rd, 2010

So, I’ve made a number of fixes to the VastHTML WordPress forum server plugin. It has some pretty big bugs, and I don’t know if the project is being maintained anymore or not. At any rate, the fixes I’ve made should have been considered critical and should have been fixed long ago by whoever is maintaining it, but I digress…

I’m not going to support people trying to apply this patch. If you don’t know what a diff is and you don’t know what the patch command does, you’re probably out of luck. If you want me to fix all of the problems in this code and release it, pay me a bunch of money…

Also, the security problems in their code makes babies cry… but that’s for another day.

Lastly, to make the search actually work, you need to connect to your wordpress mysql database and issue this SQL statement:

alter table wp_forum_posts add fulltext key `text` (`text`);

Here's the patch: vasthtml-forum-server.diff

Here's what it fixes (in no particular order):

  • RSS feeds now contain the username of the poster instead of "feeds@r.us"
  • All & characters in the links have been properly changed to & as they should be
  • Page 2+ of your forums will work
  • Page 2+ of posts will work
  • The number of replies shown in the topic list is properly set to number of posts - 1
  • The title delimeter is changed from » to "|" (don't remember why i did this, but there ya go)
  • The search form/box uses HTTP GET instead of POST so your back button works without complaining about having to resubmit your request
  • You can press enter in the search box to submit
  • A $ followed by a number doesn't get filtered out
  • Apostrophes in posts/titles get their slashes properly stripped

I may have fixed other things in this patch and forgot about it. This works for me... your mileage may vary.

General, PHP , ,

  1. April 22nd, 2010 at 14:34 | #1

    Thanks m8! I’m going to test it right now! I hope this forum server will continue its development.

    Best regards!

  2. September 10th, 2010 at 12:33 | #2

    Hi, the patch with the version 1.5.2 is not longer working.
    Maye they change something un the wpf.class.php file?

    patching file feed.php
    patching file wpf.class.php
    Hunk #1 FAILED at 65.
    Hunk #2 FAILED at 120.
    Hunk #3 FAILED at 226.
    Hunk #4 FAILED at 247.
    Hunk #5 FAILED at 276.
    Hunk #6 FAILED at 435.
    Hunk #7 FAILED at 537.
    Hunk #8 FAILED at 570.
    Hunk #9 FAILED at 701.
    Hunk #10 FAILED at 990.
    Hunk #11 FAILED at 1243.
    Hunk #12 FAILED at 1263.
    Hunk #13 FAILED at 1273.
    Hunk #14 FAILED at 1417.
    Hunk #15 FAILED at 1518.
    Hunk #16 FAILED at 1690.
    Hunk #17 FAILED at 1868.
    Hunk #18 FAILED at 1930.
    Hunk #19 FAILED at 1938.
    Hunk #20 FAILED at 2123.
    20 out of 20 hunks FAILED — saving rejects to file wpf.class.php.rej
    patching file wpf-post.php

  3. September 10th, 2010 at 12:37 | #3

    I’m not sure. I stopped using that forum software because it was full of SQL injection vulnerabilities. I recommend http://simple-press.com/

  4. September 11th, 2010 at 14:23 | #4

    Thanks, I’ll try this new one too

  1. No trackbacks yet.