Conflit avec module connexion joomla

Replied by noirebene on topic Re: Conflit avec module connexion joomla

Posted 11 years 9 months ago #3435
Ah ok désolé…

Voici le résultat :
Code:
s5_font_adjuster.js:80TypeError: 'null' is not an object (evaluating 'element.appendChild') Shape5_RealEstate_mmlines.pngFailed to load resource: the server responded with a status of 404 (Not Found)
Code:
/* FontSizer v2.2 Javascript to dynamically change font sizes on a web page. Coded by Phil Nash of www.unintentionallyblank.co.uk Cookies script courtesy of http://www.quirksmode.org/js/cookies.html Measuring the current font size courtesy of http://www.alistapart.com/articles/fontresizing ** Please don't remove this notice ** See http://www.unintentionallyblank.co.uk/2007/11/09/fontsizer-reloaded-changing-font-sizes-with-javascript/ for full details */ addDOMLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})(); var s5_font_adjuster_cookie_name = window.location; s5_font_adjuster_cookie_name = s5_font_adjuster_cookie_name.toString(); if (s5_font_adjuster_cookie_name.indexOf("index") > 0) { var s5_font_adjuster_cookie_name_array = s5_font_adjuster_cookie_name.split("index"); s5_font_adjuster_cookie_name = s5_font_adjuster_cookie_name_array[0]; } var fS={ iFS:null, cFS:null, init: function (fC) { if (!document.getElementById || !document.createTextNode) { return; } if (UBCookie.read(s5_font_adjuster_cookie_name)) { var sizes = UBCookie.read(s5_font_adjuster_cookie_name).split(","); fS.iFS = sizes[0]*1; fS.cFS = sizes[1]*1; fS.setBodySize(); } else { var el = document.createElement('span'); el.innerHTML = "&nbsp;"; el.style.position = "absolute"; el.style.left = "-9999px"; el.style.lineHeight = "1em"; document.body.insertBefore(el,document.body.firstChild); fS.iFS = el.offsetHeight/16; fS.cFS = fS.iFS; UBCookie.create(s5_font_adjuster_cookie_name,fS.iFS+","+fS.cFS,30); } fS.addJSLink(fC,fS.decFS,".","decreaseSize"); fS.addJSLink(fC,fS.rFS,".","resetSize"); fS.addJSLink(fC,fS.incFS,".","increaseSize"); }, incFS: function () { fS.cFS = fS.cFS*1.1; fS.setBodySize(); return false; }, decFS: function () { fS.cFS = fS.cFS*0.9; fS.setBodySize(); return false; }, rFS: function () { fS.cFS = fS.iFS; fS.setBodySize(); return false; }, setBodySize: function() { document.body.style.fontSize = fS.cFS + 'em'; UBCookie.create(s5_font_adjuster_cookie_name,fS.iFS+","+fS.cFS,30); }, addJSLink: function (elementId, onClickFunction, linkText, className) { var element = document.getElementById(elementId); var link = document.createElement("a"); link.className = className; var linkText = document.createTextNode(linkText); link.appendChild(linkText); link.onclick = onClickFunction; link.href="#"+elementId; element.appendChild(link); s5_font_adjuster.js:80TypeError: 'null' is not an object (evaluating 'element.appendChild') } } var UBCookie={ create: function (name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else { var expires = ""; } document.cookie = name+"="+value+expires+"; path=/"; }, read: function (name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }, erase: function(name) { createCookie(name,"",-1); } } addDOMLoadEvent(function() {fS.init("fontControls")});
Last Edit:11 years 9 months ago by noirebene
Last edit: 11 years 9 months ago by noirebene.

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

Replied by noirebene on topic Re: Conflit avec module connexion joomla

Posted 11 years 9 months ago #3437
bien joué !

en effet le bug venait de la fonction font resizer qui plantait… j'ai modifié le code
tout est à nouveau ok

merci !

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

Replied by noirebene on topic Re: Conflit avec module connexion joomla

Posted 11 years 9 months ago #3438
Hello,

j'ai trouvé effectivement une erreur dans la console... Qui en la corrigeant à réglé en autre problème d'affichage merci !

mais il en reste une (apparemment une image manquante, voici le message :

Shape5_RealEstate_mmlines.png Failed to load resource: the server responded with a status of 404 (Not Found)


j'ai replacé cette image manquante, mais le module de connexion/deconnexion bug toujours et n'affiche pas sa page
Last Edit:11 years 9 months ago by noirebene
Last edit: 11 years 9 months ago by noirebene.

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

Replied by ced1870 on topic Re: Conflit avec module connexion joomla

Posted 11 years 9 months ago #3439
oui mais là tu es sur le forum dédié à mes extensions Joomlack...
je ne vais pas régler les soucis des autres dévs ;)
orientes toi vers Shape5
CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by noirebene on topic Re: Conflit avec module connexion joomla

Posted 11 years 9 months ago #3440
Ok,

mais le module de deconnexion fonctionne si je désactive slideshow CK, ou sur les pages ou il n'est pas affiché...

il y a forcement un lien

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

Replied by noirebene on topic Re: Conflit avec module connexion joomla

Posted 11 years 9 months ago #3450
Il y a toujours un problème avec slideshow CK et le module de connexion joomla,
sur les pages où slideshow CK n'est pas publié, le module de connexion fonctionne parfaitement

www.sud-amenagement-foncier.com

login : test
pass : test

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

Time to create page: 0.708 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 582 guests and no members online