MULTIMEDIA, Video digital, Grabación, Diseño gráfico, Diseño web, Programación > Webmasters - Diseño Web - Programación - Diseño gráfico

Error en MKPortal...

(1/2) > >>

nos:
Hola, cuando doy a Editar Noticia y le doy a un icono que pone HTML, se me abre una ventana y me pone el siguiente error:

Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/web/mkportal/editor/jscripts/tiny_mce/themes/advanced/source_editor.htm on line 1


Haber si vosotros sabeis algo. Un saludo. Gracias.

halo:

--- Cita de: nos en 21 de Diciembre de 2005, 09:45:50 pm ---Hola, cuando doy a Editar Noticia y le doy a un icono que pone HTML, se me abre una ventana y me pone el siguiente error:

Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/web/mkportal/editor/jscripts/tiny_mce/themes/advanced/source_editor.htm on line 1


Haber si vosotros sabeis algo. Un saludo. Gracias.
--- Fin de la cita ---

Ese tipo de errores suelen venir porque la sintaxis no es correcta. ¿Has modificado tú source_editor.htm? Copia y pega aquí el código a ver si vemos el error.

nos:
Hola, aqui os dejo la sintaxis haber:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_theme_code_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript">
<!--
    function saveContent() {
        if (window.opener) {
            window.opener.tinyMCE.setContent(document.getElementById('htmlSource').value);
            window.close();
        }
    }

    // Fixes some charcode issues
    function fixContent(html) {
        html = html.replace(new RegExp(/<(p|hr|table|tr|td|ol|ul|object|embed|li|blockquote)/gi),'\n<$1');
        html = html.replace(new RegExp(/<\/(p|ol|ul|li|table|tr|td|blockquote|object)>/gi),'</$1>\n');
        html = tinyMCE.regexpReplace(html, '<br />','<br />\n','gi');
        html = tinyMCE.regexpReplace(html, '\n\n','\n','gi');
        return html;
    }

    function onLoadInit() {
        document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id')));
        resizeInputs();
        setWrap('off');
    }

    function setWrap(val) {
        // hard soft off
        document.forms[0].htmlSource.wrap = val;
    }

   function toggleWordWrap(elm) {
      if (elm.checked)
         setWrap('soft');
      else
         setWrap('off');
   }

    var wHeight=0, wWidth=0, owHeight=0, owWidth=0;

    function resizeInputs() {
        if (!tinyMCE.isMSIE) {
             wHeight = self.innerHeight-80;
             wWidth = self.innerWidth-25;
        } else {
             wHeight = document.body.clientHeight-80;
             wWidth = document.body.clientWidth-25;
        }

        document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
        document.forms[0].htmlSource.style.width  = Math.abs(wWidth) + 'px';
           
    }

    window.focus();
//-->
</script>
</head>
<body scroll="no" onload="onLoadInit();" onresize="resizeInputs();">
<form name="source" onsubmit="saveContent();">
    <table border="0" cellpadding="0" cellspacing="2" align="center">
        <tr>
            <td class="title">{$lang_theme_code_title}</td>
            <td align="right"><script language="javascript" type="text/javascript">
<!--
    if (tinyMCE.isMSIE) {
        document.write('<input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{$lang_theme_code_wordwrap}</label>');
    }
//-->
            </script></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right"><input type="button" id="insert" name="insert" value="{$lang_update}" onclick="saveContent();" /></td>
        </tr>
    </table>
</form>
</body>
</html>



Os he subido el archivo "source_editor.htm" a MegaUpload por si lo quereis ver, aqui os dejo el Link:

- http://www.megaupload.com/?d=6PWS5V6E

Haber si vosotros sabeis de que puede ser. Un saludo. Gracias.

halo:
Ésto que te voy a decir NO ES LA SOLUCIÓN, pero vamos a confirmar que el problema está ahí y después miraremos que pasa con Apache.

Quita:


--- Código: ---<?xml version="1.0" encoding="iso-8859-1"?>
--- Fin del código ---

y dime si funciona.  :haha:

nos:
Hola, ya lo he arreglado, habia que borrar las siguientes lineas:


--- Citar ---<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

--- Fin de la cita ---


Ahora si que funciona correctamente, jejeje. Un saludo. Gracias.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa