xoops forums

luciorota

Module Developer
Posted on: 2011/9/27 10:49
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#1

Old style blocks administrator tools

Are you using Xoops 2.5.0+?
Do you need/prefeer the old blocks administrator tool?
This is the patch you need!

Download this
http://luciorota.altervista.org/xoops ... ds/visit.php?cid=2&lid=19
Rota Lucio
lucio.rota@gmail.com; l.rota@caritasbergamo.it
mobile: +39 338 9966321

trabis

Core Developer
Posted on: 2011/9/27 22:08
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#2

Re: Old style blocks administrator tools

Although I like the drag and drop of 2.5.x blocks admin, I think the old version is more friendly. Big "thank you" for your work.

Would be nice to know what other users think about it.

sabahan

Quite a regular
Posted on: 2011/9/27 22:14
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#3

Re: Old style blocks administrator tools

will be nice in future xoops version user can choose from admin panel to use/switch between the new and old blocksadmin

Mamba

Moderator
Posted on: 2011/9/28 1:23
Mamba
Mamba (Show more)
Moderator
Posts: 10799
Since: 2004/4/23
#4

Re: Old style blocks administrator tools

I am totally for "drag and drop" - I need to see visually where the blocks are. The old one doesn't do that for me.

The next level would be actually able to set the layout of the blocks directly in the front page, and be able to move them around and re-size them as needed.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Mechs

Just popping in
Posted on: 2011/9/28 5:07
Mechs
Mechs (Show more)
Just popping in
Posts: 34
Since: 2007/4/16
#5

Re: Old style blocks administrator tools

Totally agree with Mamba, for the next level will be good if to include the header & footer as well, ie header; uploading header banner or flash header.

sabahan

Quite a regular
Posted on: 2011/9/28 7:36
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#6

Re: Old style blocks administrator tools

we have a dragable blocks theme called vdrag last time..

maybe this can be improved further

http://themes.xoops.org/index.php?xoops_theme_select=vdrag

https://xoops.org/modules/news/article.php?storyid=3879
https://xoops.org/modules/extgallery/public-photo.php?photoId=463

Mamba

Moderator
Posted on: 2011/9/28 7:46
Mamba
Mamba (Show more)
Moderator
Posts: 10799
Since: 2004/4/23
#7

Re: Old style blocks administrator tools

Vdrag is really cool! It would be nice to have it in Core as an option for the users.

Looks like we'll need to add it to XOOPS 2.6 as a proposed feature
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

luciorota

Module Developer
Posted on: 2011/9/28 7:55
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#8

Re: Old style blocks administrator tools

To avoid misunderstandings
Now i share with xoopsers why I create this patch.

I like xoops 2.5.x blocks manager but it has a problem... is not possible to choose blocks weight.

This, usually, is not a problem... but some times ago i created a xoops site (www.caritasbergamo.it) that needed more than 8 blocks areas... in that site now there are 16 blocks areas.

Here the trick I use.
The theme i've realized, puts blocks with a even weight in a area, and puts blocks with a odd weight in an other area... this way I can use 8 areas for blocks with odd weight and 8 areas for blocks with even weight.

Here is the Smarty code I use in my theme
<{if $block.weight is odd}>
...
<{/if}>

<{if 
$block.weight is even}>
...
<{/if}>


That's why I need to set blocks weight as I want, and that's why I realized this patch. Now I can upgrade my site to Xoops 2.5.x

That's all, folks!

PS: I hope that in future Xoops versions will be possibile to set all blocks areas I need, as in many others cms.

Rota Lucio
lucio.rota@gmail.com; l.rota@caritasbergamo.it
mobile: +39 338 9966321

JCash

Just popping in
Posted on: 2011/10/4 9:47
JCash
JCash (Show more)
Just popping in
Posts: 66
Since: 2011/2/22
#9

Re: Old style blocks administrator tools

Thanks Lucio, I had a dream and you make it real :))))


French translation :
<?php
// $Id: blocsadmin.php 2902 2009-03-05 07:13:07Z phppp $
// _LANGCODE: en
// _CHARSET : UTF-8
// Translator: XOOPS Translation Team

//%%%%%%    Admin Module Name  Blocks     %%%%%
define("_AM_DBUPDATED","Mise à jour réussie");

//%%%%%%    blocs.php     %%%%%
define("_AM_BADMIN","Administration des blocs");
define("_AM_ADDBLOCK","Ajouter un bloc");
define("_AM_LISTBLOCK","Liste des blocs");
define("_AM_SIDE","Emplacement");
define("_AM_BLKDESC","Description");
define("_AM_TITLE","Titre");
define("_AM_WEIGHT","Poids");
define("_AM_ACTION","Action");
define("_AM_BLKTYPE","Type de bloc");
define("_AM_LEFT","Gauche");
define("_AM_RIGHT","Droite");
define("_AM_CENTER","Centre");
define("_AM_VISIBLE","Visible");
define("_AM_POSCONTT","Position du contenu supplémentaire");
define("_AM_ABOVEORG","Avant");
define("_AM_AFTERORG","Après");
define("_AM_EDIT","Editer");
define("_AM_DELETE","Supprimer");
define("_AM_SBLEFT","Bloc latéral - Gauche");
define("_AM_SBRIGHT","Bloc latéral - Droite");
define("_AM_CBLEFT","Bloc central- Gauche");
define("_AM_CBRIGHT","Bloc central- Droite");
define("_AM_CBCENTER","Bloc central- Centre");
define("_AM_CBBOTTOMLEFT","Bloc central- Bas gauche");
define("_AM_CBBOTTOMRIGHT","Bloc central- Bas droite");
define("_AM_CBBOTTOM","Bloc central- Bas centre");
define("_AM_CONTENT","Contenu");
define("_AM_OPTIONS","Options");
define("_AM_CTYPE","Type de contenu");
define("_AM_HTML","HTML");
define("_AM_PHP","PHP");
define("_AM_AFWSMILE","Format automatique (smileys activés)");
define("_AM_AFNOSMILE","Format automatique (smileys désactivés)");
define("_AM_SUBMIT","Enregistrer");
define("_AM_CUSTOMHTML","Bloc personnalisé (HTML)");
define("_AM_CUSTOMPHP","Bloc personnalisé(PHP)");
define("_AM_CUSTOMSMILE","Bloc personnalisé (Format auto avec smileys)");
define("_AM_CUSTOMNOSMILE","Bloc personnalisé (Format auto sans smileys)");
define("_AM_DISPRIGHT","Afficher uniquement les blocs de droite");
define("_AM_SAVECHANGES","Sauvegarder");
define("_AM_EDITBLOCK","Editer un bloc");
define("_AM_SYSTEMCANT","Les blocs du module Système ne peuvent pas être supprimés");
define("_AM_MODULECANT","Ce bloc ne peut pas être supprimé directement. Veuillez désactiver le module au préalable.");
define("_AM_RUSUREDEL","Etes-vous certain de vouloir supprimer le bloc <strong>%s</strong>?");
define("_AM_NAME","Nom");
define("_AM_USEFULTAGS","Tags utiles:");
define("_AM_BLOCKTAG1","%s imprimera %s");
define('_AM_SVISIBLEIN''Blocs visible sur %s');
define('_AM_TOPPAGE''Page d'index du site');
define('
_AM_VISIBLEIN', 'Visible sutr');
define('
_AM_ALLPAGES', 'Toutes les pages');
define('
_AM_TOPONLY', 'Sur la page d'index uniquement');
define('_AM_ADVANCED''Paramètres avancés');
define('_AM_BCACHETIME''Délais de mise en cache');
define('_AM_BALIAS''Alias');
define('_AM_CLONE''Cloner');  // clone a bloc
define('_AM_CLONEBLK''Cloné'); // cloned bloc
define('_AM_CLONEBLOCK''Créer un clone');
define('_AM_NOTSELNG'"'%s' n'est pas sélectionné"); // error message
define('_AM_EDITTPL''Editer le template');
define('_AM_MODULE''Module');
define('_AM_GROUP''Accès');
define('_AM_UNASSIGNED''Non assigné');

define("_AM_CUSTOM","Bloc personnalisé");
define('_AM_GENERATOR''Blocs générés par %s');
define('_AM_TYPES''Tous les types');

// added for System 2.1 module

// Navigation
define("_AM_SYSTEM_BLOCKS_ADMIN","Administration des blocs");
define("_AM_SYSTEM_BLOCKS_MANAGMENT","Gestion");
define("_AM_SYSTEM_BLOCKS_ADDBLOCK","Ajouter un nouveau bloc");
define("_AM_SYSTEM_BLOCKS_EDITBLOCK","Editer un bloc");
define("_AM_SYSTEM_BLOCKS_CLONEBLOCK","Créer un clone");
define("_AM_SYSTEM_BLOCKS_DELETEBLOCK","Supprimer un bloc");

// Forms
define("_AM_SYSTEM_BLOCKS_CUSTOM","Bloc personnalisé");
define("_AM_SYSTEM_BLOCKS_TYPES","Tous les types");
define("_AM_SYSTEM_BLOCKS_GENERATOR","Modules");
define("_AM_SYSTEM_BLOCKS_GROUP","Groupes");
define("_AM_SYSTEM_BLOCKS_SVISIBLEIN","Page");
define("_AM_SYSTEM_BLOCKS_DISPLAY","Afficher le bloc ");
define("_AM_SYSTEM_BLOCKS_HIDE","Masquer le bloc ");
define("_AM_SYSTEM_BLOCKS_CLONE","Cloner");
define("_AM_SYSTEM_BLOCKS_SIDELEFT","Gauche");
define("_AM_SYSTEM_BLOCKS_SIDETOPLEFT","Haut Gauche");
define("_AM_SYSTEM_BLOCKS_SIDETOPCENTER","Haut Centre");
define("_AM_SYSTEM_BLOCKS_SIDETOPRIGHT","Haut Droite");
define("_AM_SYSTEM_BLOCKS_SIDERIGHT","Droite");
define("_AM_SYSTEM_BLOCKS_SIDEBOTTOMLEFT","Bas Gauche");
define("_AM_SYSTEM_BLOCKS_SIDEBOTTOMCENTER","Bas Centre");
define("_AM_SYSTEM_BLOCKS_SIDEBOTTOMRIGHT","Bas Droite");
define("_AM_SYSTEM_BLOCKS_ADD","Ajouter un bloc");
define("_AM_SYSTEM_BLOCKS_MANAGE","Gestion des blocs");
define("_AM_SYSTEM_BLOCKS_NAME","Nom");
define("_AM_SYSTEM_BLOCKS_TYPE","Type de bloc");
define("_AM_SYSTEM_BLOCKS_SBLEFT","Bloc latéral - Gauche");
define("_AM_SYSTEM_BLOCKS_SBRIGHT","Bloc latéral - Droite");
define("_AM_SYSTEM_BLOCKS_CBLEFT","Bloc central- Gauche");
define("_AM_SYSTEM_BLOCKS_CBRIGHT","Bloc central- Droite");
define("_AM_SYSTEM_BLOCKS_CBCENTER","Bloc central- Centre");
define("_AM_SYSTEM_BLOCKS_CBBOTTOMLEFT","Bloc central- Bas gauche");
define("_AM_SYSTEM_BLOCKS_CBBOTTOMRIGHT","Bloc central- Bas droite");
define("_AM_SYSTEM_BLOCKS_CBBOTTOM","Bloc central- Bas");
define("_AM_SYSTEM_BLOCKS_WEIGHT","Poids");
define("_AM_SYSTEM_BLOCKS_VISIBLE","Visible");
define("_AM_SYSTEM_BLOCKS_VISIBLEIN","Visible sur");
define("_AM_SYSTEM_BLOCKS_TOPPAGE","Page d'index du site");
define("_AM_SYSTEM_BLOCKS_ALLPAGES","Toutes les pages");
define("_AM_SYSTEM_BLOCKS_UNASSIGNED","Non assigné");
define("_AM_SYSTEM_BLOCKS_TITLE","Titre");
define("_AM_SYSTEM_BLOCKS_CONTENT","Contenu");
define("_AM_SYSTEM_BLOCKS_USEFULTAGS","Tags utiles:");
define("_AM_SYSTEM_BLOCKS_BLOCKTAG","%s imprimera %s");
define("_AM_SYSTEM_BLOCKS_CTYPE","Type de contenu");
define("_AM_SYSTEM_BLOCKS_HTML","HTML");
define("_AM_SYSTEM_BLOCKS_PHP","PHP");
define("_AM_SYSTEM_BLOCKS_AFWSMILE","Format automatique (smileys activés)");
define("_AM_SYSTEM_BLOCKS_AFNOSMILE","Format automatique (smileys désactivés)");
define("_AM_SYSTEM_BLOCKS_BCACHETIME","Délais de mise en cache");
define("_AM_SYSTEM_BLOCKS_CUSTOMHTML","Bloc personnalisé (HTML)");
define("_AM_SYSTEM_BLOCKS_CUSTOMPHP","Bloc personnalisé (PHP)");
define("_AM_SYSTEM_BLOCKS_CUSTOMSMILE","Bloc personnalisé (Format autom avec smileys)");
define("_AM_SYSTEM_BLOCKS_CUSTOMNOSMILE","Bloc personnalisé (Format auto sans smileys)");
define("_AM_SYSTEM_BLOCKS_EDITTPL","Editer le template");
define("_AM_SYSTEM_BLOCKS_OPTIONS","Options");
define("_AM_SYSTEM_BLOCKS_DRAG","Déplacer ou ordonner le bloc");

// Messages
define("_AM_SYSTEM_BLOCKS_DBUPDATED"_AM_SYSTEM_DBUPDATED);
define("_AM_SYSTEM_BLOCKS_RUSUREDEL",'Etes-vous certain de vouloir supprimer ce bloc ? <div class="bold">%s</div>');
define("_AM_SYSTEM_BLOCKS_SYSTEMCANT","Les blocs du module Système ne peuvent pas être supprimés !");
define("_AM_SYSTEM_BLOCKS_MODULECANT","Ce bloc ne peut pas être supprimé directement. Veuillez désactiver le module au préalable.");

// Tips
define("_AM_SYSTEM_BLOCKS_TIPS",
'<ul>Vous pouvez :
<li>modifier l'
emplacement du bloc en cochant le bouton radio</li>
<
li>modifier la position relative du bloc en saisissant un chiffre</li>
<
li>ajouter un Bloc personnalisé</li>
<
li>afficher (Oui) / masquer (Nonun bloc</li>
</
ul>');
?>


luciorota

Module Developer
Posted on: 2011/10/7 10:03
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#10

Re: Old style blocks administrator tools

Thanks to JCash
Added french traslation, here:

http://luciorota.altervista.org/xoops ... wnloads/viewcat.php?cid=2
Rota Lucio
lucio.rota@gmail.com; l.rota@caritasbergamo.it
mobile: +39 338 9966321