Nach Update auf 1.5.3 keine Formatierung im Editor

Please report bugs here!

Moderator: Thorsten

Andy
Posts: 87
Joined: Fri Mar 07, 2003 10:58 am

Post by Andy » Thu Oct 20, 2005 9:06 am

OK, ich tausche dann morgen Admend nochmal den Admin-Ordner aus.

Brauchst du den Admin-Zugang dann vorerst noch nicht ?

Thorsten
Posts: 15150
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Thu Oct 20, 2005 9:09 am

Hi,

nein, vorerst nicht. :-)

Hier ist übrigens der geänderte Code für die admin/header.php:

Code: Select all

<?php
/**
* $Id: header.php,v 1.8.2.8 2005/10/20 05:31:23 thorstenr Exp $
*
* header of the admin area
*
* @author       Thorsten Rinne <thorsten@phpmyfaq.de>
* @since        2003-02-26
* @copyright    (c) 2001-2005 phpMyFAQ Team
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/

if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) {
    header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']));
    exit();
}

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-type: text/html; charset=".$PMF_LANG["metaCharset"]);
header("Vary: Negotiate,Accept");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $PMF_LANG["metaLanguage"]; ?>" lang="<?php print $PMF_LANG["metaLanguage"]; ?>">
<head>
    <title><?php print $PMF_CONF["title"]; ?> - powered by phpMyFAQ</title>
    <meta name="copyright" content="(c) 2001-2005 phpMyFAQ Team" />
    <meta http-equiv="Content-Type" content="text/html; charset=<?php print $PMF_LANG["metaCharset"]; ?>" />
    <style type="text/css"> @import url(../template/admin.css); </style>
    <script language="JavaScript" type="text/javascript" src="../inc/functions.js"></script>
<?php
if (isset($_REQUEST["aktion"]) && ($_REQUEST["aktion"] == "editentry" || $_REQUEST["aktion"] == "news" || $_REQUEST["aktion"] == "editpreview" || $_REQUEST["aktion"] == "takequestion") && !emptyTable(SQLPREFIX."faqcategories")) {
?>
    <style type="text/css"> @import url(editor/htmlarea.css); </style>
    <script type="text/javascript">
    //<![CDATA[
    _editor_url = "editor";
    _editor_lang = "en";
    //]]>
    </script>
    <script type="text/javascript" src="editor/htmlarea.js"></script>
    <script type="text/javascript" src="editor/plugins/ImageManager/image-manager.js"></script>
    <script type="text/javascript">
    //<![CDATA[
        HTMLArea.init();
        HTMLArea.loadPlugin("ImageManager");
        HTMLArea.onload = function() {
        var editor = new HTMLArea("content");
        var config = new HTMLArea.Config();
        config.width = "565px";
        config.height = "400px";
        var phpMyFAQLinks = {
<?php
    $output = "'Include internal links' : '',\n";
    $result = $db->query('SELECT '.SQLPREFIX.'faqdata.id AS id, '.SQLPREFIX.'faqdata.lang AS lang, '.SQLPREFIX.'faqcategoryrelations.category_id AS category_id, '.SQLPREFIX.'faqdata.thema AS thema FROM '.SQLPREFIX.'faqdata LEFT JOIN '.SQLPREFIX.'faqcategoryrelations ON '.SQLPREFIX.'faqdata.id = '.SQLPREFIX.'faqcategoryrelations.record_id AND '.SQLPREFIX.'faqdata.lang = '.SQLPREFIX.'faqcategoryrelations.record_lang ORDER BY '.SQLPREFIX.'faqcategoryrelations.category_id, '.SQLPREFIX.'faqdata.id');
    while ($row = $db->fetch_object($result)) {
        $_title = addslashes(PMF_htmlentities(str_replace(array("\n", "\r", "\r\n"), "", $row->thema), ENT_NOQUOTES, $PMF_LANG['metaCharset']));
        $output .= sprintf("'%s' : '<a href=\"index.php?action=artikel&cat=%d&id=%d&artlang=%s\">%s<\/a>',\n", $_title, $row->category_id, $row->id, $row->lang, $_title);
    }
    $output = substr($output, 0, -2);
    print $output;
?>
        };
        var internalLinks = {
                    id      :   "internalLinks",
                    tooltip :   "internal Link",
                    options :   phpMyFAQLinks,
                    action  :   function(editor)
                                {
                                    var elem = editor._toolbarObjects[this.id].element;
                                    editor.insertHTML(elem.value);
                                    elem.selectedIndex = 0;
                                },
                    refresh :   function(editor) { }
        };
        config.registerDropdown(internalLinks);
        config.toolbar = [ [ "fontsize", "space", "formatblock", "space", "bold", "italic", "underline", "strikethrough", "separator", "subscript", "superscript", "separator", "copy", "cut", "paste", "space", "undo", "redo", "space", "removeformat", "killword" ], [ "justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "lefttoright", "righttoleft", "separator", "orderedlist", "unorderedlist", "outdent", "indent", "separator", "forecolor", "hilitecolor", "separator", "inserthorizontalrule", "createlink", "insertimage", "inserttable", "htmlmode" ], [ "internalLinks" ] ];
        config.formatblock = {
		"Heading 3": "h3",
		"Heading 4": "h4",
		"Heading 5": "h5",
		"Heading 6": "h6",
		"Normal": "p",
		"Address": "address",
		"Formatted": "pre",
        	"Code": "code"
	};
	HTMLArea.replace("content", config);
	}
    //]]>
    </script>
<?php
}
?>
</head>
<body id="body" dir="<?php print $PMF_LANG["dir"]; ?>"><a name="top"></a>
<!-- Header -->
<div id="header">
    <h1>phpMyFAQ <?php print $PMF_CONF["version"]; ?></h1>
</div>

<!-- Navigation -->
<div class="sideBox">
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

carhartt
Posts: 105
Joined: Mon Sep 08, 2003 12:46 pm

Post by carhartt » Thu Oct 20, 2005 12:15 pm

mit dieser header.php funktioniert es auch bei mir nun einwandfrei.
hatte das gleiche problem.

super arbeit thorsten!!!

carhartt.

Thorsten
Posts: 15150
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Thu Oct 20, 2005 12:28 pm

Hi,
carhartt wrote:mit dieser header.php funktioniert es auch bei mir nun einwandfrei.
fein!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Andy
Posts: 87
Joined: Fri Mar 07, 2003 10:58 am

Post by Andy » Thu Oct 20, 2005 6:14 pm

Jo ... auch bei mir funktioniert es wieder :D

Auch von mir ein großes Lob .... nur wenige Entwickler reagieren so schnell auf Probleme.
Da merkt man halt auch das der Thorsten mit Spaß an der Sache ist.

Glaube ich muss mir mal deine Wishlist anschauen .... :)

Thorsten
Posts: 15150
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Thu Oct 20, 2005 6:16 pm

Hi,

sehr gut...

Danke!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Ankosta
Posts: 3
Joined: Tue Nov 01, 2005 12:13 pm
Location: Holzminden
Contact:

Gleiches Problem - aber Editor jetzt verrutscht

Post by Ankosta » Tue Nov 01, 2005 12:18 pm

Hi, hatte das gleiche Problem (keine Formatierungsoptionen) und konnte neue Artikel nicht speichern. Habe header.php ersetzt - danach ist aber der Editor-Bereich verrutscht unterhalb der Navigationsleiste.. was tun? Habe von php leider keine Ahnung... :cry:
War Upgrade von 1.4.1 zu 1.5.3

Ankosta
Posts: 3
Joined: Tue Nov 01, 2005 12:13 pm
Location: Holzminden
Contact:

Nachtrag...

Post by Ankosta » Tue Nov 01, 2005 12:28 pm

...speichern geht immer noch nicht (kommt Fehlerseite) und Editorbereich ist jetzt sehrrrr grrooooß... :shock:

Thorsten
Posts: 15150
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Tue Nov 01, 2005 12:31 pm

Hi,

hast du einen Screenshot?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Ankosta
Posts: 3
Joined: Tue Nov 01, 2005 12:13 pm
Location: Holzminden
Contact:

Halbes Problem behoben...

Post by Ankosta » Tue Nov 08, 2005 12:20 am

Dank Deiner Hilfe, Thorsten, und meines Ehrgeizes habe ich nun in der CCH-FAQ die neuste Version installieren können (mit der neuen PHP-Version hat es geklappt!)! :D :D

Die TOUR32-FAQ haben wir aber leider in der 1.4.1-Version wieder herstellen müssen. Vielleicht fasse ich später noch mal den Mut, es erneut zu versuchen. :lol:

Jedenfalls vielen Dank für Deine Hilfe und Geduld!! :) :)

Post Reply