Redid stupid fading button code and fixed several RC2 bugs in the upgrade schema; 1.0.1 release candidate
authorDan
Sun, 12 Aug 2007 13:11:16 -0400
changeset 87 570f68c3fe36
parent 86 c162ca39db8f
child 88 9e303b7e95c2
Redid stupid fading button code and fixed several RC2 bugs in the upgrade schema; 1.0.1 release candidate
includes/clientside/css/enano-shared.css
includes/clientside/static/ajax.js
includes/template.php
plugins/SpecialPageFuncs.php
upgrade.sql
--- a/includes/clientside/css/enano-shared.css	Fri Aug 10 15:57:22 2007 -0400
+++ b/includes/clientside/css/enano-shared.css	Sun Aug 12 13:11:16 2007 -0400
@@ -10,7 +10,7 @@
 div.wait-box                      { background-image: url(../../../images/wait.png);     background-position: 8px 8px; background-repeat: no-repeat; background-color: #FFF4FF; border: 1px dashed #406080; padding: 10px 10px 10px 50px; margin: 1em 0 0 0; min-height: 25px; }
 
 /* IE-only stylesheet \*/
-@import url("enano-shared-ie.css");
+@import url("./enano-shared-ie.css");
 /* End IE-only stylesheet */
 
 div.error-box-mini                { background-image: url(../../../images/mini-error.png);    background-position: 5px center; background-repeat: no-repeat; background-color: #FFF4F4; border: 1px solid #406080; padding: 4px 4px 4px 26px; margin: 1em 0; min-height: 17px; }
--- a/includes/clientside/static/ajax.js	Fri Aug 10 15:57:22 2007 -0400
+++ b/includes/clientside/static/ajax.js	Sun Aug 12 13:11:16 2007 -0400
@@ -1064,6 +1064,7 @@
   var catbox = document.getElementById('mdgCatBox');
   if ( !catbox )
     return false;
+  addtag_open = false;
   var linkbox = catbox.parentNode.firstChild.firstChild.nextSibling;
   linkbox.firstChild.nodeValue = 'show page tags';
   linkbox.onclick = function() { ajaxCatToTag(); return false; };
--- a/includes/template.php	Fri Aug 10 15:57:22 2007 -0400
+++ b/includes/template.php	Sun Aug 12 13:11:16 2007 -0400
@@ -42,12 +42,9 @@
     $this->plugin_blocks = Array();
     $this->theme_loaded = false;
     
-    $this->fading_button = '<a href="http://enanocms.org" onclick="if ( !KILL_SWITCH ) { window.open(this.href); return false; }" style="text-align: center; margin: 0 auto; display: table; background-image: none;">
-                            <img alt="Powered by Enano CMS" style="border-width: 0; position: absolute;" 
-                                 src="' . scriptPath . '/images/about-powered-enano.png" id="enanoFader" onmouseover="domOpacity(this, 100, 0, 500);" 
-                                 onmouseout="opacity(this.id, 0, 100, 500);" />
-                            <img alt="Powered by Enano CMS" style="border-width: 0px;" src="' . scriptPath . '/images/about-powered-enano-hover.png" />
-                          </a>';
+    $this->fading_button = '<div style="background-image: url('.scriptPath.'/images/about-powered-enano-hover.png); background-repeat: no-repeat; width: 88px; height: 31px; margin: 0 auto;">
+                              <a href="http://enanocms.org/" onclick="window.open(this.href); return false;"><img style="border-width: 0;" alt=" " src="'.scriptPath.'/images/about-powered-enano.png" onmouseover="domOpacity(this, 100, 0, 500);" onmouseout="domOpacity(this, 0, 100, 500);" /></a>
+                            </div>';
     
     $this->theme_list = Array();
     $this->named_theme_list = Array();
--- a/plugins/SpecialPageFuncs.php	Fri Aug 10 15:57:22 2007 -0400
+++ b/plugins/SpecialPageFuncs.php	Sun Aug 12 13:11:16 2007 -0400
@@ -324,13 +324,7 @@
           <table border="0" style="margin: 0 auto; background: none; width: 100%;" cellpadding="5">
             <tr>
               <td style="text-align: center;">
-                <a href="http://enanocms.org/" onclick="window.open(this.href); return false;" style="background: none; padding: 0;">
-                    <img alt="Powered by Enano"
-                         src="<?php echo scriptPath; ?>/images/about-powered-enano.png"
-                         onmouseover="this.src='<?php echo scriptPath; ?>/images/about-powered-enano-hover.png';"
-                         onmouseout="this.src='<?php echo scriptPath; ?>/images/about-powered-enano.png';"
-                         style="border-width: 0px;" width="88" height="31" />
-                  </a>
+                <?php echo $template->fading_button; ?>
               </td>
               <td style="text-align: center;">
                 <a href="http://www.php.net/" onclick="window.open(this.href); return false;" style="background: none; padding: 0;">
--- a/upgrade.sql	Fri Aug 10 15:57:22 2007 -0400
+++ b/upgrade.sql	Sun Aug 12 13:11:16 2007 -0400
@@ -25,13 +25,12 @@
 ALTER TABLE {{TABLE_PREFIX}}groups ADD COLUMN system_group tinyint(1) NOT NULL DEFAULT 0;
 UPDATE {{TABLE_PREFIX}}groups SET system_group=1 WHERE group_id=1 OR group_id=2;
 INSERT INTO {{TABLE_PREFIX}}groups(group_id,group_name,group_type,system_group) VALUES(3, 'Moderators', 3, 1);
-ALTER TABLE {{TABLE_PREFIX}}privmsgs ADD COLUMN message_read tinyint(1) NOT NULL DEFAULT 0;
 -- ...and add the associated ACL rule
 INSERT INTO {{TABLE_PREFIX}}acl(target_type,target_id,page_id,namespace,rules) VALUES(1,3,NULL,NULL,'read=4;post_comments=4;edit_comments=4;edit_page=4;view_source=4;mod_comments=4;history_view=4;history_rollback=4;history_rollback_extra=4;protect=4;rename=3;clear_logs=2;vote_delete=4;vote_reset=4;delete_page=4;set_wiki_mode=2;password_set=2;password_reset=2;mod_misc=2;edit_cat=4;even_when_protected=4;upload_files=2;upload_new_version=3;create_page=3;php_in_pages=2;edit_acl=2;');
 -- Reset default user's theme to Oxygen, to emphasize stable release
 UPDATE {{TABLE_PREFIX}}users SET theme='oxygen',style='bleu' WHERE user_id=1 OR user_id=2;
 -- Create table with extra user information
-CREATE TABLE users_extra( user_id mediumint(8) NOT NULL, user_aim varchar(63) default NULL, user_yahoo varchar(63) default NULL, user_msn varchar(255) default NULL, user_xmpp varchar(255) default NULL, user_homepage text, user_location text, user_job text, user_hobbies text, email_public tinyint(1) NOT NULL default '0', userpage_comments smallint(5) NOT NULL default '0', PRIMARY KEY ( user_id ) );
+CREATE TABLE {{TABLE_PREFIX}}users_extra( user_id mediumint(8) NOT NULL, user_aim varchar(63) default NULL, user_yahoo varchar(63) default NULL, user_msn varchar(255) default NULL, user_xmpp varchar(255) default NULL, user_homepage text, user_location text, user_job text, user_hobbies text, email_public tinyint(1) NOT NULL default '0', userpage_comments smallint(5) NOT NULL default '0', PRIMARY KEY ( user_id ) );
 -- Turn on the Enano button on the sidebar
 INSERT INTO {{TABLE_PREFIX}}config(config_name,config_value) VALUES('powered_btn', '1');
 ---END 1.0RC2---