Fork me on GitHub




(1) 2 »


xoops 2.5.1 - création bloc = Errors name
Semi pro
Inscrit: 08/06/2008 14:30
Messages: 633
Bonjour(soir)à tous,

Voila je viens d'installer la nouvelle version de xoops_2.5.1, et quand je veux ajouter un nouveau bloc, il me dis " Errors name est requis" pourtant je crée le blocs corectement pouvez-vous me dire ce qui se passe.

Mercui d'avance.

Posté le : 09/04/2011 14:20
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1
Xoops accro
Inscrit: 27/07/2005 16:10
De France
Messages: 2970
idem

Posté le : 09/04/2011 14:23
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1
Semi pro
Inscrit: 08/06/2008 14:30
Messages: 633
Citation :
tatane a écrit :
idem

Bonjour Tatane,

Bizard quand maime il y a pas une solution ?

Posté le : 09/04/2011 14:31
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1
Xoops accro
Inscrit: 27/07/2005 16:10
De France
Messages: 2970
ca doit être une erreur dans le core.Attendons la confirmation

Posté le : 09/04/2011 14:33
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1
Semi pro
Inscrit: 08/06/2008 14:30
Messages: 633
Bon ben je continue mes petit test si je constat un nouveau beug ben je le ferais s'avoir sur le forum

Posté le : 09/04/2011 14:35
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1 - création bloc = Errors name
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
bonjour,

solution temporaire, dans le fichier module/system/admin/blockadmin/mainfile.php main.php
commentez la ligne 287, et ajoutez en dessous :
if ($block_type == 'D') {

Posté le : 09/04/2011 16:07

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1 - création bloc = Errors name
Semi pro
Inscrit: 08/06/2008 14:30
Messages: 633
Bonjour,

Quand je place se petit code j'ais une page blanche

Posté le : 09/04/2011 16:20
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1 - création bloc = Errors name
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
<?php
// $Id$
//  ------------------------------------------------------------------------ //
//                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 //
//  ------------------------------------------------------------------------ //
// Author: Kazumi Ono (AKA onokazu)                                          //
// URL: http://www.myweb.ne.jp/http://www.xoops.org/http://jp.xoops.org/ //
// Project: The XOOPS Project                                                //
// ------------------------------------------------------------------------- //

// Check users rights
if ( !is_object($xoopsUser) || !is_object($xoopsModule) || !$xoopsUser->isAdmin($xoopsModule->mid()) ) exit( _NOPERM );
// Get Action type
$op system_CleanVars $_REQUEST'op''list''string' );

$filter system_CleanVars $_GET'filter'0'int' );
if (
$filter) { $method $_GET; } else {  $method $_REQUEST; }

$selmod system_CleanVars $method'selmod', -2'int' );
$selgen system_CleanVars $method'selgen', -1'int' );
$selgrp system_CleanVars $method'selgrp'XOOPS_GROUP_USERS'int' );
$selvis system_CleanVars $method'selvis'1'int' );
$filsave system_CleanVars $method'filsave'1'int' );
$type system_CleanVars $method'type''''string' );
if ( 
$type == 'preview' $op 'preview';

if ( isset(
$_GET['op']) ) {
    if (
$_GET['op'] == "edit" || $_GET['op'] == "delete" || $_GET['op'] == "delete_ok" || $_GET['op'] == "clone") {
        
$op $_GET['op'];
        
$bid = isset($_GET['bid']) ? intval($_GET['bid']) : 0;
    }
}
if (
$filsave) {
    
$requests = array('selmod' => $selmod'selgen' => $selgen'selvis' => $selvis'selgrp' => $selgrp'filsave' =>$filsave);
    foreach (
$requests as $key => $value) {
        
Cookie::set($key$value);
    }
} else {
    
$requests = array('selmod''selgen''selvis''selgrp''filsave');
    foreach ( 
$requests as $key ) {
        
Cookie::del($key);
    }
}

switch (
$op) {

    case 
'list':
        
// Define main template
        
$xoopsOption['template_main'] = 'system_blocks.html';
        
// Call Header
        
xoops_cp_header();
        
// Define Stylesheet
        
$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/admin.css' );
        
// Define scripts
        
$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
        
$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
        
$xoTheme->addScript('browse.php?modules/system/js/admin.js');
        
$xoTheme->addScript('browse.php?modules/system/js/blocks.js');
        
// Define Breadcrumb and tips
        
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_ADMINsystem_adminVersion('blocksadmin''adminpath') );
        
$xoBreadCrumb->addHelpsystem_adminVersion('blocksadmin''help') );
        
$xoBreadCrumb->addTipssprintf(_AM_SYSTEM_BLOCKS_TIPSsystem_AdminIcons('block.png'), system_AdminIcons('success.png'), system_AdminIcons('cancel.png')));
        
$xoBreadCrumb->render();

        
// Initialize module handler
        
$module_handler =& xoops_gethandler('module');
        
$modules =& $module_handler->getObjects(nulltrue);
        
$criteria = new CriteriaCompo(new Criteria('hasmain'1));

        
$criteria->add(new Criteria('isactive'1));
        
// Modules for blocks to be visible in
        
$display_list $module_handler->getList($criteria);
        unset(
$criteria);
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Initialize module handler
        
$module_handler =& xoops_gethandler('module');
        
$modules =& $module_handler->getObjects(nulltrue);

        
$filterform = new XoopsThemeForm('''filterform''admin.php''get');
        
$filterform->addElement( new XoopsFormHidden('fct''blocksadmin'));
        
$filterform->addElement( new XoopsFormHidden('op''list'));
        
$filterform->addElement( new XoopsFormHidden('filter'1));
        
$sel_gen = new XoopsFormSelect_AM_SYSTEM_BLOCKS_GENERATOR'selgen'$selgen);
        
$sel_gen->setExtra"onchange='submit()'" );
        
$sel_gen->addOption( -1_AM_SYSTEM_BLOCKS_TYPES );
        
$sel_gen->addOption0_AM_SYSTEM_BLOCKS_CUSTOM );
        foreach (
$modules as $list) {
            
$sel_gen->addOption$list->getVar('mid'), $list->getVar('name') );
        }
        
$filterform->addElement$sel_gen );

        
$sel_mod = new XoopsFormSelect_AM_SYSTEM_BLOCKS_SVISIBLEIN'selmod'$selmod );
        
$sel_mod->setExtra"onchange='submit()'" );
        
ksort($display_list);
        
$display_list_spec[0]  = _AM_SYSTEM_BLOCKS_ALLPAGES;
        
$display_list_spec[-1] = _AM_SYSTEM_BLOCKS_TOPPAGE;
        
$display_list_spec[-2] = _AM_SYSTEM_BLOCKS_TYPES;
        
$display_list $display_list_spec $display_list;
        foreach (
$display_list as $k => $v) {
            
$sel_mod->addOption$k$v );
        }
        
$filterform->addElement$sel_mod );

        
// For selection of group access
        
$sel_grp = new XoopsFormSelect_AM_SYSTEM_BLOCKS_GROUP'selgrp'$selgrp );
        
$sel_grp->setExtra"onchange='submit()'" );
        
$member_handler =& xoops_gethandler('member');
        
$group_list $member_handler->getGroupList();
        
$sel_grp->addOption( -1_AM_SYSTEM_BLOCKS_TYPES );
        
$sel_grp->addOption(  0_AM_SYSTEM_BLOCKS_UNASSIGNED );
        foreach (
$group_list as $k => $v) {
            
$sel_grp->addOption$k$v );
        }
        
$filterform->addElement$sel_grp );

        
$sel_vis = new XoopsFormSelect_AM_SYSTEM_BLOCKS_VISIBLE'selvis'$selvis );
        
$sel_vis->setExtra"onchange='submit()'" );
        
$sel_vis->addOption( -1_AM_SYSTEM_BLOCKS_TYPES );
        
$sel_vis->addOption0_NO );
        
$sel_vis->addOption1_YES );

        
$filterform->addElement$sel_vis );

        
$check_save = new XoopsFormCheckBox'''filsave'$filsave );
        
$check_save->setExtra"onchange='submit()'" );
        
$check_save->addOption1_AM_SYSTEM_BLOCKS_SAVE );

        
$filterform->addElement$check_save );

        
$filterform->assign$xoopsTpl );

        
/* Get blocks */
        
$selvis = ( $selvis == -) ? null $selvis;
        
$selmod = ( $selmod == -) ? null $selmod;
        
$order_block = ( isset($selvis) ? "" "b.visible DESC, " ) . "b.side,b.weight,b.bid";

        if (
$selgrp == 0) {
            
// get blocks that are not assigned to any groups
            
$blocks_arr $block_handler->getNonGroupedBlocks($selmod$toponlyblock false$selvis$order_block);
        } else {
            
$blocks_arr $block_handler->getAllByGroupModule($selgrp$selmod$toponlyblock false$selvis$order_block);
        }

        if (
$selgen >= 0) {
            foreach (
array_keys($blocks_arr) as $bid) {
                if (
$blocks_arr[$bid]->getVar("mid") != $selgen) {
                    unset(
$blocks_arr[$bid]);
                }
            }
        }

        
$arr = array();
        foreach (
array_keys($blocks_arr) as $i) {
            
$arr[$i] = $blocks_arr[$i]->toArray();
            
$xoopsTpl->append_by_ref'blocks'$arr[$i] );
        }
        
$block $block_handler->create();
        
$blockform $block->getForm();
        
$xoopsTpl->assign('blockform'$blockform->render() );
        
// Call Footer
        
xoops_cp_footer();
        break;

    case 
'add':
        
// Define main template
        
$xoopsOption['template_main'] = 'system_blocks.html';
        
// Call Header
        
xoops_cp_header();
        
// Define Stylesheet
        
$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/admin.css' );
        
$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/ui/' xoops_getModuleOption('jquery_theme''system') . '/ui.all.css');
        
// Define scripts
        
$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
        
$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
        
$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.form.js');
        
$xoTheme->addScript('browse.php?modules/system/js/admin.js');
        
$xoTheme->addScript('browse.php?modules/system/js/blocks.js');
        
// Define Breadcrumb and tips
        
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_ADMINsystem_adminVersion('blocksadmin''adminpath') );
        
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_ADDBLOCK );
        
$xoBreadCrumb->render();
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
$block $block_handler->create();
        
$blockform $block->getForm();
        
$xoopsTpl->assign('blockform'$blockform->render() );
        
// Call Footer
        
xoops_cp_footer();
        break;

    case 
'display':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get variable
        
$block_id system_CleanVars $_POST'bid'0'int' );
        
$visible system_CleanVars $_POST'visible'0'int' );
        if ( 
$block_id ) {
            
$block $block_handler->get$block_id );
            
$block->setVar('visible'$visible);
            if (!
$block_handler->insert$block )) {
                
$error=true;
            }
        }
        break;

    case 
'drag':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get variable
        
$block_id system_CleanVars $_POST'bid'0'int' );
        
$side system_CleanVars $_POST'side'0'int' );
        if ( 
$block_id ) {
            
$block $block_handler->get$block_id );
            
$block->setVar('side'$side);
            if (!
$block_handler->insert$block )) {
                
$error=true;
            }
        }
        break;

    case 
'order':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        if ( isset(
$_POST['blk'] ) ) {
            
$i=0;
            foreach (
$_POST['blk'] as $order) {
                if( 
$order ) {
                    
$block $block_handler->get($order);
                    
$block->setVar('weight'$i);
                    if (!
$block_handler->insert($block)) {
                        
$error=true;
                    }
                    
$i++;
                }
            }
        }
        exit;
        break;

    case 
'preview':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
$block =& $block_handler->create();
        
$block->setVars($_REQUEST);
        
$myts =& MyTextSanitizer::getInstance();
        echo 
'<div id="xo-preview-dialog" title="'.$block->getVar('title','s').'">'.$block->getContent'S'$block->getVar('c_type') ).'</div>';
        break;

    case 
'save':
        if (!
$GLOBALS['xoopsSecurity']->check()) {
            
redirect_header('admin.php?fct=blocksadmin'3implode('<br />'$GLOBALS['xoopsSecurity']->getErrors()));
            exit();
        }
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get avatar id
        
$block_id system_CleanVars $_POST'bid'0'int' );
        
$block_type system_CleanVars $_POST'block_type''''string');
        if ( 
$block_id 0) {
            
$block =& $block_handler->get$block_id );
        } else {
            
$block =& $block_handler->create();
        }

        
//if (!$block->isCustom()) {
    
if ($block_type == 'D') {
            
$block->setVars$_POST );
            
$type $block->getVar('block_type');
            
$name $block->getVar('name');
            
// Save block options
            
$options $_POST['options'];
            if (isset(
$options)) {
                
$options_count count($options);
                if (
$options_count 0) {
                    
//Convert array values to comma-separated
                    
for ( $i 0$i $options_count$i++ ) {
                        if (
is_array($options[$i])) {
                            
$options[$i] = implode(','$options[$i]);
                        }
                    }
                    
$options implode('|'$options);
                    
$block->setVar('options'$options);
                }
            }
        } else {
            
$block->setVars$_POST );
            switch (
$block->getVar('c_type')) {
                case 
'H':
                    
$name _AM_SYSTEM_BLOCKS_CUSTOMHTML;
                    break;
                case 
'P':
                    
$name _AM_SYSTEM_BLOCKS_CUSTOMPHP;
                    break;
                case 
'S':
                    
$name _AM_SYSTEM_BLOCKS_CUSTOMSMILE;
                    break;
                default:
                    
$name _AM_SYSTEM_BLOCKS_CUSTOMNOSMILE;
                    break;
            }
        }
        
$block->setVar('name'$name);
        
$block->setVar('isactive'1);

        
$content = isset($_POST['content_block']) ? $_POST['content_block'] : '';
        
$block->setVar('content'$content);

        if (!
$newid $block_handler->insert$block )) {
            
xoops_cp_header();
            
xoops_error$block->getHtmlErrors() );
            
xoops_cp_footer();
            exit();
        }
        if ( 
$newid != ) {
            
$blocklinkmodule_handler =& xoops_getmodulehandler('blocklinkmodule');
            
// Delete old link
            
$criteria = new CriteriaCompo(new Criteria('block_id'$newid ));
            
$blocklinkmodule_handler->deleteAll($criteria);
            
// Assign link
            
$modules $_POST['modules'];
            foreach (
$modules as $mid) {
                
$blocklinkmodule $blocklinkmodule_handler->create();
                
$blocklinkmodule->setVar'block_id'$newid );
                
$blocklinkmodule->setVar'module_id'$mid );
                if(!
$blocklinkmodule_handler->insert($blocklinkmodule)){
                    
xoops_cp_header();
                    
xoops_error$blocklinkmodule->getHtmlErrors() );
                    
xoops_cp_footer();
                    exit();
                }
            }
        }
        
$groupperm_handler =& xoops_gethandler('groupperm');
        
$groups $_POST['groups'];
        
$groups_with_access =& $groupperm_handler->getGroupIds("block_read"$newid );
        
$removed_groups array_diff($groups_with_access$groups);
        if (
count($removed_groups) > 0) {
            foreach (
$removed_groups as $groupid) {
                
$criteria = new CriteriaCompo(new Criteria('gperm_name''block_read'));
                
$criteria->add(new Criteria('gperm_groupid'$groupid));
                
$criteria->add(new Criteria('gperm_itemid'$newid));
                
$criteria->add(new Criteria('gperm_modid'1));
                
$perm $groupperm_handler->getObjects($criteria);
                if (isset(
$perm[0]) && is_object($perm[0])) {
                    
$groupperm_handler->delete($perm[0]);
                }
            }
        }
        
$new_groups array_diff($groups$groups_with_access);
        if (
count($new_groups) > 0) {
            foreach (
$new_groups as $groupid) {
                
$groupperm_handler->addRight("block_read"$newid$groupid);
            }
        }
        
redirect_header('admin.php?fct=blocksadmin'1_AM_SYSTEM_BLOCKS_DBUPDATED);
        break;

    case 
'edit':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get avatar id
        
$block_id system_CleanVars $_REQUEST'bid'0'int' );
        if ( 
$block_id ) {
            
// Define main template
            
$xoopsOption['template_main'] = 'system_blocks.html';
            
// Call Header
            
xoops_cp_header();
            
// Define Stylesheet
            
$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/admin.css' );
            
$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/ui/' xoops_getModuleOption('jquery_theme''system') . '/ui.all.css');
            
// Define scripts
            
$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
            
$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
            
$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.form.js');
            
$xoTheme->addScript('browse.php?modules/system/js/admin.js');
            
// Define Breadcrumb and tips
            
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_ADMINsystem_adminVersion('blocksadmin''adminpath') );
            
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_EDITBLOCK );
            
$xoBreadCrumb->render();

            
$block $block_handler->get($block_id);
            
$blockform $block->getForm();
            
$xoopsTpl->assign('blockform'$blockform->render() );
            
// Call Footer
            
xoops_cp_footer();
        } else {
            
redirect_header('admin.php?fct=blocksadmin'1_AM_SYSTEM_DBERROR);
        }
        break;

    case 
'delete':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get avatar id
        
$block_id system_CleanVars $_REQUEST'bid'0'int' );
        if ( 
$block_id ) {
            
$block $block_handler->get($block_id);
            if ( 
$block->getVar('block_type') == 'S' ) {
                
redirect_header('admin.php?fct=blocksadmin'4_AM_SYSTEM_BLOCKS_SYSTEMCANT);
                exit();
            } elseif (
$block->getVar('block_type') == 'M') {
                
// Fix for duplicated blocks created in 2.0.9 module update
                // A module block can be deleted if there is more than 1 that
                // has the same func_num/show_func which is mostly likely
                // be the one that was duplicated in 2.0.9
                
if (>= $count $block_handler->countSimilarBlocks($block->getVar('mid'), $block->getVar('func_num'), $block->getVar('show_func'))) {
                    
redirect_header('admin.php?fct=blocksadmin'4_AM_SYSTEM_BLOCKS_MODULECANT);
                    exit();
                }
            }
            
// Define main template
            
$xoopsOption['template_main'] = 'system_header.html';
            
// Call Header
            
xoops_cp_header();
            
// Display Question
            
xoops_confirm(array('op' => 'delete_ok''fct' => 'blocksadmin''bid' => $block->getVar('bid')), 'admin.php'sprintf(_AM_SYSTEM_BLOCKS_RUSUREDEL$block->getVar('title')) );
            
// Call Footer
            
xoops_cp_footer();
        }
        break;

    case 
'delete_ok':
        if (!
$GLOBALS['xoopsSecurity']->check()) {
            
redirect_header('admin.php?fct=blocksadmin'3implode('<br />'$GLOBALS['xoopsSecurity']->getErrors()));
            exit();
        }
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get avatar id
        
$block_id system_CleanVars $_POST'bid'0'int' );
        if ( 
$block_id ) {
            
$block $block_handler->get$block_id );
            if (
$block_handler->delete($block)) {
                
// Delete Group link
                
$blocklinkmodule_handler =& xoops_getmodulehandler('blocklinkmodule');
                
$blocklinkmodule $blocklinkmodule_handler->getObjects(new CriteriaCompo(new Criteria('block_id'$block_id )));
                foreach (
$blocklinkmodule as $link) {
                    
$blocklinkmodule_handler->delete($linktrue);
                }
                
// Delete Group permission
                
$groupperm_handler =& xoops_gethandler('groupperm');
                
$criteria = new CriteriaCompo(new Criteria('gperm_name''block_read'));
                
$criteria->add(new Criteria('gperm_itemid'$block_id));
                
$groupperm $groupperm_handler->getObjects($criteria);
                foreach (
$groupperm as $perm) {
                    
$groupperm_handler->delete($permtrue);
                }
                
// Delete template
                
if ($block->getVar('template') != '') {
                    
$tplfile_handler =& xoops_gethandler('tplfile');
                    
$btemplate $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], 'block'$block_id);
                    if (
count($btemplate) > 0) {
                        
$tplfile_handler->delete($btemplate[0]);
                    }
                }
                
redirect_header('admin.php?fct=blocksadmin'1_AM_SYSTEM_BLOCKS_DBUPDATED);
            }
        } else {
            
redirect_header('admin.php?fct=blocksadmin'1_AM_SYSTEM_DBERROR);
        }
        break;

    case 
'clone':
        
// Initialize blocks handler
        
$block_handler =& xoops_getmodulehandler('block');
        
// Get avatar id
        
$block_id system_CleanVars $_REQUEST'bid'0'int' );
        if ( 
$block_id ) {
            
// Define main template
            
$xoopsOption['template_main'] = 'system_blocks.html';
            
// Call Header
            
xoops_cp_header();
            
// Define Stylesheet
            
$xoTheme->addStylesheetXOOPS_URL '/modules/system/css/admin.css' );
            
// Define Breadcrumb and tips
            
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_ADMINsystem_adminVersion('blocksadmin''adminpath') );
            
$xoBreadCrumb->addLink_AM_SYSTEM_BLOCKS_CLONEBLOCK );
            
$xoBreadCrumb->render();

            
$block $block_handler->get($block_id);
            
$blockform $block->getForm('clone');
            
$xoopsTpl->assign'blockform'$blockform->render() );
            
// Call Footer
            
xoops_cp_footer();
        } else {
            
redirect_header('admin.php?fct=blocksadmin'1_AM_SYSTEM_DBERROR);
        }
        break;

}
?>


tu fais un bloc "html", "auto avec émoticone", ... ?

Posté le : 09/04/2011 16:25

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1 - création bloc = Errors name
Semi pro
Inscrit: 08/06/2008 14:30
Messages: 633
Kris tes un chef sa fonctionne,encore merci pour ton aide

Posté le : 09/04/2011 16:38
Partager Twitter Partagez cette article sur GG+
Re: xoops 2.5.1 - création bloc = Errors name
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
J'ai bien dis :
Citation :
Kris a écrit :
solution temporaire

Posté le : 09/04/2011 16:42

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
(1) 2 »



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

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

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