/** General File Info * FileName : FiXatoQuickEditBar-1.6-v1.5I.txt * Version : 1.5 * Description : FiXato QuickEditBar Hack 1.6 v1.5 By Filip "FiXato" Slagter * Requirement : XMB v1.6 Magic Lantern * Date[start] : 08-12-2002 * Date[end] : 09-12-2002 * Date[lastModification] : 09-12-2002 @ 0:49 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.6 MAGIC LANTERN! * I created a separate version for XMB 1.8 Partagium! * -FiXato- */ ------------------------------------------------------------------------------------------------------------ ------------------------------------Installation Guide------------------------------------------------------ ------------------------------------------------------------------------------------------------------------ -> 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] -=- -> ADMINISTRATION PANEL -> TEMPLATES -> BACKUP ALL() -> ADMINISTRATION PANEL -> TEMPLATES -> NEW ("FiXato_quickEditBar") ------------------------------------[INSERT]------------------------------------
QuickEdit Bar $QE_version
$showAva
Theme: Mood: Avatar:
Signature:
Developed by FiXato.nl
------------------------------------[/INSERT]------------------------------------ [SUBMIT CHANGES] -=- -> ADMINISTRATION PANEL -> TEMPLATES -> EDIT ("header") ------------------------------------[FIND]------------------------------------ ------------------------------------[/FIND]------------------------------------ ------------------------------------[ADD,BELOW]------------------------------------ $FiXato_quickEditBar ------------------------------------[/ADD,BELOW]------------------------------------ [SUBMIT CHANGES] -=- [OPEN]./Functions.php[/OPEN] ------------------------------------[ADD, BOTTOM] ( before last occurence of ?> )------------------------------------ function checkInput($input, $striptags="yes", $word="") { //Function to check for and replace illegal contents created on 03-11-2002 by FiXato $input = trim($input); //Remove space-chars from the beginning and the end if($striptags == "yes" || $striptags != "no") { //If tags have to be stripped, then $input = strip_tags($input); //Strip all the PHP and HTML-tags from $input } $input = htmlentities($input,ENT_QUOTES); //Convert all special chars (including all quotes!) to their HTML-equivalents if($word != "") { //If a word is submitted, Then $input = eregi_replace($word, "_$word", $input); //search (case-insensitive) for that word in the input and add an underscore in front of it } RETURN $input; //Return the checked Input } ------------------------------------[/ADD, BOTTOM]------------------------------------ [SAVE]./Functions.php[/SAVE] [CLOSE]./Functions.php[/CLOSE] -=- [OPEN]./header.php[/OPEN] ------------------------------------[FIND]------------------------------------ foreach($tables as $name) { ${'table_'.$name} = $tablepre.$name; } ------------------------------------[/FIND]------------------------------------ ------------------------------------[ADD,BELOW]------------------------------------ //START part1 FiXato QuickEditBar. ReWritten and added on Wednesday 13 November 2002 By FiXato. Last Mod 09-12-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. Last Mod 09-12-2002 by FiXato ------------------------------------[/ADD,BELOW]------------------------------------ [SAVE]./header.php[/SAVE] -=- ------------------------------------[FIND]------------------------------------ eval("\$bbcodescript = \"".template("functions_bbcode")."\";"); ------------------------------------[/FIND]------------------------------------ ------------------------------------[ADD,BELOW]------------------------------------ //START part2 FiXato QuickEditBar. ReWritten and added on Wednesday 13 November 2002 By FiXato. Last Mod 09-12-2002 by FiXato 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($this[avatar] != "" && $QEB_SETTINGS['showAvaStatus'] == "yes") { $showAva = $this[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. Last Mod 09-12-2002 by FiXato ------------------------------------[/ADD,BELOW]------------------------------------ [SAVE]./header.php[/SAVE] [CLOSE]./header.php[/SAVE] -=-