Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorwibbler
    • CommentTimeJan 15th 2008 edited
     # 1
    Hi,

    I'm trying to integrate Vanilla into my Wordpress theme.

    I've followed the instructions from Il Filosofo:
    -----------
    First, you need to include the WordPress files. A good place to do this is at the bottom of the Vanilla conf/database.php file, where you should put
    <?php require_once('../wp-blog-header.php'); ?>
    (of course make sure that’s the path to wp-blog-header.php–yours may be in a different directory).

    Second, you need to re-connect WordPress to the database, because Vanilla will close the connection early. Edit Vanilla’s library/Framework/Framework.Class.MySQL.php file, adding the two lines in boldface to this section near the top of the file:

    class MySQL extends Database {
    function CloseConnection() {
    if ($this->Connection) @mysql_close($this->Connection);
    global $wpdb;
    $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
    }

    That’s it! Now you can use WordPress functions, such as get_header(), in the Vanilla theme.
    --------------------

    However, those changes mean that I can't enable/disable my extensions. It comes up with an Alert box that says... nothing! anyone have any idea how to solve this?
Add your comments
    Username Password
  • Format comments as