#############################################################################
#
# UPGRADE Extboard v1.1 to v1.2  (feb. 2009, by ZOC)
#
#############################################################################
BEFOR YOU MAKE THIS UPDATE - MAKE A BACKUP FROM ALL FILES

#
# ------ 1. please copy/upload all files from this folders:
#
/forum
/includes
/locale


# OPEN THE maincore.php
#
# ------ 2. please change the complete parseubb function with the original
#

#
# ------ 3. REPLACE the parsesmileys function with:
#

function parsesmileys($message,$reverse=false) 
{
	$query = mysql_query("SELECT smile_url,code FROM ".DB_PREFIX."smilies") or die(mysql_error());
	while($row = mysql_fetch_object($query))
	{
		if(!$reverse) {
		$img="<img src='".IMAGES."smiley/".$row->smile_url."' alt=''>";
		$message =str_replace($row->code,$img,$message);
		} else {
		$img="<img src='".IMAGES."smiley/".$row->smile_url."' alt=''>";
		$message =str_replace($img,$row->code,$message);	
		$message =str_replace($row->code,$row->code,$message);	
		}
	}
	return $message;
}

#
# ------ 4. REMOVE the line
#
require_once INCLUDES."automatic_linking_include.php"; //clickable


# close and save the maincore.php


#
# ------ 5. execute this little script in a NEW PANEL, ONLY with preview -----
# (its updating your version number)

$result = dbquery("UPDATE ".$db_prefix."extboard_settings SET `version` = '1.2'");
echo "Version aktualisiert - version is updated ...";


#
# ------ 6. please check or paste this section at the END of your maincore.php
#

// silvermoon
if ($settings['maintenance'] != "1") {
	$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
	$result = dbquery("SELECT online_user,online_ip,online_lastactive FROM ".$db_prefix."online WHERE online_user=".$cond." LIMIT 1");
	if (dbrows($result) != 0) {
		$result = mysql_unbuffered_query("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
	} else {
		$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
		$result = mysql_unbuffered_query("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
	}
	$result = mysql_unbuffered_query("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
}
// ende


-----------------------------------------------------

# There are no other db changes !!

# you may remove the follow files from /includes:
/geshi - folder
automatic_linking_include.php
geshi.php
geshi_bbcode_include.php


# ------ READY! ----
If you dont see a quick reply, please check for the function opentablex() in your used theme.php.
Alternatively you should use opensidex() instead.



This is the last standalone version from Extboard.
Many thanks to all users, which are interested in this.

best regards, ZOC and Silvermoon (feb. 2009)
