Noted [Deleted]

Unfortunately yes, I am for now.

Ah, that'll be the cause. To fix it, replace the Listener.php lie with the following:

PHP:
<?php

class XenDevelop_Noted_Listener
{
    private static $createTableQuery = "CREATE TABLE IF NOT EXISTS `xf_user_notes` (
        `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
        `user_id` int(10) unsigned NOT NULL,
        `content` text,
        PRIMARY KEY (`id`),
        KEY `user_id` (`user_id`)
    );";

    private static $dropTableQuery = "DROP TABLE IF EXISTS `xf_user_notes`;";

    /**
     * Register class extensions.
     *
     * @param       $class  The class being called.
     * @param array $extend Array of extenders.
     */
    public static function extendAccountController($class, array &$extend)
    {
        if ($class == 'XenForo_ControllerPublic_Account') {
            $extenders = array(
                'XenDevelop_Noted_ControllerPublic_Account',
            );

            $extend = array_merge($extend, $extenders);
        }
    }

    /**
     * Function to be called on install.
     *
     * @param array $installedAddon Details about the addon being installed.
     */
    public static function install($installedAddon)
    {
        $version = 0;
        if (is_array($installedAddon)) {
            $version = (int) $installedAddon['version_id'];
        }

        $db = XenForo_Application::getDb();

        if ($version < 100) {
            $db->query(XenDevelop_Noted_Listener::$createTableQuery);
        }
    }

    /**
     * Function to be called on uninstall.
     */
    public static function uninstall()
    {
        $db = XenForo_Application::getDb();
        $db->query(XenDevelop_Noted_Listener::$dropTableQuery);
    }
}
 
I see this was last updated a year ago or so.. did this get updated to include folders for the notes?
Also, how many Note's can be created with this system?

Thanks :)
 
No, it did not get updated as I did not get a chance and kind of forgot about it. AN unlimited number of notes can be created though :)
 
Oh, sorry. You can only have one note, which is created with the "Save Changes" button. You can then edit it. It's meant to be used like a scratch pad to keep ideas.
 
Top Bottom