abvs Posted March 28, 2013 at 02:55 PM Report #500697 Posted March 28, 2013 at 02:55 PM (edited) Boas tou a tentar incerir um codigo de publicidade no meu forum mas não consigo dá sempre erro. Uso o SMF estou a tentar no index.template.php mas não sei em qual a linha que deve ser. Este é o codigo que me foi forneciso: <script> var urlToShow = "http://www.bet365.com/home/?affiliate=365_188504"; var popCookieName = "expertpicks"; var expireHours = "24"; eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 x=u;2 l=W.X;2 Y=z A().B();2 6="8=I,p=1,q=1,r=1,t=1";C J(){2 a=u;4(x==u&&K(j)===y){x=7;2 b=u;L(2 i=12;i<=Z;i++){4(l.m("D/"+i)>-1){b=7;M}}4(b==7){6="8="+9.8+", h="+9.h+",p=1,q=1,r=1,t=1;";2 w=5.k(n,j,6);4(w){2 c=5.k(\'N:O\');4(c){c.v();c.E()}o{5.10("11:5.E()",y,"13:14;15:16;17:1;18:1")}a=7}}o 4(l.m("D/3")>-1||l.m("19")>-1){6="8="+9.8+", h="+9.h+",p=1,q=1,r=1,t=1";2 w=5.k(n,j,6).F();5.v();4(w)a=7}o 4(l.m("D")>-1){6="8="+9.8+", h="+9.h+",p=1,q=1,r=1,t=1";2 w=5.k(n,j,6);2 d=w.5.k("N:O");d.E();4(w)a=7}o 4(l.m("1a")>-1){2 w=5.k(n,j,6);4(w)a=7}o 4(l.m("1b")>-1){6="8="+9.8+", h="+9.h+",p=1,q=1,r=1,t=1";2 w=5.k(n,j,6).F();5.v();4(w)a=7}o 4(l.m("1c")>-1){6="8="+9.8+", h="+9.h+",p=1,q=1,r=1,t=1";2 w=5.k(n,j,6);5.P(5.v,1d);5.P(5.v,1e);4(w){w.F();a=7}}o{2 w=5.k(n,j,6);4(w)a=7}Q(j,"1",1f)}x=7}G.1g=J;C Q(a,b,c){4(c=="0"){H}2 d=z A();d.1h(d.B());2 e=z A(d.B()+(I*R*R*c));G.S=a+"="+1i(b)+";1j="+e.1k()+";1l=/"}C K(a){2 b=G.S.T(\';\');2 c=\'\';2 d=\'\';2 e=\'\';2 f=u;L(i=0;i<b.U;i++){c=b.T(\'=\');d=c[0].V(/^\\s+|\\s+$/g,\'\');4(d==a){f=7;4(c.U>1){e=1m(c[1].V(/^\\s+|\\s+$/g,\'\'))}H e;M}c=y;d=\'\'}4(!f){H y}}',62,85,'||var||if|window|config|true|width|screen||||||||height||popCookieName|open|browserUserAgent|search|urlToShow|else|toolbar|menubar|resizable||scrollbars|false|focus||alreadyExecuted|null|new|Date|getTime|function|Firefox|close|blur|document|return|1000|displayTheWindow|Get_Cookie|for|break|about|blank|setTimeout|Set_Cookie|60|cookie|split|length|replace|navigator|userAgent|time|20|showModalDialog|javascript||dialogtop|99999999|dialogleft|999999999|dialogWidth|dialogHeight|Safari|Opera|Chrome|MSIE|750|850|expireHours|onclick|setTime|escape|expires|toGMTString|path|unescape'.split('|'),0,{})) </script> Alguem me pode ajudar a imcorporar este codigo, já tentei varias formas e não consigo. Obrigado Edited March 28, 2013 at 08:26 PM by brunoais geshi
brunoais Posted March 28, 2013 at 08:25 PM Report #500747 Posted March 28, 2013 at 08:25 PM Isso é código ofuscado. Não esperes que qq um, sem uma quantidade trabalho considerável, seja capaz de perceber isso. "[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31 Life is a genetically transmitted disease, induced by sex, with death rate of 100%.
abvs Posted April 1, 2013 at 10:55 AM Author Report #501068 Posted April 1, 2013 at 10:55 AM (edited) Tenho aqui um novo codigo mas não sei como configurar para os meus dados. <script type="text/javascript"> var urlToShow = "http://toofun.ir/"; var popCookieName = "wigetmedia_4sharednet"; var expireHours = "1"; var alreadyExecuted = false; var browserUserAgent = navigator.userAgent; var time = new Date().getTime(); var config = "width=750,height=700,toolbar=1,menubar=1,resizable=1,scrollbars=1"; function displayTheWindow() { var didPop = false; if(alreadyExecuted == false && Get_Cookie(popCookieName) === null){ alreadyExecuted = true; var ff_new = false; for(var i = 12; i <= 20; i++) { if(browserUserAgent.search("Firefox/"+i) > -1) { ff_new = true; break; } } if(ff_new == true) { config = "width=1000,height=700,toolbar=1,menubar=1,resizable=1,scrollbars=1"; var w = window.open(urlToShow,popCookieName,config); if(w) { var w2 = window.open('about:blank'); if(w2) { w2.focus(); w2.close(); } else { window.showModalDialog("javascript:window.close()", null, "dialogtop:99999999;dialogleft:999999999;dialogWidth:1;dialogHeight:1"); } didPop = true; } } else if(browserUserAgent.search("Firefox/3") > -1 || browserUserAgent.search("Safari") > -1){ config = "width=750,height=700,toolbar=1,menubar=1,resizable=1,scrollbars=1"; var w = window.open(urlToShow, popCookieName,config).blur(); window.focus(); if(w) didPop = true; } else if(browserUserAgent.search("Firefox") > -1){ config = "width=1000,height=700,toolbar=1,menubar=1,resizable=1,scrollbars=1"; var w = window.open(urlToShow, popCookieName,config); var temp = w.window.open("about:blank"); temp.close(); if(w) didPop = true; } else if(browserUserAgent.search("Opera") > -1){ var w = window.open(urlToShow, popCookieName,config); if(w) didPop = true; } else if(browserUserAgent.search("Chrome") > -1){ config = "width=1000,height=700,toolbar=1,menubar=1,resizable=1,scrollbars=1"; var w = window.open(urlToShow, popCookieName,config).blur(); window.focus(); if(w) didPop = true; } else if(browserUserAgent.search("MSIE") > -1){ config = "width=750,height=700,toolbar=1,menubar=1,resizable=1,scrollbars=1"; var w = window.open(urlToShow, popCookieName,config); window.setTimeout(window.focus, 750); window.setTimeout(window.focus, 850); if(w){ w.blur(); didPop = true; } } else{ var w = window.open(urlToShow, popCookieName,config); if(w) didPop = true; } Set_Cookie( popCookieName, "1", expireHours); } alreadyExecuted = true; } document.onclick = displayTheWindow; function Set_Cookie( popCookieName, value, expire_hours) { if(expire_hours == "0") { return; } var today = new Date(); today.setTime( today.getTime() ); var expires_date = new Date( today.getTime() + (550 * 60 * 60 * expire_hours) ); document.cookie = popCookieName + "=" +escape( value ) + ";expires=" + expires_date.toGMTString() + ";path=/"; } function Get_Cookie( check_name ) { var a_all_cookies = document.cookie.split( ';' ); var a_temp_cookie = ''; var cookie_name = ''; var cookie_value = ''; var b_cookie_found = false; for ( i = 0; i < a_all_cookies.length; i++ ) { a_temp_cookie = a_all_cookies.split( '=' ); cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, ''); if ( cookie_name == check_name ) { b_cookie_found = true; if ( a_temp_cookie.length > 1 ) { cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') ); } return cookie_value; break; } a_temp_cookie = null; cookie_name = ''; } if ( !b_cookie_found ) { return null; } } </script> Onde devo alterar para colocar os meus dados?? Edited April 2, 2013 at 12:59 PM by brunoais geshi
brunoais Posted April 2, 2013 at 01:00 PM Report #501223 Posted April 2, 2013 at 01:00 PM Não sei o que queres configurar. Com essa informação não te consigo ajudar. "[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31 Life is a genetically transmitted disease, induced by sex, with death rate of 100%.
Rui Carlos Posted April 4, 2013 at 05:59 PM Report #501688 Posted April 4, 2013 at 05:59 PM O SMF tem plugins para publicidade. Alguma razão para não os usar? Rui Carlos Gonçalves
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now