/** General File Info
* FileName : FiXatoQuickEditBar-1.8-v1.5I.txt
* Version : 1.5
* Description : FiXato QuickEditBar Hack v1.5 Install By Filip "FiXato" Slagter
* Requirement : XMB 1.8 Partagium Final Beta (Build: 07120210PM)
* Date[start] : 15-11-2002
* Date[end] : 08-12-2002
* Date[lastModification] : 08-12-2002 @ 22:55 GMT+1 by FiXato
* Creator[name] : Filip H.F. -=FiXato=- Slagter
* Creator[email] : Hacks@fixato.nl
*/
/** SYMBOL GUIDE
* SYMBOL || MEANING
* ------------------------------------------------------------------------------
* -> || Navigate To
* NEW("name") || Create NEW with name "name"
* [OPEN]./name.ext[/OPEN] || Open file "name.ext", "./" indicates it is located in the forum-rootfolder
* [SAVE]./name.ext[/SAVE] || Save the file "name.ext", "./" indicates it is located in the forum-rootfolder
* [CLOSE]./name.ext[/CLOSE] || Close the file "name.ext", you are finished editting this file. "./" indicates it is located in the forum-rootfolder
* -=- || End of Section
*/
/** EXTRA COMMENTS:
* [!] It is adviced to BACKUP the file before you edit it.
* [!] Test every mayor change. If something goes wrong, it is easier fixed
* [!] A backup of your XMB DataBase is not a bad idea as well
* [!] FiXato, contributors and XMB are NOT liable for any damage or inconsistancies caused by these Hacks/Modifications and other Changes
*/
/** FINAL NOTE
* THIS VERSION IS WRITTEN SPECIFICALLY FOR XMB 1.8 PARTAGIUM
* I created a separate version for XMB 1.6 Magic Lantern!
* This version was created by using Beta Build 07120210PM, for earlier or later builds, this version MIGHT not work.
* As a result of this e have no specific UPGRADE file this time, because the changes were to extensive.
* However, to 'upgrade', you can delete all sections that are enclosed with the // Start FiXato -comments
* And update the template with the new contents.
* Then apply the rest of this installation guide.
* But you are STRONGLY ADVISED to upgrade to the latest XMB 1.8 Beta Build
* -FiXato-
*/
------------------------------------------------------------------------------------------------------------
------------------------------------Installation Guide------------------------------------------------------
------------------------------------------------------------------------------------------------------------
-> ADMINISTRATION PANEL -> TEMPLATES -> BACKUP ALL()
-> ADMINISTRATION PANEL -> TEMPLATES -> NEW ("FiXato_quickEditBar")
------------------------------------[INSERT]------------------------------------
------------------------------------[/FIND]------------------------------------
------------------------------------[ADD,BELOW]------------------------------------
$FiXato_quickEditBar
------------------------------------[/ADD,BELOW]------------------------------------
[SUBMIT CHANGES]
-=-
-> ADMINISTRATION PANEL -> UPGRADE()
// NOTE!!! IF YOU HAVE SET YOUR TABLE PREFIX TO SOMETHING ELSE THAN xmb, THEN CHANGE THIS IN THE SCRIPT BELOW (2times: once near CREATE TABLE, and once near INSERT INTO) !!!
------------------------------------[INSERT INTO TEXTAREA]------------------------------------
CREATE TABLE `xmb_fixato_quickeditbar` (
`id` tinyint(2) unsigned NOT NULL auto_increment,
`showAvaStatus` set('yes','no') NOT NULL default 'yes',
`titleHorizontalAlign` set('left','center','right') NOT NULL default 'center',
`moodMaxLength` tinyint(3) unsigned NOT NULL default '45',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `id_2` (`id`)
) TYPE=MyISAM COMMENT='Settings for the FiXato QuickEditBar';
INSERT INTO xmb_fixato_quickeditbar VALUES("1","yes","center","45");
------------------------------------[/INSERT INTO TEXTAREA]------------------------------------
[SUBMIT CHANGES]
-=-
------------------------------------[OPEN]./header.php[/OPEN]------------------------------------
------------------------------------[FIND]------------------------------------
$settingsquery = $db->query("SELECT * FROM $table_settings");
foreach($db->fetch_array($settingsquery) as $key => $val) {
$$key = $val;
$SETTINGS[$key] = $val;
}
------------------------------------[/FIND]------------------------------------
------------------------------------[ADD, BELOW]------------------------------------
//START part1 FiXato QuickEditBar. ReWritten and added on Wednesday 13 November 2002 By FiXato
if($xmbuser && $xmbpw){
$QE_version = "v1.5";
if($QE_formSubmit == "QuickEdit") { //Checks if QuickEdit has been activated
$QE_moodInput = checkInput("$QE_moodInput", "yes", "javascript"); //Check for illegal input and remove the illegal input
$QE_avatarInput = checkInput("$QE_avatarInput", "yes", "javascript:"); //Check for illegal input and remove the illegal input
$QE_signatureInput = checkInput("$QE_signatureInput", "yes", "javascript:"); //Check for illegal input and remove the illegal input
$db->query("UPDATE $table_members SET theme='$QE_theme', mood='$QE_moodInput', avatar='$QE_avatarInput', sig='$QE_signatureInput' WHERE username='$xmbuser' AND password='$xmbpw'"); //Sets the new theme and mood
}
}
//END part1 FiXato QuickEditBar. ReWritten and added on Wednesday 13 November 2002 By FiXato
------------------------------------[/ADD, BELOW]------------------------------------
-=-
------------------------------------[FIND]------------------------------------
// Get Most Common Templates
eval("\$css = \"".template("css")."\";");
eval("\$bbcodescript = \"".template("functions_bbcode")."\";");
------------------------------------[/FIND]------------------------------------
------------------------------------[ADD, BELOW]------------------------------------
//START part2 FiXato QuickEditBar. ReWritten and added on Wednesday 13 November 2002 By FiXato
//NOTE: for some older xmb1.8 betas, $self[] has to be $XMBUSER[]
//But you are adviced to use the latest XMB1.8 Beta Release!
IF($xmbuser) {
$sql = $db->query("SELECT * FROM $tablepre"."fixato_quickeditbar");
foreach($db->fetch_array($sql) as $key => $val) {
$$key = $val;
$QEB_SETTINGS[$key] = $val;
}
If($themeuser == "") {
$sel = " selected=\"selected\"";
}
$QE_themeOptions = "";
$query = $db->query("SELECT name FROM $table_themes ORDER BY name");
while($QE_themeslist = $db->fetch_array($query)) {
IF($theme == $QE_themeslist[name] && $themeuser != "") {
$sel = " selected=\"selected\"";
}
else {
unSet($sel);
}
$QE_themeOptions .= "\n";
}
if($self['avatar'] != "" && $QEB_SETTINGS['showAvaStatus'] == "yes") {
$showAva = $self[avatar];
if(strstr($showAva, ",")) {
$flashavatar = explode(",",$showAva);
$avatar = "
";
}else{
$showAva = "";
}
}
eval("\$FiXato_quickEditBar = \"" .template("FiXato_quickEditBar")."\";");
}
//END part2 FiXato QuickEditBar. ReWritten and added on Wednesday 13 November 2002 By FiXato
------------------------------------[/ADD, BELOW]------------------------------------
------------------------------------[SAVE & CLOSE]./header.php[/SAVE & CLOSE]------------------------------------
-=-
Everything should now be ready =]