Warning et Beta5

More
14 years 4 months ago - 14 years 4 months ago #1080 by kim
Warning et Beta5 was created by kim
Je suis toute frétillante, devant ce nouveau jouet...
Mais bon, pour le moment, je dois d'abord corriger les warnings.

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /biblond/components/com_flexicontent/templates/produits/item.php on line 64

Là, je rigole moins...
J'ai la tête qui tourne.
Last edit: 14 years 4 months ago by kim.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #1081 by vistamedia
Replied by vistamedia on topic Warning et Beta5
Pourrais-tu poster ton fichier?

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #1082 by kim
Replied by kim on topic Warning et Beta5
Je corrige, c'est mes boucles qui merdouillent
ca m'a explosé tous mes templates :)
Regarde -->

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #1084 by kim
Replied by kim on topic Warning et Beta5
Hé, bah, tu sais quoi, Manu...
Mes templates, ils sont tellement pourris, que je ne pouvais même pas utiliser l'interface Template de Flexi.
Et j'arrivais pas à m'en servir et à faire glisser les éléments...

Je crois, que je vais tout refaire proprement et refaire l'habillage.
C'est plus sage.

Je suis pas couchée...
Code:
<?php /** * @version 1.5 beta 3 $Id: default.php 64 2009-08-18 14:17:32Z vistamedia $ * @package Joomla * @subpackage FLEXIcontent * @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr * @license GNU/GPL v2 * * FLEXIcontent is a derivative work of the excellent QuickFAQ component * @copyright (C) 2008 Christoph Lukes * see www.schlu.net for more information * * FLEXIcontent 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. */ defined( '_JEXEC' ) or die( 'Restricted access' ); // first define the template name $tmpl = $this->tmpl; ?> <div id="flexicontent" class="flexicontent item<?php echo $this->item->id; ?> type<?php echo $this->item->type_id; ?>"> <!-- BOF buttons --> <p class="buttons"> <?php echo flexicontent_html::pdfbutton( $this->item, $this->params ); ?> <?php echo flexicontent_html::mailbutton( 'items', $this->params, null , $this->item->slug ); ?> <?php echo flexicontent_html::printbutton( $this->print_link, $this->params ); ?> </p> <!-- EOF buttons --> <div class="titraille_produits"><img src="http://www.facteur4.net/biblond/images/titre/t_Produits.png"></div> <!-- BOF page title --> <?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->item->title) : ?> <h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?> </h1> <?php endif; ?> <!-- EOF page title --> <!-- BOF item title --> <?php if ($this->params->get('show_title')) : ?> <h2 class="contentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> <?php echo $this->escape($this->fields['title']->display); ?> </h2> <?php endif; ?> <!-- EOF item title --> <div class="filet"><img src="http://www.facteur4.net/biblond/images/titre/filet.png"></div> <table width="730"> <tr> <td> <div class="topblock"> <?php // image block if ($this->fields) : $i = 0; foreach ($this->fields as $field) : if (in_array('image'.$tmpl, $field->positions)) : $i++; endif; endforeach; if ($i > 0) : ?> <?php foreach ($this->fields as $field) : // step 1 : start the loop on the object if (in_array('image'.$tmpl, $field->positions)) : // step 2 : assigned to this group if (!empty($field->value)) : // step 3 : avoid empty fields if (!$field->parameters->get('hidden')) : // step 4 : it's not an hidden field ?> <div class="image field_<?php echo $field->name; ?>"> <?php echo $field->display; ?> <div class="clear"></div> </div> <?php endif; // end step 4 endif; // end step 3 endif; // end step 2 endforeach; // end step 1 endif; endif; ?> </td> <td valign="top" align="left"> <?php // description block if ($this->fields) : $i = 0; foreach ($this->fields as $field) : if (in_array('description'.$tmpl, $field->positions)) : $i++; endif; endforeach; if ($i > 0) : ?> <div class="description"> <?php foreach ($this->fields as $field) : // step 1 : start the loop on the object if (in_array('description'.$tmpl, $field->positions)) : // step 2 : assigned to this group if (!empty($field->value)) : // step 3 : avoid empty fields if (!$field->parameters->get('hidden')) : // step 4 : it's not an hidden field ?> <span class="element"> <?php if ($field->parameters->get('display_label')) : // step 5 : we have to display the label ?> <!-- <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> --> <?php endif; // end step 5 ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endif; // end step 4 endif; // end step 3 endif; // end step 2 endforeach; // end step 1 ?> </div> <?php endif; endif; ?> </td> <td valign="top" width="167"> <?php // bottom block if ($this->fields) : $i = 0; foreach ($this->fields as $field) : if (in_array('menu'.$tmpl, $field->positions) && $field->value) : $i++; endif; endforeach; if ($i > 0) : ?> <div class="infoblock <?php echo $this->params->get('bottom_cols', 'two'); ?>cols"> <ul> <?php foreach ($this->fields as $field) : // step 1 : start the loop on the object if (in_array('menu'.$tmpl, $field->positions)) : // step 2 : assigned to this group if (!empty($field->value)) : // step 3 : avoid empty fields if (!$field->parameters->get('hidden')) : // step 4 : it's not an hidden field ?> <li class="infoblock"> <div> <?php if ($field->parameters->get('display_label')) : // step 5 : we have to display the label ?> <div class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></div> <?php endif; // end step 5 ?> <div class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div> </div> <?php endif; // end step 4 endif; // end step 3 endif; // end step 2 endforeach; // end step 1 ?> </ul> </div> <?php endif; endif; ?> </td> </tr> </table> <?php if ($this->params->get('comments')) : ?> <div class="comments"> <?php if ($this->params->get('comments') == 1) : if (file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php')) : require_once(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php'); echo JComments::showComments($this->item->id, 'com_flexicontent', $this->escape($this->item->title)); endif; endif; if ($this->params->get('comments') == 2) : if (file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php')) : require_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php'); echo jomcomment($this->item->id, 'com_flexicontent'); endif; endif; ?> </div> <?php endif; ?> <div class="suite">Biblond a aussi aim&eacute;...</div> </div>

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #1085 by kim
Replied by kim on topic Warning et Beta5
Bon maintenant que j'ai fait un petit ménage.
Je vois correctement l'interface Template.
Je peux faire glisser un champ sur une position.
Mais quand je sauvegarde, j'ai un message qui me dit que:"Positions des champs dans le template sauvegardées avec succès"
Mais le champ disparait de la position "menu".
Et bien sûr, j'ai rien qui s'affiche dans mes articles.

Que faire?

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #1086 by kim
Replied by kim on topic Warning et Beta5
Comme un grand sage peul disait: "Les gens qui suent et qui saignent, sont ceux qui sèment les mots qui soignent"

En changeant le mot de position "menu" en "cartouche", les gouttes de stress se sont évaporées.
C'est magique, c'est digne d'une incantation raellienne :)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.486 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline