mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 05:11:42 +02:00
more plugin_class work. xml spec now supports sitelink urls outside of the plugin folder (like in 0.7). Also some minor path fixes.
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
* Custom forum install/uninstall/update routines
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_setup.php,v $
|
||||
* $Revision: 1.2 $
|
||||
* $Date: 2009-10-21 12:53:00 $
|
||||
* $Revision: 1.3 $
|
||||
* $Date: 2009-10-22 04:14:45 $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
@@ -19,36 +19,36 @@ class forum_setup
|
||||
{
|
||||
function install_pre($var)
|
||||
{
|
||||
print_a($var);
|
||||
echo "custom install 'pre' function<br /><br />";
|
||||
// print_a($var);
|
||||
// echo "custom install 'pre' function<br /><br />";
|
||||
}
|
||||
|
||||
function install_post($var)
|
||||
{
|
||||
$sql = e107::getDb();
|
||||
$mes = eMessage::getInstance();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if($sql -> db_Update("user", "user_forums='0'"))
|
||||
/*if($sql -> db_Update("user", "user_forums='0'")) // deprecated in 0.8
|
||||
{
|
||||
$mes->add("Setting all user_forums to 0.", E_MESSAGE_SUCCESS);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
function uninstall_post($var)
|
||||
{
|
||||
$sql = e107::getDb();
|
||||
$mes = eMessage::getInstance();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if($sql -> db_Update("user", "user_forums='0'"))
|
||||
/* if($sql -> db_Update("user", "user_forums='0'")) // deprecated in 0.8
|
||||
{
|
||||
$mes->add("Setting all user_forums to 0.", E_MESSAGE_SUCCESS);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
function upgrade_post($var)
|
||||
{
|
||||
$sql = e107::getDb();
|
||||
$mes = eMessage::getInstance();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if(version_compare($var['current_plug']['plugin_version'], "1.2", "<"))
|
||||
{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: plugin.xml,v 1.26 2009-10-20 03:49:22 e107coders Exp $ -->
|
||||
<!-- $Id: plugin.xml,v 1.27 2009-10-22 04:14:45 e107coders Exp $ -->
|
||||
<e107Plugin name="Forum" version="2.0" compatibility="0.8" installRequired="true" xhtmlcompliant="true" >
|
||||
<author name="e107 Inc." url="http://e107.org" />
|
||||
<description>This plugin is a fully featured Forum system</description>
|
||||
@@ -12,7 +12,7 @@
|
||||
<link url="forum_admin.php?opt" description="Forum Preferences" icon="settings" perm="mainadmin" >Preferences</link>
|
||||
</adminLinks>
|
||||
<siteLinks>
|
||||
<link url="forum/forum.php" perm='everyone'>Forum</link>
|
||||
<link url="{e_PLUGIN}forum/forum.php" perm='everyone'>Forum</link>
|
||||
</siteLinks>
|
||||
<mainPrefs>
|
||||
<pref name="forum_show_topics">1</pref>
|
||||
|
Reference in New Issue
Block a user