11
JCash
Re: Old style blocks administrator tools
  • 2011/10/22 15:38

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


Sorry there was a typo error at the end (french translation) :

Quote:
// Tips
define("_AM_SYSTEM_BLOCKS_TIPS", '
    Vous pouvez :
  • modifier l\'emplacement du bloc en cochant le bouton radio

  • modifier la position relative du bloc en saisissant un chiffre

  • ajouter un Bloc personnalisé

  • afficher (Oui) / masquer (Non) un bloc

');

12
kris_fr
Re: Old style blocks administrator tools
  • 2011/10/22 22:39

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


// Tips
define("_AM_SYSTEM_BLOCKS_TIPS""

Vous pouvez :



  • modifier l'emplacement du bloc en cochant le bouton radio

  • modifier la position relative du bloc en saisissant un chiffre

  • ajouter un Bloc personnalisé

  • afficher (Oui) / masquer (Non) un bloc

"
);

13
cgunther
Re: Old style blocks administrator tools
  • 2011/10/24 23:40

  • cgunther

  • Just popping in

  • Posts: 59

  • Since: 2005/3/27


...kind of on this subject...

In either version of the blocks admin - It would be nice to have a function to display or not to display the block title on the front end. This way we could have the block title visible on the admin side for easy placement management, and not visible on the public front end if we choose not to display the title. I have one website I have done with xoops where the client did not want the block titles on all of the blocks, so I was forced to leave the titles blank or remove the titles of the blocks. With either style of blocks administrator I have to open several blocks in the blocks admin to find the content that needs changing. An on or off button in the admin would help because I could give all blocks a name and make them easy to identify.

What do you think?

14
JCash
Re: Old style blocks administrator tools
  • 2011/10/25 1:03

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


You could do that with css

.blocktile {display: none}


And if you need to display some titles and hide others, you could go further (always with css)

In your tpl
<div id="block-<{$block.id}>">    
    <
div class="blocktitle"><{$block.title}>div>
    <{
$block.content}>
div>


In style.css
#block-7777 .blocktitle, #block-45 .blocktitle, #block-32 .blocktitle {display: none;}

15
cgunther
Re: Old style blocks administrator tools
  • 2011/10/25 2:09

  • cgunther

  • Just popping in

  • Posts: 59

  • Since: 2005/3/27


yeah, no... the folks that run the site know nothing about css or html. Programming to them is figuring out what to watch by reading the TV Guide. That is why I suggested a radio button or check-box in the blocks-admin to hide or show the title on the front side. If it can't be done with the given tools in the admin interface on the site, they won't look for another way.

16
JCash
Re: Old style blocks administrator tools
  • 2011/12/4 11:47

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


hi

Definitive french translation (there were other pb with simple and double quote)
Quote:
// _LANGCODE: fr
// _CHARSET : UTF-8
// Translator: JCash

//%%%%%% 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 %s?");
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 sur");
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 ? %s");
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", "

Vous pouvez :



  • modifier l'emplacement du bloc en cochant le bouton radio

  • modifier la position relative du bloc en saisissant un chiffre

  • ajouter un Bloc personnalisé

  • afficher (Oui) / masquer (Non) un bloc

");
?>

17
Mamba
Re: Old style blocks administrator tools
  • 2011/12/4 19:25

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
Definitive french translation (there were other pb with simple and double quote)


Please use single quotes for Defines, as they are slightly faster than double quotes - this is because when you use double quotes PHP has to parse to check if there are variables in there.

Of course, you'll use double quotes, if there is a need for a single quote inside, e.g.

define('_AM_DOUBLEQUOTE',"Please don't use double quotes");

While the difference might be small, it can add up, so it's good to keep the code consistent
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

18
tzvook
Re: Old style blocks administrator tools
  • 2012/2/3 15:39

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


@ cgunther and JCash

Follow my hack and you'll find the solution
https://xoops.org/modules/newbb/viewtopic.php?post_id=301806#forumpost301806
a 3 years old hack that still rocks ...

Login

Who's Online

265 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 265


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits