phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Please report bugs here!

Moderator: Thorsten

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

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

2.8.1 kommt demnächst.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Thorsten wrote:Hi,

2.8.1 kommt demnächst.
Danke! Vielleicht könnte man in dieser Version dann auch bereits aufnehmen, dass die folgenden Eingabefelder im Edit eines Beitrags vergrößerbar sind

tabel -> id = answer_tbl
select -> id = phpmyfaq-categories

Für mich unsinnigerweise ist dagegen der Block für die Fragestellung vergrößerbar
<textarea id="question"
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

für die Antwortbox bau ich das ein, für die Selectbox der Kategorien ist das etwas schwer. Wenn du da ne Idee hast, gerne her damit!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Ok, stimmt. Die Selektbox der Kategorien kann nicht so einfach skalierbar gestaltet werden.
In diesem Fall würde ich das etwas anders angehen und zwar wie folgt...

Ich würde die komplette Selektbox aus der Marginalspalte rausnehmen und dafür den Auswahlbereich unter dem Hauptextfeld in zwei Spalten teilen.
Damit ergäbe sich eine ausreichende Breite und (wichtiger) automatisch eine Höhe von rund 700px für die Kategorieauswahl.

Alternativ könnte man die Kategoriebox auch links unter die Inhaltebox packen wobei man damit auf eine Höhe von über 1000px käme.

Eine einfache Umstellung mit hohem Nutzwert bei der Auswahl der Kategorie, insbesondere bei flachen aber ausufernden Strukturen.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

kannst du das mal visuell zusammenbauen? So textlich kann ich das schlecht umsetzen :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Ich könnte mir folgende Varianten vorstellen. Das ist jetzt natürlich nur als ganz grober Entwurf zu sehen um das geschriebene zu Skizzieren!
Der Vorteil: Beide Varianten bieten genug Platz für eine Vielzahl an Kategorien und die restlichen Punkte haben ohnehin nicht diesen Platzbedarf.

Natürlich kann man auch die "Speichern"-Spalte nach links unter die Hauptnavi packen. Das funktioniert ebenso!
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

ich spiel mal ein wenig mit den Optionen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Vielen Dank für die tolle Version 2.8.1
Die Dopdowns klappen nun einwandfrei.

Ich habe das Update zwei Mal installiert und zwar einmal als Update auf die Version 2.8.0 und einmal auf die 2.7.9
Nur bei letzterer Installation gibt es scheinbar ein Problem mit dem Editor denn dieser wird beim bearbeiten von FAQ eben einfach nicht angezeigt :shock:
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

scape wrote:Vielen Dank für die tolle Version 2.8.1
Die Dopdowns klappen nun einwandfrei.

Ich habe das Update zwei Mal installiert und zwar einmal als Update auf die Version 2.8.0 und einmal auf die 2.7.9
Nur bei letzterer Installation gibt es scheinbar ein Problem mit dem Editor denn dieser wird beim bearbeiten von FAQ eben einfach nicht angezeigt :shock:
Okay… es gibt noch ein Problem, dass damit zusammenhängen könnte. Der Login aus dem Frontend in den Adminbereich klappt nämlich ebenfalls nicht. Seltsamerweise stehen dort auch zwei Backslash im Pfad: http://faq.schwitzen.com/phpmyfaq//?action=login
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

hast du die config/constants.php von der 2.7 noch? Dann klappt das nicht. Wenn der Editor nicht erscheint, ist evtl die Einstellung deaktiviert in der Konfig.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Thorsten wrote:Hi,

hast du die config/constants.php von der 2.7 noch? Dann klappt das nicht. Wenn der Editor nicht erscheint, ist evtl die Einstellung deaktiviert in der Konfig.

bye
Thorsten
Das ist der Inhalt meiner "constants.php"

Code: Select all

<?php
/**
 * Constants for phpMyFAQ
 *
 * PHP Version 5.3
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License,
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
 * obtain one at http://mozilla.org/MPL/2.0/.
 *
 * @category  phpMyFAQ
 * @package   Setup
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @author    Matteo Scaramuccia <matteo@phpmyfaq.de>
 * @copyright 2003-2013 phpMyFAQ Team
 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
 * @link      http://www.phpmyfaq.de
 * @since     2003-12-10
 */

/**
 * Set the string below according to your users (main) timezone.
 * For your convenience find below the list of the available timezones:
 *
 * http://www.php.net/manual/en/timezones.php   
 *
 * Note: a wrong timezone setting could affect on-line users tracking as well as
 *       any filter criterion built using a date.
 * Note: timezone is a global setting i.e. no per-user setting. 
 *
 * @var string
 */
define('PMF_DATETIME_TIMEZONE_DEFAULT', 'Europe/Berlin');

/**
 * Timeout for the admin section, in minutes
 *
 * @var integer
 */
define('PMF_AUTH_TIMEOUT', 30);

/**
 * Timeout for the warning about session timeout for the admin section, in minutes
 *
 * @var integer
 */
define('PMF_AUTH_TIMEOUT_WARNING', 5);

/**
 * Start value for the solution IDs
 *
 * @var const
 */
define('PMF_SOLUTION_ID_START_VALUE', 1000);

/**
 * Incremental value for the solution IDs
 *
 * @var const
 */
define('PMF_SOLUTION_ID_INCREMENT_VALUE', 1);

/**
 * Number of records for the Top 10
 *
 * @var const   10
 */
define('PMF_NUMBER_RECORDS_TOPTEN', 10);

/**
 * Number of records for the latest entries
 *
 * @var const   5
 */
define('PMF_NUMBER_RECORDS_LATEST', 5);

/**
 * This is the max number of open questions returned by the feed
 *
 * @var const   50
 */
define("PMF_RSS_OPENQUESTIONS_MAX", 50);

/**
 * This is the flag with which Latest and Topten RSS feeds will be forced to use the current PMF SEO URL schema
 *
 * @var const   true
 */
define("PMF_RSS_USE_SEO", true);

/**
 * This is the flag with which Google sitemap will be forced to use the current PMF SEO URL schema
 *
 * @var const   true
 */
define("PMF_SITEMAP_GOOGLE_USE_SEO", true);

/**
 * This is the flag with which the Tags Cloud list is limited to
 *
 * @var const   50
 */
define("PMF_TAGS_CLOUD_RESULT_SET_SIZE", 50);

/**
 * This is the flag with which the Autocomplete list is limited to
 *
 * @var const   20
 */
define("PMF_TAGS_AUTOCOMPLETE_RESULT_SET_SIZE", 20);

/**
 * This is the flag for choosing the encryption type for passwords. Currently
 * you can choose
 *
 * - hash (default)
 * - sha1
 * - crypt
 * - md5 (default before phpMyFAQ 2.8)
 *
 * @var const
 */
define('PMF_ENCRYPTION_TYPE', 'hash');

/**
 * List of denied extensions when uploading a file.
 *
 * Here is an example:
 * <code>
 * $denyUploadExts = array(
 *     '',         // Files with no extension not allowed
 *     'shtml',    // SSI files not allowed
 *     'php',      // PHP files not allowed
 *     'php3',
 *     'php4',
 *     'cgi',      // CGI not allowed
 *     'pl',
 *     'exe'       // Win executables not allowed
 * );
 * </code>
 *
 * @var array
 */
$denyUploadExts = array();

/**
 * Bot Blacklist
 *
 * @var array
 */
$botBlacklist = array(
    'nustcrape',
    'webpost',
    'GoogleBot',
    'msnbot',
    'crawler',
    'scooter',
    'bravobrian',
    'archiver',
    'w3c',
    'control',
    'wget',
    'bot',
    'spider',
    'Yahoo! Slurp',
    'htdig'
);

/****************************************************************************
 *                  DO NOT CHANGE ANYTHING BELOW THIS LINE!                 *
 ****************************************************************************/

/**
 * Allowed 'action' variables for GET. DO NOT CHANGE!
 *
 * @var array
 */
$allowedVariables = array(
    'add'             => 1,
    'artikel'         => 1,
    'ask'             => 1,
    'attachment'      => 1,
    'contact'         => 1,
    'glossary'        => 1,
    'help'            => 1,
    'instantresponse' => 1,
    'login'           => 1,
    'mailsend2friend' => 1,
    'news'            => 1,
    'open'            => 1,
    'password'        => 1,
    'register'        => 1,
    'save'            => 1,
    'savecomment'     => 1,
    'savequestion'    => 1,
    'savevoting'      => 1,
    'search'          => 1,
    'send2friend'     => 1,
    'sendmail'        => 1,
    'show'            => 1,
    'sitemap'         => 1,
    'thankyou'        => 1,
    'translate'       => 1,
    'ucp'             => 1,
    'writecomment'    => 1
);

/**
 * ISO 639 language code list - DO NOT CHANGE!
 *
 * @var  array
 */
$languageCodes = array(
    'AF' =>     'Afghanistan',
    'AA' =>     'Afar',
    'AB' =>     'Abkhazian',
    'AF' =>     'Afrikaans',
    'AM' =>     'Amharic',
    'AR' =>     'Arabic',
    'AS' =>     'Assamese',
    'AY' =>     'Aymara',
    'AZ' =>     'Azerbaijani',
    'BA' =>     'Bashkir',
    'BE' =>     'Byelorussian',
    'BG' =>     'Bulgarian',
    'BH' =>     'Bihari',
    'BI' =>     'Bislama',
    'BN' =>     'Bengali',
    'BO' =>     'Tibetan',
    'BR' =>     'Breton',
    'BS' =>     'Bosnian',
    'CA' =>     'Catalan',
    'CO' =>     'Corsican',
    'CS' =>     'Czech',
    'CY' =>     'Welsh',
    'DA' =>     'Danish',
    'DE' =>     'German',
    'DZ' =>     'Bhutani',
    'EL' =>     'Greek',
    'EN' =>     'English',
    'EO' =>     'Esperanto',
    'ES' =>     'Spanish',
    'ET' =>     'Estonian',
    'EU' =>     'Basque',
    'FA' =>     'Persian',
    'FI' =>     'Finnish',
    'FJ' =>     'Fiji',
    'FO' =>     'Faeroese',
    'FR' =>     'French',
    'FY' =>     'Frisian',
    'GA' =>     'Irish',
    'GD' =>     'Gaelic',
    'GL' =>     'Galician',
    'GN' =>     'Guarani',
    'GU' =>     'Gujarati',
    'HA' =>     'Hausa',
    'HE' =>     'Hebrew',
    'HI' =>     'Hindi',
    'HR' =>     'Croatian',
    'HU' =>     'Hungarian',
    'HY' =>     'Armenian',
    'IA' =>     'Interlingua',
    'IE' =>     'Interlingue',
    'IK' =>     'Inupiak',
    'ID' =>     'Indonesian',
    'IS' =>     'Icelandic',
    'IT' =>     'Italian',
    'IW' =>     'Hebrew',
    'JA' =>     'Japanese',
    'JI' =>     'Yiddish',
    'JW' =>     'Javanese',
    'KA' =>     'Georgian',
    'KK' =>     'Kazakh',
    'KL' =>     'Greenlandic',
    'KM' =>     'Cambodian',
    'KN' =>     'Kannada',
    'KO' =>     'Korean',
    'KS' =>     'Kashmiri',
    'KU' =>     'Kurdish',
    'KY' =>     'Kirghiz',
    'LA' =>     'Latin',
    'LN' =>     'Lingala',
    'LO' =>     'Laothian',
    'LT' =>     'Lithuanian',
    'LV' =>     'Latvian',
    'MG' =>     'Malagasy',
    'MI' =>     'Maori',
    'MK' =>     'Macedonian',
    'ML' =>     'Malayalam',
    'MN' =>     'Mongolian',
    'MO' =>     'Moldavian',
    'MR' =>     'Marathi',
    'MS' =>     'Malay',
    'MT' =>     'Maltese',
    'MY' =>     'Burmese',
    'NA' =>     'Nauru',
    'NE' =>     'Nepali',
    'NL' =>     'Dutch',
    'NB' =>     'Norwegian Bokm&aring;l',
    'NN' =>     'Norwegian Nynorsk',
    'OC' =>     'Occitan',
    'OM' =>     'Oromo',
    'OR' =>     'Oriya',
    'PA' =>     'Punjabi',
    'PL' =>     'Polish',
    'PS' =>     'Pashto',
    'PT' =>     'Portuguese',
    'PT-BR' =>  'Brazilian Portuguese',
    'QU' =>     'Quechua',
    'RN' =>     'Kirundi',
    'RO' =>     'Romanian',
    'RU' =>     'Russian',
    'RW' =>     'Kinyarwanda',
    'SA' =>     'Sanskrit',
    'SD' =>     'Sindhi',
    'SG' =>     'Sangro',
    'SH' =>     'Serbo-Croatian',
    'SI' =>     'Singhalese',
    'SK' =>     'Slovak',
    'SL' =>     'Slovenian',
    'SM' =>     'Samoan',
    'SN' =>     'Shona',
    'SO' =>     'Somali',
    'SQ' =>     'Albanian',
    'SR' =>     'Serbian',
    'SS' =>     'Siswati',
    'ST' =>     'Sesotho',
    'SU' =>     'Sudanese',
    'SV' =>     'Swedish',
    'SW' =>     'Swahili',
    'TA' =>     'Tamil',
    'TE' =>     'Tegulu',
    'TG' =>     'Tajik',
    'TH' =>     'Thai',
    'TI' =>     'Tigrinya',
    'TK' =>     'Turkmen',
    'TL' =>     'Tagalog',
    'TN' =>     'Setswana',
    'TO' =>     'Tonga',
    'TR' =>     'Turkish',
    'TS' =>     'Tsonga',
    'TT' =>     'Tatar',
    'TW' =>     'Chinese (Traditional)',
    'UK' =>     'Ukrainian',
    'UR' =>     'Urdu',
    'UZ' =>     'Uzbek',
    'VI' =>     'Vietnamese',
    'VO' =>     'Volapuk',
    'WO' =>     'Wolof',
    'XH' =>     'Xhosa',
    'YO' =>     'Yoruba',
    'ZH' =>     'Chinese (Simplified)',
    'ZU' =>     'Zulu'
);

//
// Define some internal constants
//

// HTTP GET parameters
define('PMF_GET_KEY_NAME_LANGUAGE', 'lang');
define('PMF_GET_KEY_NAME_SESSIONID', 'sid');
// Misc parameters
define('PMF_LANGUAGE_EXPIRED_TIME', 3600); // 30 minutes
define('PMF_SESSION_EXPIRED_TIME', 3600); // 30 minutes
define('PMF_REMEMBERME_EXPIRED_TIME', 1209600); // 2 weeks

//
// Set the default timezone used by all date/time functions
//
date_default_timezone_set(PMF_DATETIME_TIMEZONE_DEFAULT);
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

die passt eigentlich... aber irgendwas klemmt da noch, siehe auch dein Glossar-Link: http://faq.schwitzen.com/phpmyfaq/glossary.html

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Siehe mein Beitrag weiter oben…
scape wrote:Ich könnte mir folgende Varianten vorstellen. Das ist jetzt natürlich nur als ganz grober Entwurf zu sehen um das geschriebene zu Skizzieren!
Der Vorteil: Beide Varianten bieten genug Platz für eine Vielzahl an Kategorien und die restlichen Punkte haben ohnehin nicht diesen Platzbedarf.

Natürlich kann man auch die "Speichern"-Spalte nach links unter die Hauptnavi packen. Das funktioniert ebenso!
Zum Thema der viel zu kleinen Kategorie-Box im Adminbereich hat sich leider noch nichts getan, sodass ich leider jedes mal manuell das CSS-File für den Adminbereich anpassen muss.
Aktuell setze ich dazu einfach die Klasse "input-medium" auf Breite/Höhe 250/500px, was das Auswählen in einer komplexen Ebenenstruktur überhaupt erst ermöglicht.

Code: Select all

<select name="rubrik[]" id="phpmyfaq-categories" size="5" multiple="multiple" class="input-medium">
Besser wäre natürlich, wenn die Select-Box diese manuelle "Aufzieh-Möglichkeit" hätte, wie man sie meist in Form einer schraffierten "Anfaßfläche" in vielen Freitextfeldern sieht.
Kann man hier nicht per Default für ein wenig mehr Raumangebot für diese Select-Box sorgen?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by Thorsten »

Hi,

mach size="8" und statt input-medium ein input-large, ich vergesse das immer, wenn kein Ticket geschrieben wird.

Mit der 2.9 wird das auch nochmal besser.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: phpMyFAQ 2.7.9 Konfigurations-Dropdowns

Post by scape »

Thorsten wrote:Hi,

mach size="8" und statt input-medium ein input-large, ich vergesse das immer, wenn kein Ticket geschrieben wird.

Mit der 2.9 wird das auch nochmal besser.

bye
Thorsten
... in welchem File muss ich das genau anpassen?
Post Reply