Solución a: No puedo editar mi Estilo phpBB3
Problema: No puedo editar mi plantilla phpbb3 y me arroja una serie de codigos raros..
Porque Ocurre (Posible): Porque el panel de administración no detecta un codigo que realmente si esta incrustando en el archivo
portal/scriptaculous/lib/prototype-cookie.htmlPOSIBLE SOLUCIÓN:(Suponiendo que ya sabes donde entrar para editar tu template, lo explico más sencillamente =)
1.- iniciar sesion en tu foro
2.- ir a tu panel de administracion de tu foro NO al /acp
3.- IR A PESTAÑA ESTILOS
4.-plantillas
4.1 escoger tu plantilla => EDITAR
5.-buscar el archivo portal/scriptaculous/lib/
prototype-cookie.html (del menu despegable)
6.- si aparece vacio agregar...
| | |
| Código: var Cookie = { set: function(name, value, daysToExpire) { var expire = ''; if (daysToExpire != undefined) { var d = new Date(); d.setTime(d.getTime() + (86400000 * parseFloat(daysToExpire))); expire = '; expires=' + d.toGMTString(); } return (document.cookie = escape(name) + '=' + escape(value || '') + expire); }, get: function(name) { var cookie = document.cookie.match(new RegExp('(^|;)\\s*' + escape(name) + '=([^;\\s]*)')); return (cookie ? unescape(cookie[2]) : null); }, erase: function(name) { var cookie = Cookie.get(name) || true; Cookie.set(name, '', -1); return cookie; }, accept: function() { if (typeof navigator.cookieEnabled == 'boolean') { return navigator.cookieEnabled; } Cookie.set('_test', '1'); return (Cookie.erase('_test') === '1'); } };
Examples of use:
Finding a cookie and storing it in a variable � var name = Cookie.get("name");
Setting a cookie that expires tomorrow � Cookie.set('visits', 1, new Date(new Date().getTime() + (24*60*1000)));
Removing the above cookie � Cookie.remove('visits');
Cookie.set('key','value',60); //expires 60 seconds from now Cookie.get('key'); //returns false if not found else the value stored in key Cookie.unset('key'); //removes key | |
| | |
volver a revisar que el archivo haya guardado el anterior codigo.. SI NO.. intentalo de nuevo.. y si no.. agregale cualquier cosa como <br>... guardar
limpiar cache y listo TE DEJARA EDITAR TU PLANTILLA