[geeklog-hg] geeklog: merged with upstream

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Jul 2 14:40:16 EDT 2012


changeset 8762:f33a9101fefc
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/f33a9101fefc
user: Dirk Haun <dirk at haun-online.de>
date: Mon Jul 02 20:35:08 2012 +0200
description:
merged with upstream

diffstat:

 public_html/admin/block.php                                           |    4 +-
 public_html/admin/install/config-install.php                          |    2 +-
 public_html/admin/plugins/staticpages/index.php                       |    1 +
 public_html/admin/story.php                                           |    1 +
 public_html/layout/denim/submit/submitstory_advanced.thtml            |   97 ++++----
 public_html/layout/modern_curve/submit/submitstory_advanced.thtml     |  111 ++++-----
 public_html/layout/professional/submit/submitstory_advanced.thtml     |  102 ++++----
 public_html/layout/professional_css/submit/submitstory_advanced.thtml |  111 ++++-----
 public_html/submit.php                                                |   19 +-
 system/classes/scripts.class.php                                      |    7 +-
 system/classes/story.class.php                                        |    4 +
 system/lib-comment.php                                                |    1 +
 12 files changed, 231 insertions(+), 229 deletions(-)

diffs (truncated from 589 to 300 lines):

diff -r 1e0de7041078 -r f33a9101fefc public_html/admin/block.php
--- a/public_html/admin/block.php	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/admin/block.php	Mon Jul 02 20:35:08 2012 +0200
@@ -442,7 +442,7 @@
         'title'      => "$LANG21[22] ($LANG21[40])",
     );
 	
-	$leftblocks = PLG_getBlocksConfig('left', '', true);    
+	$leftblocks = PLG_getBlocksConfig('left', '');    
 	
 	// Sort Dynamic Blocks on Block Order
     usort($leftblocks, "cmpDynamicBlocks");
@@ -485,7 +485,7 @@
         'title'      => "$LANG21[22] ($LANG21[41])",
     );
 	
-	$rightblocks = PLG_getBlocksConfig('right', '', true);
+	$rightblocks = PLG_getBlocksConfig('right', '');
 	
 	// Sort Dynamic Blocks on Block Order
     usort($rightblocks, "cmpDynamicBlocks");
diff -r 1e0de7041078 -r f33a9101fefc public_html/admin/install/config-install.php
--- a/public_html/admin/install/config-install.php	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/admin/install/config-install.php	Mon Jul 02 20:35:08 2012 +0200
@@ -155,7 +155,7 @@
     
     $c->add('tab_theme', NULL, 'tab', 2, 10, NULL, 0, TRUE, $me, 10);
     $c->add('fs_theme', NULL, 'fieldset', 2, 10, NULL, 0, TRUE, $me, 10);
-    $c->add('theme','professional','select',2,10,NULL,190,TRUE, $me, 10);
+    $c->add('theme','modern_curve','select',2,10,NULL,190,TRUE, $me, 10);
     $c->add('doctype','html401strict','select',2,10,21,195,TRUE, $me, 10);
     $c->add('menu_elements',array('contribute','search','stats','directory','plugins'),'%select',2,10,24,200,TRUE, $me, 10);
     $c->add('path_themes','','text',2,10,NULL,210,TRUE, $me, 10);
diff -r 1e0de7041078 -r f33a9101fefc public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/admin/plugins/staticpages/index.php	Mon Jul 02 20:35:08 2012 +0200
@@ -103,6 +103,7 @@
         $sp_template->set_var('noscript', COM_getNoScript(false, '', $link_message));        
         
         // Add JavaScript
+        $_SCRIPTS->setJavaScriptFile('fckeditor','/fckeditor/fckeditor.js');
         $js = 'geeklogEditorBasePath = "' . $_CONF['site_url'] . '/fckeditor/";';
         // Hide the Advanced Editor as Javascript is required. If JS is enabled then the JS below will un-hide it
         $js .= 'document.getElementById("advanced_editor").style.display="";';                 
diff -r 1e0de7041078 -r f33a9101fefc public_html/admin/story.php
--- a/public_html/admin/story.php	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/admin/story.php	Mon Jul 02 20:35:08 2012 +0200
@@ -771,6 +771,7 @@
             document.getElementById("advanced_editor").style.display=""
         </script>';     
         
+        $_SCRIPTS->setJavaScriptFile('fckeditor','/fckeditor/fckeditor.js');
         $_SCRIPTS->setJavaScriptFile('advanced_editor', '/javascript/advanced_editor.js');
         $_SCRIPTS->setJavaScriptFile('storyeditor_fckeditor', '/javascript/storyeditor_fckeditor.js');        
     }
diff -r 1e0de7041078 -r f33a9101fefc public_html/layout/denim/submit/submitstory_advanced.thtml
--- a/public_html/layout/denim/submit/submitstory_advanced.thtml	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/layout/denim/submit/submitstory_advanced.thtml	Mon Jul 02 20:35:08 2012 +0200
@@ -1,57 +1,52 @@
 
 <!-- submit/submitstory_advanced.thtml { -->
 
-<script type="text/javascript">
-  <!--
-  // Setup editor path for FCKeditor JS Functions
-  geeklogEditorBasePath = "{site_url}/fckeditor/";
-  -->
-</script>
-<script type="text/JavaScript" src="{site_url}/javascript/submitstory_fckeditor.js"></script>
-
-<form action="{site_url}/submit.php" method="post" onSubmit='set_postcontent();' id="submitstory" class="compact">
-
-  <div class="user_basic">
-    <dl class="form_block">
-      <dt>{lang_username}</dt>
-      <dd>{story_username} [ <a href="{status_url}" rel="nofollow">{lang_loginout}</a>{separator}{create_account} ]</dd>
-
-      <dt><label for="submitstory_advanced-title">{lang_title}</label></dt>
-      <dd><input type="text" maxlength="96" value="{story_title}" name="title" id="submitstory_advanced-title" class="size5"{xhtml}></dd>
-
-      <dt><label>{lang_topic}</label></dt>
-      <dd>{topic_selection}</dd>
-
-      <dt><label for="introtext">{lang_story}</label></dt>
-      <dd>
-        <div class="text_editor" style="display: {show_texteditor};">
-          <textarea cols="45" rows="15" name="introtext" id="introtext" class="wide">{story_introtext}</textarea>
+{noscript}
+<div id="advanced_editor" style="display:none;">
+    <form action="{site_url}/submit.php" method="post" onSubmit='set_postcontent();' id="submitstory" class="compact">
+    
+      <div class="user_basic">
+        <dl class="form_block">
+          <dt>{lang_username}</dt>
+          <dd>{story_username} [ <a href="{status_url}" rel="nofollow">{lang_loginout}</a>{separator}{create_account} ]</dd>
+    
+          <dt><label for="submitstory_advanced-title">{lang_title}</label></dt>
+          <dd><input type="text" maxlength="96" value="{story_title}" name="title" id="submitstory_advanced-title" class="size5"{xhtml}></dd>
+    
+          <dt><label>{lang_topic}</label></dt>
+          <dd>{topic_selection}</dd>
+    
+          <dt><label for="introtext">{lang_story}</label></dt>
+          <dd>
+            <div class="text_editor" style="display: {show_texteditor};">
+              <textarea cols="45" rows="15" name="introtext" id="introtext" class="wide">{story_introtext}</textarea>
+            </div>
+            <div class="html_editor" style="display: {show_htmleditor};">
+              <textarea cols="45" rows="15" name="introhtml" id="introhtml" class="wide">{story_introtext}</textarea>
+            </div>
+          </dd>
+     
+          <dt><label for="submitstory_advanced-postmode">{lang_postmode}</label></dt>
+          <dd>
+            <select name="postmode" id="sel_editmode" {change_editormode}>
+              {story_postmode_options}
+            </select>
+          </dd>
+          <dd class="description">{allowed_html}</dd>
+        </dl>
+    
+        {captcha}
+    
+        <div class="submit">
+          <input name="mode" type="submit" value="{lang_preview}" class="submit"{xhtml}>
+          <input type="hidden" name="type" value="story"{xhtml}>
+          <input type="hidden" name="uid" value="{story_uid}"{xhtml}>
+          <input type="hidden" name="sid" value="{story_sid}"{xhtml}>
+          <input type="hidden" name="date" value="{story_date}"{xhtml}>
+          {save_button}
         </div>
-        <div class="html_editor" style="display: {show_htmleditor};">
-          <textarea cols="45" rows="15" name="introhtml" id="introhtml" class="wide">{story_introtext}</textarea>
-        </div>
-      </dd>
- 
-      <dt><label for="submitstory_advanced-postmode">{lang_postmode}</label></dt>
-      <dd>
-        <select name="postmode" id="sel_editmode" {change_editormode}>
-          {story_postmode_options}
-        </select>
-      </dd>
-      <dd class="description">{allowed_html}</dd>
-    </dl>
-
-    {captcha}
-
-    <div class="submit">
-      <input name="mode" type="submit" value="{lang_preview}" class="submit"{xhtml}>
-      <input type="hidden" name="type" value="story"{xhtml}>
-      <input type="hidden" name="uid" value="{story_uid}"{xhtml}>
-      <input type="hidden" name="sid" value="{story_sid}"{xhtml}>
-      <input type="hidden" name="date" value="{story_date}"{xhtml}>
-      {save_button}
-    </div>
-  </div>
-</form>
+      </div>
+    </form>
+</div>
 
 <!-- } submit/submitstory_advanced.thtml -->
diff -r 1e0de7041078 -r f33a9101fefc public_html/layout/modern_curve/submit/submitstory_advanced.thtml
--- a/public_html/layout/modern_curve/submit/submitstory_advanced.thtml	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/layout/modern_curve/submit/submitstory_advanced.thtml	Mon Jul 02 20:35:08 2012 +0200
@@ -1,64 +1,59 @@
 
 <!-- submit/submitstory_advanced.thtml { -->
 
-<script type="text/javascript">
-  <!--
-  // Setup editor path for FCKeditor JS Functions
-  geeklogEditorBasePath = "{site_url}/fckeditor/";
-  -->
-</script>
-<script type="text/JavaScript" src="{site_url}/javascript/submitstory_fckeditor.js"></script>
-
-<form action="{site_url}/submit.php" method="post" onSubmit='set_postcontent();' id="submitstory_advanced" class="compact">
-
-  <div class="user_basic">
-    <dl>
-      <dt>{lang_username}</dt>
-      <dd>{story_username}
-        <ul class="navi">
-          <li><a href="{status_url}" rel="nofollow">{lang_loginout}</a></li>
-          <li>{create_account}</li>
+{noscript}
+<div id="advanced_editor" style="display:none;">
+    <form action="{site_url}/submit.php" method="post" onSubmit='set_postcontent();' id="submitstory_advanced" class="compact">
+    
+      <div class="user_basic">
+        <dl>
+          <dt>{lang_username}</dt>
+          <dd>{story_username}
+            <ul class="navi">
+              <li><a href="{status_url}" rel="nofollow">{lang_loginout}</a></li>
+              <li>{create_account}</li>
+            </ul>
+          </dd>
+    
+          <dt><label for="submitstory_advanced-title">{lang_title}</label></dt>
+          <dd><input type="text" size="36" maxlength="96" value="{story_title}" name="title" id="submitstory_advanced-title" class="text"{xhtml}></dd>
+    
+          <dt><label for="submitstory_advanced-tid">{lang_topic}</label></dt>
+          <dd>{topic_selection}</dd>
+    
+          <dt><label for="introtext">{lang_story}</label></dt>
+          <dd>
+            <div id="text_editor" style="display: {show_texteditor};">
+              <textarea cols="45" rows="15" name="introtext" id="introtext">{story_introtext}</textarea>
+            </div>
+            <div id="html_editor" style="display: {show_htmleditor};">
+              <textarea cols="45" rows="15" name="introhtml" id="introhtml">{story_introtext}</textarea>
+            </div>
+          </dd>
+     
+          <dt><label for="submitstory_advanced-postmode">{lang_postmode}</label></dt>
+          <dd>
+            <select name="postmode" id="sel_editmode" {change_editormode}>
+              {story_postmode_options}
+            </select>
+          </dd>
+          <dd class="description">{allowed_html}</dd>
+        </dl>
+    
+        {captcha}
+    
+        <ul class="submit">
+          <li><input name="mode" type="submit" value="{lang_preview}" class="submit"{xhtml}></li>
+          <li>
+            <input type="hidden" name="type" value="story"{xhtml}>
+            <input type="hidden" name="uid" value="{story_uid}"{xhtml}>
+            <input type="hidden" name="sid" value="{story_sid}"{xhtml}>
+            <input type="hidden" name="date" value="{story_date}"{xhtml}>
+            {save_button}
+          </li>
         </ul>
-      </dd>
-
-      <dt><label for="submitstory_advanced-title">{lang_title}</label></dt>
-      <dd><input type="text" size="36" maxlength="96" value="{story_title}" name="title" id="submitstory_advanced-title" class="text"{xhtml}></dd>
-
-      <dt><label for="submitstory_advanced-tid">{lang_topic}</label></dt>
-      <dd>{topic_selection}</dd>
-
-      <dt><label for="introtext">{lang_story}</label></dt>
-      <dd>
-        <div id="text_editor" style="display: {show_texteditor};">
-          <textarea cols="45" rows="15" name="introtext" id="introtext">{story_introtext}</textarea>
-        </div>
-        <div id="html_editor" style="display: {show_htmleditor};">
-          <textarea cols="45" rows="15" name="introhtml" id="introhtml">{story_introtext}</textarea>
-        </div>
-      </dd>
- 
-      <dt><label for="submitstory_advanced-postmode">{lang_postmode}</label></dt>
-      <dd>
-        <select name="postmode" id="sel_editmode" {change_editormode}>
-          {story_postmode_options}
-        </select>
-      </dd>
-      <dd class="description">{allowed_html}</dd>
-    </dl>
-
-    {captcha}
-
-    <ul class="submit">
-      <li><input name="mode" type="submit" value="{lang_preview}" class="submit"{xhtml}></li>
-      <li>
-        <input type="hidden" name="type" value="story"{xhtml}>
-        <input type="hidden" name="uid" value="{story_uid}"{xhtml}>
-        <input type="hidden" name="sid" value="{story_sid}"{xhtml}>
-        <input type="hidden" name="date" value="{story_date}"{xhtml}>
-        {save_button}
-      </li>
-    </ul>
-  </div>
-</form>
+      </div>
+    </form>
+</div>
 
 <!-- } submit/submitstory_advanced.thtml -->
diff -r 1e0de7041078 -r f33a9101fefc public_html/layout/professional/submit/submitstory_advanced.thtml
--- a/public_html/layout/professional/submit/submitstory_advanced.thtml	Mon Jul 02 11:40:57 2012 +0200
+++ b/public_html/layout/professional/submit/submitstory_advanced.thtml	Mon Jul 02 20:35:08 2012 +0200
@@ -1,52 +1,50 @@
-                            <script type="text/javascript">
-                                // Setup editor path for FCKeditor JS Functions
-                                geeklogEditorBasePath = "{site_url}/fckeditor/" ;
-                            </script>
-                            <script type="text/JavaScript" src="{site_url}/javascript/submitstory_fckeditor.js"></script>
-                            <form action="{site_url}/submit.php" method="post" onsubmit='set_postcontent();'>
-                                <table cellspacing="0" cellpadding="3">
-                                    <tr>
-                                        <td class="alignright"><b>{lang_username}:</b></td>
-                                        <td>{story_username} [ <a href="{status_url}" rel="nofollow">{lang_loginout}</a>{separator}{create_account} ]</td>
-                                    </tr>
-                                    <tr>
-                                        <td class="alignright"><b>{lang_title}:</b></td>



More information about the geeklog-cvs mailing list