Fork me on GitHub


 Bas   Précédent   Suivant

« 1 2 3 4 (5) 6 7 8 ... 30 »


nom de domaine en .xoops
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374

Posté le : 23/06/2008 12:49
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: News avec Tinyedit
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
NON surtout pas :

Citation :
penses à supprimer le répertoire template_c/


Burning a rédigé trop vite sa réponse, il faut VIDER le répertoire (sauf l'index).

Bon courage.

Posté le : 02/06/2008 12:43
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Votre avis sur le module subscription...
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
Merci de ton suivi et du partage.

Peut-être qu'il sera intéressant de faire une archive avec les modifs au fur et à mesure.

Posté le : 30/05/2008 08:20
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: xoops tags
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
Salut,

je confirme que ça fonctionne bien avec 2.18.

Je ne pourrais pas t'aider dans la mesure ou je ne vois pas bien le problème.

Une piste est de reprendre les fichiers de tag et des modif pour news et autres modules, pour ensuite voir les différences avec les nouveaux fichiers de version du noyau.

Posté le : 22/05/2008 09:32
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Editeur pour Xoops [coup de gueule]
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374

Posté le : 28/04/2008 16:50
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Problème forum Cbb: nouveau sujet donne page blanche
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374

Posté le : 27/04/2008 22:38
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Impossible de créer un article sur SmartSection lorsque TinyEditor est installé
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
YYYYYYYOOOOOOOOOOOOOOOHHHHHHHH,

ça marche, j'ai uploadé uniquement le xoopseditor.php et c'est ok.

Un zip a conserver précieusement !!!

Philippe, tu me files ton adresse en MP, je t'envoie un paquet de carambar (tu as même le choix du parfum )

Peut-être faudrait-il modifier l'archive sur frxoops dans le référentiel de module ou éditer le descriptif.

Merci et j'espère que c'est aussi bon pour smartsection (car j'ai un peu squatté le topic...

Posté le : 17/04/2008 22:38
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Impossible de créer un article sur SmartSection lorsque TinyEditor est installé
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
Merci philippe,

à une ligne près, tu as le fichier qui va avec l'install de tinyeditor.

celle de tinyeditor :
if(!empty($noHtml)&&empty($item['nohtml'])) continue;


edit : il ne prend pas dans l'affichage du code mais il y a "§empty" à la place de "Obarré"

la tienne :
if(!empty($noHtml)&Ø($item['nohtml'])) continue;


Mais je pense que tu as du installer d'abord le package xoopseditor puis tu a écrasé par la suite avec tinyeditor.

Dés que j'aurais le temps, (pas avant une semaine), j'essaie d'installer en gardant le fichier de tiny.

En tout cas merci pour cette lueur d'espoir.

Posté le : 17/04/2008 14:24
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Impossible de créer un article sur SmartSection lorsque TinyEditor est installé
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
C'est une bonne nouvelle.

class/xoopseditor/xoopseditor.php

C'est lui qui pose problème.

Dans le package de tinyeditor, il pèse 4,693 Ko et voila le contenu :


<?php
// $Id: xoopseditor.php,v 1.1.2.4 2005/07/15 22:55:57 phppp Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>   ... nbsp;   //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
/**
 * XOOPS editor handler
 *
 * @author        phppp (D.J.)
 * @copyright    copyright (c) 2005 XOOPS.org
 *
 */
class XoopsEditorHandler
{
    var 
$root_path="";
    var 
$nohtml=false;

    function 
XoopsEditorHandler()
    {
        
$current_path __FILE__;
        if ( 
DIRECTORY_SEPARATOR != "/" $current_path str_replacestrpos$current_path"\\") ? "\\" DIRECTORY_SEPARATOR"/"$current_path);
        
$this->root_path dirname($current_path);
    }
    
    
/**
     * @param    string    $name  Editor name
     * @param    array     $options  editor options: $key=>$val
     * @param    string    $OnFailure  a pre-validated editor that will be used if the required editor is failed to create
     * @param    bool    $noHtml  dohtml disabled
     */
    
function &get($name ""$options null$noHtml=false$OnFailure "")
    {
        
$editor null;
        
$list =array_keys($this->getList($noHtml));
        if(!empty(
$name) && in_array($name$list)){
            
$editor = & $this->_loadEditor($name$options);
        }
        if(!
is_object($editor)){
            if(empty(
$OnFailure) || !in_array($OnFailure$list)){
                
$OnFailure $list[0];
            }
            
$editor = & $this->_loadEditor($OnFailure$options);
        }
        return 
$editor;
    }

    function &
getList($noHtml=false)
    {
        static 
$editors;
        if(!isset(
$editors)) {
            
$order = array();
            
$list XoopsLists::getDirListAsArray($this->root_path.'/');
            foreach(
$list as $item){
                if(
is_readable($this->root_path.'/'.$item.'/editor_registry.php')){
                    include(
$this->root_path.'/'.$item.'/editor_registry.php');
                    if(empty(
$config['order'])) continue;
                    
$editors[$config['name']] = $config;
                    
$order[] = $config['order'];
                }
            }
            
array_multisort($order$editors);
        }
        
$_list = array();
        foreach(
$editors as $name=>$item){
            if(!empty(
$noHtml)&&empty($item['nohtml'])) continue;
            
$_list[$name] = $item['title'];
        }
        return 
$_list;
    }

    function 
render(&$editor)
    {
        return 
$editor->render();
    }

    function 
setConfig(&$editor$options)
    {
        if(
method_exists($editor'setConfig')) {
            
$editor->setConfig($options);
        }else{
            foreach(
$options as $key=>$val){
                
$editor->$key $val;
            }
        }
    }

    function &
_loadEditor($name=""$options=null)
    {
        
$editor_path $this->root_path."/".$name;
        if(!
is_readable($editor_path."/editor_registry.php")) return false;
        include(
$editor_path."/editor_registry.php");
        if(empty(
$config['order'])) return null;
        include_once(
$config['file']);
        
$editor =& new $config['class']($options);
        return 
$editor;
    }
}
?>


Dans le package de xoopseditor (avec tinymce etc...), il pèse 3,669Ko et voila le contenu :
<?php
/**
 * Editor framework for XOOPS
 *
 * @copyright    The XOOPS project http://www.xoops.org/
 * @license        http://www.fsf.org/copyleft/gpl.html& ...  public license
 * @author        Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
 * @since        1.00
 * @version        $Id$
 * @package        xoopseditor
 */
class XoopsEditorHandler
{
    var 
$root_path "";
    var 
$nohtml false;
    var 
$allowed_editors = array();
    
    function 
XoopsEditorHandler()
    {
        include_once 
dirname(__FILE__)."/xoopseditor.inc.php";
        
$this->root_path xoopseditor_get_rootpath();
    }
    
    
/**
     * Access the only instance of this class
     *
     * @return    object
     *
     * @static
     * @staticvar   object
     */
    
function &getInstance()
    {
        static 
$instance;
        if (!isset(
$instance)) {
            
$instance = new XoopsEditorHandler();
        }
        return 
$instance;
    }
    
    
/**
     * @param    string    $name        Editor name which is actually the folder name
     * @param    array     $options    editor options: $key => $val
     * @param    string    $OnFailure  a pre-validated editor that will be used if the required editor is failed to create
     * @param    bool    $noHtml        dohtml disabled
     */
    
function &get($name ""$options null$noHtml false$OnFailure "")
    {
        if(
$editor $this->_loadEditor($name$options)) {
            return 
$editor;
        }
        
$list array_keys($this->getList($noHtml));
        
/*
        if(!empty($name) && in_array($name, $list)){
            $editor = $this->_loadEditor($name, $options);
        }
        */
        //if(!is_object($editor)){
            
if(empty($OnFailure) || !in_array($OnFailure$list)){
                
$OnFailure $list[0];
            }
            
$editor $this->_loadEditor($OnFailure$options);
        
//}
        
return $editor;
    }

    function &
getList($noHtml false)
    {
        if(@ include_once 
XOOPS_ROOT_PATH."/Frameworks/art/functions.ini.php") {
            
load_functions("cache");
            
$list mod_loadCacheFile("list""xoopseditor");
        }

        if(empty(
$list)) {
            
$list = array();
            
$order = array();
            require_once 
XOOPS_ROOT_PATH."/class/xoopslists.php";
            
$_list XoopsLists::getDirListAsArray($this->root_path.'/');
            foreach(
$_list as $item){
                if(@include 
$this->root_path.'/'.$item.'/editor_registry.php'){
                    if(empty(
$config['order'])) continue;
                    
$order[] = $config['order'];
                    
$list[$item] = array("title" => $config["title"], "nohtml" => @$config["nohtml"]);
                }
            }
            
array_multisort($order$list);
            if(
function_exists("mod_createCacheFile")) {
                
mod_createCacheFile($list"list""xoopseditor");
            }
        }
        
$editors array_keys($list);
        if(!empty(
$this->allowed_editors)) {
            
$editors array_intersect($editors$this->allowed_editors);
        }
        
$_list = array();
        foreach(
$editors as $name){
            if(!empty(
$noHtml) && empty($list[$name]['nohtml'])) continue;
            
$_list[$name] = $list[$name]['title'];
        }
        return 
$_list;
    }

    function 
render(&$editor)
    {
        return 
$editor->render();
    }

    function 
setConfig(&$editor$options)
    {
        if(
method_exists($editor'setConfig')) {
            
$editor->setConfig($options);
        }else{
            foreach(
$options as $key => $val){
                
$editor->$key $val;
            }
        }
    }

    function &
_loadEditor($name$options null)
    {
        
$editor null;
        if(empty(
$name)) return $editor;
        
$editor_path $this->root_path."/".$name;
        if(!include 
$editor_path."/editor_registry.php") return $editor;
        if(empty(
$config['order'])) return null;
        include_once 
$config['file'];
        
$editor =& new $config['class']($options);
        return 
$editor;
    }
}
?>


Moi c'est soit le package fonctionne avec CBB 3.08 mais pas tinyeditor, soit tiny marche mais j'ai une page blanche pour CBB.

Quel est le code de ton fichier phmo ?

Posté le : 17/04/2008 10:23
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer


Re: Impossible de créer un article sur SmartSection lorsque TinyEditor est installé
Régulier
Inscrit: 14/06/2004 13:20
Messages: 374
Le problème est le même avec CBB 3.08.

En installant le framework et xoopseditor, tu écrases justement la class.

Donc c'est soit l'un, soit l'autre.

1. j'ai parié un carambar à celui qui réussi à faire fonctionner ensemble les différents editor de xoops (dont évidemment tinyeditor) avec : news et CBB 3.08, on peut donc rajouter smartsection.

2. je me demande comment cela sera pris en compte pour les prochaines versions puisque c'est le pack qui a été choisi. Quel avenir pour tinyeditor.

A l'écoute.

Posté le : 16/04/2008 21:32
_________________
Baronxoops d'accord, mais loin d'être le roi
Transférer la contribution vers d'autres applications Transférer



 Haut
« 1 2 3 4 (5) 6 7 8 ... 30 »




Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

90 Personne(s) en ligne (79 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 90 | Plus ...