+33 3 83 56 65 26 +33 6 87 42 95 30 Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. Lun-Ven : 9.00 à 17.00

Problème : édition des articles en Frontend

More
16 years 5 months ago #18700 by mondalire
Je viens d'essayer d'installer le composant, mais comble de malchance ou plutôt résultat d'un mauvais choix de template... l'installation se déroule avec succès mais lorsque je clique sur le composant dans la liste des composants, j'obtiens le message :
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in controller.php on line 12
le site

il y a des jours comme ça où le mieux est d'aller prendre le soleil !
Merci pour votre patience et vos réponses

Please Connectez-vous or Create an account to join the conversation.

More
16 years 5 months ago #18703 by tramber91
Bonsoir

Peux tu nous donner ta version de joomla
ton hebergeur ainsi que ta version de php (tu vas dans Aide/info system)
STP

merci
@+

Pas de support en MP sans y être invité. Merci
Merci de vous conformer aux règles du forum. Un merci, Cela fait toujours plaisir ;)
www.en-toutes-lettres.fr - Digital

Please Connectez-vous or Create an account to join the conversation.

More
16 years 5 months ago #18705 by mondalire
Mon hébergeur est online.net. j'ai un autre site joomla chez eux qui tourne sans pb
La version php est 4.4.9-1.standard
et la version de joomla est la 1.5.15

encore merci...

Please Connectez-vous or Create an account to join the conversation.

More
16 years 5 months ago #18706 by tramber91
Donc c'est l'erreur classique

il faut activer le php 5

il faut placer en racine /www un fichier texte nommé .htaccess comprenant au moins la ligne de commande suivante :
Code:
AddType application/x-httpd-php5 .php

dixit faq online

@+

Pas de support en MP sans y être invité. Merci
Merci de vous conformer aux règles du forum. Un merci, Cela fait toujours plaisir ;)
www.en-toutes-lettres.fr - Digital

Please Connectez-vous or Create an account to join the conversation.

More
15 years 10 months ago #22324 by pa314s
Bonjour, sur un néophyte qui vient juste de mettre en ligne un site joomla mais dans l'administration en ligne pour rééditer mes articles les contenus s'affiche en format html.
Comment faire pour y remédier. Merci!

Voila L'exemple de haut qui s'affiche


\n"; $load .= "\t"; } else { $load = "\t\n"; } $return = $load . "\t"; break; case 'advanced': /* Advanced mode*/ if ($compressed) { $load = "\t\n"; $load .= "\t"; } else { $load = "\t\n"; } $return = $load . "\t"; break; case 'extended': /* Extended mode*/ if ($compressed) { $load = "\t\n"; $load .= "\t"; } else { $load = "\t\n"; } $return = $load . "\t"; break; } return $return; } /** * TinyMCE WYSIWYG Editor - get the editor content * * @param string The name of the editor */ function onGetContent( $editor ) { return 'tinyMCE.get(\''.$editor.'\').getContent();'; } /** * TinyMCE WYSIWYG Editor - set the editor content * * @param string The name of the editor */ function onSetContent($editor, $html) { return 'tinyMCE.get(\''.$editor.'\').setContent('.$html.');'; } /** * TinyMCE WYSIWYG Editor - copy editor content to form field * * @param string The name of the editor */ function onSave($editor) { return 'if (tinyMCE.get("'.$editor.'").isHidden()) {tinyMCE.get("'.$editor.'").show()}; tinyMCE.get("'.$editor.'").save();'; } /** * TinyMCE WYSIWYG Editor - display the editor * * @param string The name of the editor area * @param string The content of the field * @param string The width of the editor area * @param string The height of the editor area * @param int The number of columns for the editor area * @param int The number of rows for the editor area * @param mixed Can be boolean or array. */ function onDisplay($name, $content, $width, $height, $col, $row, $buttons = true) { // Only add "px" to width and height if they are not given as a percentage if (is_numeric( $width )) { $width .= 'px'; } if (is_numeric( $height )) { $height .= 'px'; } $editor = "$content\n" . $this->_displayButtons($name, $buttons) . $this->_toogleButton($name); return $editor; } function onGetInsertMethod($name) { $doc =& JFactory::getDocument(); $js= " function isBrowserIE() { return navigator.appName==\"Microsoft Internet Explorer\"; } function jInsertEditorText( text, editor ) { if (isBrowserIE()) { if (window.parent.tinyMCE) { window.parent.tinyMCE.selectedInstance.selection.moveToBookmark(window.parent.global_ie_bookmark); } } tinyMCE.execInstanceCommand(editor, 'mceInsertContent',false,text); } var global_ie_bookmark = false; function IeCursorFix() { if (isBrowserIE()) { tinyMCE.execCommand('mceInsertContent', false, ''); global_ie_bookmark = tinyMCE.activeEditor.selection.getBookmark(false); } return true; }"; $doc->addScriptDeclaration($js); return true; } function _displayButtons($name, $buttons) { // Load modal popup behavior JHTML::_('behavior.modal', 'a.modal-button'); $args = $name; $args = 'onGetInsertMethod'; $return = ''; $results[] = $this->update($args); foreach ($results as $result) { if (is_string($result) && trim($result)) { $return .= $result; } } if(!empty($buttons)) { $results = $this->_subject->getButtons($name, $buttons); /* * This will allow plugins to attach buttons or change the behavior on the fly using AJAX */ $return .= "\n
\n"; foreach ($results as $button) { /* * Results should be an object */ if ( $button->get('name') ) { $modal = ($button->get('modal')) ? 'class="modal-button"' : null; $href = ($button->get('link')) ? 'href="'.JURI::base().$button->get('link').'"' : null; $onclick = ($button->get('onclick')) ? 'onclick="'.$button->get('onclick').'"' : 'onclick="IeCursorFix(); return false;"'; $return .= "
get('name')."\">get('text')."\" ".$href." ".$onclick." rel=\"".$button->get('options')."\">".$button->get('text')."
\n"; } } $return .= "
\n"; } return $return; } function _toogleButton($name) { $return = ''; $return .= "\n
\n"; $return .= "
".JText::_('Toggle editor')."
"; $return .= "
\n"; return $return; } } tinyMCE.get('text').getContent(); if (form.title.value == ""){ alert( "L\'article doit avoir un titre" ); } else if (form.sectionid.value == "-1"){ alert( "Vous devez sélectionner une section." ); } else if (form.catid.value == "-1"){ alert( "Vous devez sélectionner une catégorie." ); } else if (form.catid.value == ""){ alert( "Vous devez sélectionner une catégorie." ); } else if (text == ""){ alert( "L\'article doit comporter du texte" ); } else { if (tinyMCE.get("text").isHidden()) {tinyMCE.get("text").show()}; tinyMCE.get("text").save(); submitform( pressbutton ); } } //-->

Please Connectez-vous or Create an account to join the conversation.

Time to create page: 0.166 seconds

News extensions

News Communautés

News sécurité