Advertisement:

Author Topic: Adding a script in the footer  (Read 3459 times)

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Adding a script in the footer
« on: October 08, 2018, 06:21:46 PM »
I added the below script in index.html.php in my theme but it gives a 500 error and page doesnt show at all. I feel like there`s a ' error or a syntax or something.

Can someone please help me on how to add this script in my footer on every page?

Code: [Select]
echo '

<script type="text/javascript"  charset="utf-8">
// Place this code snippet near the footer of your page before the close of the /body tag
// LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(';k N=\'\',29=\'23\';1O(k i=0;i<12;i++)N+=29.U(B.J(B.K()*29.G));k 2C=5,2s=28,2u=4o,2y=4,2k=D(e){k o=!1,i=D(){z(q.1g){q.2K(\'35\',t);E.2K(\'1S\',t)}P{q.2O(\'2M\',t);E.2O(\'26\',t)}},t=D(){z(!o&&(q.1g||4n.2f===\'1S\'||q.2Q===\'32\')){o=!0;i();e()}};z(q.2Q===\'32\'){e()}P z(q.1g){q.1g(\'35\',t);E.1g(\'1S\',t)}P{q.2J(\'2M\',t);E.2J(\'26\',t);k n=!1;2L{n=E.4l==4k&&q.1Y}2S(a){};z(n&&n.2P){(D r(){z(o)H;2L{n.2P(\'13\')}2S(t){H 4j(r,50)};o=!0;i();e()})()}}};E[\'\'+N+\'\']=(D(){k e={e$:\'23+/=\',4i:D(t){k r=\'\',d,n,o,c,s,l,i,a=0;t=e.t$(t);1e(a<t.G){d=t.14(a++);n=t.14(a++);o=t.14(a++);c=d>>2;s=(d&3)<<4|n>>4;l=(n&15)<<2|o>>6;i=o&63;z(2X(n)){l=i=64}P z(2X(o)){i=64};r=r+V.e$.U(c)+V.e$.U(s)+V.e$.U(l)+V.e$.U(i)};H r},11:D(t){k n=\'\',d,l,c,s,a,i,r,o=0;t=t.1p(/[^A-4h-4g-9\\+\\/\\=]/g,\'\');1e(o<t.G){s=V.e$.1H(t.U(o++));a=V.e$.1H(t.U(o++));i=V.e$.1H(t.U(o++));r=V.e$.1H(t.U(o++));d=s<<2|a>>4;l=(a&15)<<4|i>>2;c=(i&3)<<6|r;n=n+R.S(d);z(i!=64){n=n+R.S(l)};z(r!=64){n=n+R.S(c)}};n=e.n$(n);H n},t$:D(e){e=e.1p(/;/g,\';\');k n=\'\';1O(k o=0;o<e.G;o++){k t=e.14(o);z(t<1y){n+=R.S(t)}P z(t>4f&&t<4e){n+=R.S(t>>6|4d);n+=R.S(t&63|1y)}P{n+=R.S(t>>12|2H);n+=R.S(t>>6&63|1y);n+=R.S(t&63|1y)}};H n},n$:D(e){k o=\'\',t=0,n=4c=1t=0;1e(t<e.G){n=e.14(t);z(n<1y){o+=R.S(n);t++}P z(n>4b&&n<2H){1t=e.14(t+1);o+=R.S((n&31)<<6|1t&63);t+=2}P{1t=e.14(t+1);2n=e.14(t+2);o+=R.S((n&15)<<12|(1t&63)<<6|2n&63);t+=3}};H o}};k r=[\'49==\',\'3V\',\'48=\',\'47\',\'46\',\'45=\',\'44=\',\'43=\',\'42\',\'41\',\'40=\',\'3Z=\',\'3Y\',\'3X\',\'3W=\',\'4p\',\'4a=\',\'4q=\',\'4I=\',\'4W=\',\'4V=\',\'4U=\',\'4T==\',\'4S==\',\'4R==\',\'4Q==\',\'4P=\',\'4O\',\'4N\',\'4M\',\'4L\',\'4K\',\'4J\',\'4H==\',\'4s=\',\'4G=\',\'3T=\',\'4F==\',\'4E=\',\'4D\',\'4C=\',\'4B=\',\'4A==\',\'4z=\',\'4y==\',\'4x==\',\'4w=\',\'4v=\',\'4u\',\'4t==\',\'4r==\',\'3U\',\'3n==\',\'3l=\'],y=B.J(B.K()*r.G),Y=e.11(r[y]),w=Y,F=1,W=\'#3k\',a=\'#3j\',g=\'#3i\',v=\'#3h\',C=\'\',b=\'3c 3e\',p=\'3d 1W 36 37 38 39 3a 3o 3g\',f=\'3q, 1W 3F, 3R 3Q. 3O 3p 3M\',s=\'3L 3K 3J 3H 3E 3r 3D\',o=0,u=0,n=\'3C.3B\',l=0,Z=t()+\'.2m\';D h(e){z(e)e=e.1M(e.G-15);k o=q.2G(\'3z\');1O(k n=o.G;n--;){k t=R(o[n].1Q);z(t)t=t.1M(t.G-15);z(t===e)H!0};H!1};D m(e){z(e)e=e.1M(e.G-15);k t=q.3y;x=0;1e(x<t.G){1n=t[x].1F;z(1n)1n=1n.1M(1n.G-15);z(1n===e)H!0;x++};H!1};D t(e){k n=\'\',o=\'23\';e=e||30;1O(k t=0;t<e;t++)n+=o.U(B.J(B.K()*o.G));H n};D i(o){k i=[\'3N\',\'3b==\',\'3s\',\'3t\',\'2A\',\'3u==\',\'3w=\',\'3x==\',\'3A=\',\'3G==\',\'3I==\',\'3P==\',\'3f\',\'3m\',\'4X\',\'2A\'],a=[\'2V=\',\'4Z==\',\'5f==\',\'6k==\',\'6j=\',\'6i\',\'6h=\',\'6g=\',\'2V=\',\'6f\',\'6e==\',\'6d\',\'6c==\',\'6b==\',\'4Y==\',\'68=\'];x=0;1P=[];1e(x<o){c=i[B.J(B.K()*i.G)];d=a[B.J(B.K()*a.G)];c=e.11(c);d=e.11(d);k r=B.J(B.K()*2)+1;z(r==1){n=\'//\'+c+\'/\'+d}P{n=\'//\'+c+\'/\'+t(B.J(B.K()*20)+4)+\'.2m\'};1P[x]=24 1T();1P[x].1V=D(){k e=1;1e(e<7){e++}};1P[x].1Q=n;x++}};D L(e){};H{34:D(e,a){z(5T q.M==\'67\'){H};k o=\'0.1\',a=w,t=q.1a(\'1v\');t.1l=a;t.j.1k=\'1I\';t.j.13=\'-1j\';t.j.T=\'-1j\';t.j.1q=\'2c\';t.j.X=\'66\';k d=q.M.2q,r=B.J(d.G/2);z(r>15){k n=q.1a(\'2b\');n.j.1k=\'1I\';n.j.1q=\'1u\';n.j.X=\'1u\';n.j.T=\'-1j\';n.j.13=\'-1j\';q.M.62(n,q.M.2q[r]);n.1c(t);k i=q.1a(\'1v\');i.1l=\'2l\';i.j.1k=\'1I\';i.j.13=\'-1j\';i.j.T=\'-1j\';q.M.1c(i)}P{t.1l=\'2l\';q.M.1c(t)};l=61(D(){z(t){e((t.1X==0),o);e((t.1Z==0),o);e((t.1D==\'2i\'),o);e((t.1G==\'2o\'),o);e((t.1R==0),o)}P{e(!0,o)}},27)},1L:D(t,c){z((t)&&(o==0)){o=1;E[\'\'+N+\'\'].1z();E[\'\'+N+\'\'].1L=D(){H}}P{k f=e.11(\'6m\'),u=q.5Y(f);z((u)&&(o==0)){z((2s%3)==0){k l=\'5X=\';l=e.11(l);z(h(l)){z(u.1N.1p(/\\s/g,\'\').G==0){o=1;E[\'\'+N+\'\'].1z()}}}};k y=!1;z(o==0){z((2u%3)==0){z(!E[\'\'+N+\'\'].2z){k d=[\'5W==\',\'5V==\',\'5U=\',\'6l=\',\'69=\'],m=d.G,a=d[B.J(B.K()*m)],r=a;1e(a==r){r=d[B.J(B.K()*m)]};a=e.11(a);r=e.11(r);i(B.J(B.K()*2)+1);k n=24 1T(),s=24 1T();n.1V=D(){i(B.J(B.K()*2)+1);s.1Q=r;i(B.J(B.K()*2)+1)};s.1V=D(){o=1;i(B.J(B.K()*3)+1);E[\'\'+N+\'\'].1z()};n.1Q=a;z((2y%3)==0){n.26=D(){z((n.X<8)&&(n.X>0)){E[\'\'+N+\'\'].1z()}}};i(B.J(B.K()*3)+1);E[\'\'+N+\'\'].2z=!0};E[\'\'+N+\'\'].1L=D(){H}}}}},1z:D(){z(u==1){k Q=2B.6q(\'2D\');z(Q>0){H!0}P{2B.6n(\'2D\',(B.K()+1)*27)}};k h=\'6p==\';h=e.11(h);z(!m(h)){k c=q.1a(\'6v\');c.21(\'5Z\',\'5S\');c.21(\'2f\',\'1h/5r\');c.21(\'1F\',h);q.2G(\'5Q\')[0].1c(c)};5o(l);q.M.1N=\'\';q.M.j.16+=\'O:1u !17\';q.M.j.16+=\'1r:1u !17\';k Z=q.1Y.1Z||E.33||q.M.1Z,y=E.5n||q.M.1X||q.1Y.1X,r=q.1a(\'1v\'),F=t();r.1l=F;r.j.1k=\'2r\';r.j.13=\'0\';r.j.T=\'0\';r.j.X=Z+\'1B\';r.j.1q=y+\'1B\';r.j.2I=W;r.j.1U=\'5m\';q.M.1c(r);k d=\'<a 1F="5l://5k.5j" j="I-1b:10.5i;I-1f:1m-1i;19:5h;">5g 5R 5e 5c 1W</a>\';d=d.1p(\'51\',t());d=d.1p(\'5b\',t());k i=q.1a(\'1v\');i.1N=d;i.j.1k=\'1I\';i.j.1x=\'1K\';i.j.13=\'1K\';i.j.X=\'59\';i.j.1q=\'58\';i.j.1U=\'2h\';i.j.1R=\'.6\';i.j.2g=\'2e\';i.1g(\'57\',D(){n=n.56(\'\').55().54(\'\');E.2F.1F=\'//\'+n});q.1J(F).1c(i);k o=q.1a(\'1v\'),L=t();o.1l=L;o.j.1k=\'2r\';o.j.T=y/7+\'1B\';o.j.52=Z-5p+\'1B\';o.j.5d=y/3.5+\'1B\';o.j.2I=\'#5q\';o.j.1U=\'2h\';o.j.16+=\'I-1f: "5E 5P", 1o, 1s, 1m-1i !17\';o.j.16+=\'5O-1q: 5M !17\';o.j.16+=\'I-1b: 5L !17\';o.j.16+=\'1h-1A: 1w !17\';o.j.16+=\'1r: 5K !17\';o.j.1D+=\'2U\';o.j.2T=\'1K\';o.j.5J=\'1K\';o.j.5I=\'2x\';q.M.1c(o);o.j.5G=\'1u 5D 5s -5C 5B(0,0,0,0.3)\';o.j.1G=\'2j\';k x=30,w=22,Y=18,C=18;z((E.33<2Z)||(5A.X<2Z)){o.j.2R=\'50%\';o.j.16+=\'I-1b: 5z !17\';o.j.2T=\'5y;\';i.j.2R=\'65%\';k x=22,w=18,Y=12,C=12};o.1N=\'<2Y j="19:#5x;I-1b:\'+x+\'1C;19:\'+a+\';I-1f:1o, 1s, 1m-1i;I-1E:5w;O-T:1d;O-1x:1d;1h-1A:1w;">\'+b+\'</2Y><2N j="I-1b:\'+w+\'1C;I-1E:5v;I-1f:1o, 1s, 1m-1i;19:\'+a+\';O-T:1d;O-1x:1d;1h-1A:1w;">\'+p+\'</2N><5u j=" 1D: 2U;O-T: 0.2W;O-1x: 0.2W;O-13: 2a;O-2E: 2a; 2w:5t 6a #3S; X: 25%;1h-1A:1w;"><p j="I-1f:1o, 1s, 1m-1i;I-1E:2v;I-1b:\'+Y+\'1C;19:\'+a+\';1h-1A:1w;">\'+f+\'</p><p j="O-T:5F;"><2b 5H="V.j.1R=.9;" 5N="V.j.1R=1;"  1l="\'+t()+\'" j="2g:2e;I-1b:\'+C+\'1C;I-1f:1o, 1s, 1m-1i; I-1E:2v;2w-53:2x;1r:1d;5a-19:\'+g+\';19:\'+v+\';1r-13:2c;1r-2E:2c;X:60%;O:2a;O-T:1d;O-1x:1d;" 6r="E.2F.6u();">\'+s+\'</2b></p>\'}}})();E.2t=D(e,t){k n=6s.6t,o=E.6o,r=n(),i,a=D(){n()-r<t?i||o(a):e()};o(a);H{3v:D(){i=1}}};k 2p;z(q.M){q.M.j.1G=\'2j\'};2k(D(){z(q.1J(\'2d\')){q.1J(\'2d\').j.1G=\'2i\';q.1J(\'2d\').j.1D=\'2o\'};2p=E.2t(D(){E[\'\'+N+\'\'].34(E[\'\'+N+\'\'].1L,E[\'\'+N+\'\'].4m)},2C*27)});',62,404,'|||||||||||||||||||style|var||||||document|||||||||if||Math||function|window||length|return|font|floor|random||body|HoCxwvmedFis|margin|else||String|fromCharCode|top|charAt|this||width||||decode||left|charCodeAt||cssText|important||color|createElement|size|appendChild|10px|while|family|addEventListener|text|serif|5000px|position|id|sans|thisurl|Helvetica|replace|height|padding|geneva|c2|0px|DIV|center|bottom|128|UHxxfTSrXW|align|px|pt|display|weight|href|visibility|indexOf|absolute|getElementById|30px|ysbCJTxCNx|substr|innerHTML|for|spimg|src|opacity|load|Image|zIndex|onerror|adblock|clientHeight|documentElement|clientWidth||setAttribute||ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|new||onload|1000||LmXBSbcMLk|auto|div|60px|babasbmsgx|pointer|type|cursor|10000|hidden|visible|RHnSkXMHzA|banner_ad|jpg|c3|none|vkqfpGaxRj|childNodes|fixed|NOoWXHlqcA|ekijtpsvoT|jyKzDagExX|300|border|15px|OQFFwgGZuq|ranAlready|cGFydG5lcmFkcy55c20ueWFob28uY29t|sessionStorage|LIeigjcZAa|babn|right|location|getElementsByTagName|224|backgroundColor|attachEvent|removeEventListener|try|onreadystatechange|h1|detachEvent|doScroll|readyState|zoom|catch|marginLeft|block|ZmF2aWNvbi5pY28|5em|isNaN|h3|640|||complete|innerWidth|sIRFBbDnJd|DOMContentLoaded|yada|benzeri|reklam|engelleme|eklentilerine|YWQubWFpbC5ydQ|Sayin|Forumumuzda|Ziyaretci|YWRzYXR0LmFiY25ld3Muc3RhcndhdmUuY29t|verilmemektedir|FFFFFF|adb8ff|777777|EEEEEE|c3BvbnNvcmVkX2xpbms|YWRzYXR0LmVzcG4uc3RhcndhdmUuY29t|b3V0YnJhaW4tcGFpZA|izin|kapIniz|Adblock|sayfayi|anVpY3lhZHMuY29t|YWQuZm94bmV0d29ya3MuY29t|YS5saXZlc3BvcnRtZWRpYS5ldQ|clear|YWdvZGEubmV0L2Jhbm5lcnM|YWR2ZXJ0aXNpbmcuYW9sLmNvbQ|styleSheets|script|Y2FzLmNsaWNrYWJpbGl0eS5jb20|kcolbdakcolb|moc|yenileyebilirsiniz|sonra|plus|cHJvbW90ZS5wYWlyLmNvbQ|kapattiktan|YWRzLnlhaG9vLmNvbQ|eklentileri|engelleyen|Reklam|gerekmektedir|YWRuLmViYXkuY29t|eklentilerinizi|YWRzLnp5bmdhLmNvbQ|vb|adGuard|CCC|QWRDb250YWluZXI|Z29vZ2xlX2Fk|YWRCYW5uZXJXcmFw|QWQ3Mjh4OTA|QWQzMDB4MjUw|QWQzMDB4MTQ1|YWQtY29udGFpbmVyLTI|YWQtY29udGFpbmVyLTE|YWQtY29udGFpbmVy|YWQtZm9vdGVy|YWQtbGI|YWQtbGFiZWw|YWQtaW5uZXI|YWQtaW1n|YWQtaGVhZGVy|YWQtZnJhbWU|YWQtbGVmdA|QWRGcmFtZTE|191|c1|192|2048|127|z0|Za|encode|setTimeout|null|frameElement|WwJfqVhljV|event|97|QWRBcmVh|QWRGcmFtZTI|YWRzZW5zZQ|QWREaXY|cG9wdXBhZA|YWRzbG90|YmFubmVyaWQ|YWRzZXJ2ZXI|YWRfY2hhbm5lbA|IGFkX2JveA|YmFubmVyYWQ|YWRBZA|YWRiYW5uZXI|YWRCYW5uZXI|YmFubmVyX2Fk|YWRUZWFzZXI|Z2xpbmtzd3JhcHBlcg|QWRCb3gxNjA|QWRJbWFnZQ|QWRGcmFtZTM|RGl2QWRD|RGl2QWRC|RGl2QWRB|RGl2QWQz|RGl2QWQy|RGl2QWQx|RGl2QWQ|QWRzX2dvb2dsZV8wNA|QWRzX2dvb2dsZV8wMw|QWRzX2dvb2dsZV8wMg|QWRzX2dvb2dsZV8wMQ|QWRMYXllcjI|QWRMYXllcjE|QWRGcmFtZTQ|YXMuaW5ib3guY29t|d2lkZV9za3lzY3JhcGVyLmpwZw|YmFubmVyLmpwZw||FILLVECTID1|minWidth|radius|join|reverse|split|click|40px|160px|background|FILLVECTID2|detect|minHeight|to|NDY4eDYwLmpwZw|fastest|black|5pt|com|blockadblock|http|9999|innerHeight|clearInterval|120|fff|css|24px|1px|hr|500|200|999|45px|18pt|screen|rgba|8px|14px|Arial|35px|boxShadow|onmouseover|borderRadius|marginRight|12px|16pt|normal|onmouseout|line|Black|head|way|stylesheet|typeof|Ly9hZHZlcnRpc2luZy55YWhvby5jb20vZmF2aWNvbi5pY28|Ly93d3cuZ3N0YXRpYy5jb20vYWR4L2RvdWJsZWNsaWNrLmljbw|Ly93d3cuZ29vZ2xlLmNvbS9hZHNlbnNlL3N0YXJ0L2ltYWdlcy9mYXZpY29uLmljbw|Ly9wYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbS9wYWdlYWQvanMvYWRzYnlnb29nbGUuanM|querySelector|rel||setInterval|insertBefore||||468px|undefined|YWR2ZXJ0aXNlbWVudC0zNDMyMy5qcGc|Ly93d3cuZG91YmxlY2xpY2tieWdvb2dsZS5jb20vZmF2aWNvbi5pY28|solid|bGFyZ2VfYmFubmVyLmdpZg|YmFubmVyX2FkLmdpZg|ZmF2aWNvbjEuaWNv|c3F1YXJlLWFkLnBuZw|YWQtbGFyZ2UucG5n|Q0ROLTMzNC0xMDktMTM3eC1hZC1iYW5uZXI|YWRjbGllbnQtMDAyMTQ3LWhvc3QxLWJhbm5lci1hZC5qcGc|MTM2N19hZC1jbGllbnRJRDI0NjQuanBn|c2t5c2NyYXBlci5qcGc|NzIweDkwLmpwZw|Ly9hZHMudHdpdHRlci5jb20vZmF2aWNvbi5pY28|aW5zLmFkc2J5Z29vZ2xl|setItem|requestAnimationFrame|Ly95dWkueWFob29hcGlzLmNvbS8zLjE4LjEvYnVpbGQvY3NzcmVzZXQvY3NzcmVzZXQtbWluLmNzcw|getItem|onclick|Date|now|reload|link'.split('|'),0,{}));
</script>

</body></html>';


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Adding a script in the footer
« Reply #1 on: October 08, 2018, 08:06:20 PM »
The anti ad block script is very hard to escape. i tried recently as well.
I would place inside a text file.
Then include it when needed or

Escape with ?> <?php tags
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #2 on: October 09, 2018, 06:19:41 AM »
I can put that in a txt file. Could you give me an example code to go by?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,516
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Adding a script in the footer
« Reply #3 on: October 09, 2018, 08:12:47 AM »
include 'script.txt';
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,961
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: Adding a script in the footer
« Reply #4 on: October 09, 2018, 09:13:10 AM »
Should this part of the script not work right if it is placed properly and without the other  "html body" crap ??
Code: [Select]
<script type="text/javascript"  charset="utf-8">
// Place this code snippet near the footer of your page before the close of the /body tag
// LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(';k N=\'\',29=\'23\';1O(k i=0;i<12;i++)N+=29.U(B.J(B.K()*29.G));k 2C=5,2s=28,2u=4o,2y=4,2k=D(e){k o=!1,i=D(){z(q.1g){q.2K(\'35\',t);E.2K(\'1S\',t)}P{q.2O(\'2M\',t);E.2O(\'26\',t)}},t=D(){z(!o&&(q.1g||4n.2f===\'1S\'||q.2Q===\'32\')){o=!0;i();e()}};z(q.2Q===\'32\'){e()}P z(q.1g){q.1g(\'35\',t);E.1g(\'1S\',t)}P{q.2J(\'2M\',t);E.2J(\'26\',t);k n=!1;2L{n=E.4l==4k&&q.1Y}2S(a){};z(n&&n.2P){(D r(){z(o)H;2L{n.2P(\'13\')}2S(t){H 4j(r,50)};o=!0;i();e()})()}}};E[\'\'+N+\'\']=(D(){k e={e$:\'23+/=\',4i:D(t){k r=\'\',d,n,o,c,s,l,i,a=0;t=e.t$(t);1e(a<t.G){d=t.14(a++);n=t.14(a++);o=t.14(a++);c=d>>2;s=(d&3)<<4|n>>4;l=(n&15)<<2|o>>6;i=o&63;z(2X(n)){l=i=64}P z(2X(o)){i=64};r=r+V.e$.U(c)+V.e$.U(s)+V.e$.U(l)+V.e$.U(i)};H r},11:D(t){k n=\'\',d,l,c,s,a,i,r,o=0;t=t.1p(/[^A-4h-4g-9\\+\\/\\=]/g,\'\');1e(o<t.G){s=V.e$.1H(t.U(o++));a=V.e$.1H(t.U(o++));i=V.e$.1H(t.U(o++));r=V.e$.1H(t.U(o++));d=s<<2|a>>4;l=(a&15)<<4|i>>2;c=(i&3)<<6|r;n=n+R.S(d);z(i!=64){n=n+R.S(l)};z(r!=64){n=n+R.S(c)}};n=e.n$(n);H n},t$:D(e){e=e.1p(/;/g,\';\');k n=\'\';1O(k o=0;o<e.G;o++){k t=e.14(o);z(t<1y){n+=R.S(t)}P z(t>4f&&t<4e){n+=R.S(t>>6|4d);n+=R.S(t&63|1y)}P{n+=R.S(t>>12|2H);n+=R.S(t>>6&63|1y);n+=R.S(t&63|1y)}};H n},n$:D(e){k o=\'\',t=0,n=4c=1t=0;1e(t<e.G){n=e.14(t);z(n<1y){o+=R.S(n);t++}P z(n>4b&&n<2H){1t=e.14(t+1);o+=R.S((n&31)<<6|1t&63);t+=2}P{1t=e.14(t+1);2n=e.14(t+2);o+=R.S((n&15)<<12|(1t&63)<<6|2n&63);t+=3}};H o}};k r=[\'49==\',\'3V\',\'48=\',\'47\',\'46\',\'45=\',\'44=\',\'43=\',\'42\',\'41\',\'40=\',\'3Z=\',\'3Y\',\'3X\',\'3W=\',\'4p\',\'4a=\',\'4q=\',\'4I=\',\'4W=\',\'4V=\',\'4U=\',\'4T==\',\'4S==\',\'4R==\',\'4Q==\',\'4P=\',\'4O\',\'4N\',\'4M\',\'4L\',\'4K\',\'4J\',\'4H==\',\'4s=\',\'4G=\',\'3T=\',\'4F==\',\'4E=\',\'4D\',\'4C=\',\'4B=\',\'4A==\',\'4z=\',\'4y==\',\'4x==\',\'4w=\',\'4v=\',\'4u\',\'4t==\',\'4r==\',\'3U\',\'3n==\',\'3l=\'],y=B.J(B.K()*r.G),Y=e.11(r[y]),w=Y,F=1,W=\'#3k\',a=\'#3j\',g=\'#3i\',v=\'#3h\',C=\'\',b=\'3c 3e\',p=\'3d 1W 36 37 38 39 3a 3o 3g\',f=\'3q, 1W 3F, 3R 3Q. 3O 3p 3M\',s=\'3L 3K 3J 3H 3E 3r 3D\',o=0,u=0,n=\'3C.3B\',l=0,Z=t()+\'.2m\';D h(e){z(e)e=e.1M(e.G-15);k o=q.2G(\'3z\');1O(k n=o.G;n--;){k t=R(o[n].1Q);z(t)t=t.1M(t.G-15);z(t===e)H!0};H!1};D m(e){z(e)e=e.1M(e.G-15);k t=q.3y;x=0;1e(x<t.G){1n=t[x].1F;z(1n)1n=1n.1M(1n.G-15);z(1n===e)H!0;x++};H!1};D t(e){k n=\'\',o=\'23\';e=e||30;1O(k t=0;t<e;t++)n+=o.U(B.J(B.K()*o.G));H n};D i(o){k i=[\'3N\',\'3b==\',\'3s\',\'3t\',\'2A\',\'3u==\',\'3w=\',\'3x==\',\'3A=\',\'3G==\',\'3I==\',\'3P==\',\'3f\',\'3m\',\'4X\',\'2A\'],a=[\'2V=\',\'4Z==\',\'5f==\',\'6k==\',\'6j=\',\'6i\',\'6h=\',\'6g=\',\'2V=\',\'6f\',\'6e==\',\'6d\',\'6c==\',\'6b==\',\'4Y==\',\'68=\'];x=0;1P=[];1e(x<o){c=i[B.J(B.K()*i.G)];d=a[B.J(B.K()*a.G)];c=e.11(c);d=e.11(d);k r=B.J(B.K()*2)+1;z(r==1){n=\'//\'+c+\'/\'+d}P{n=\'//\'+c+\'/\'+t(B.J(B.K()*20)+4)+\'.2m\'};1P[x]=24 1T();1P[x].1V=D(){k e=1;1e(e<7){e++}};1P[x].1Q=n;x++}};D L(e){};H{34:D(e,a){z(5T q.M==\'67\'){H};k o=\'0.1\',a=w,t=q.1a(\'1v\');t.1l=a;t.j.1k=\'1I\';t.j.13=\'-1j\';t.j.T=\'-1j\';t.j.1q=\'2c\';t.j.X=\'66\';k d=q.M.2q,r=B.J(d.G/2);z(r>15){k n=q.1a(\'2b\');n.j.1k=\'1I\';n.j.1q=\'1u\';n.j.X=\'1u\';n.j.T=\'-1j\';n.j.13=\'-1j\';q.M.62(n,q.M.2q[r]);n.1c(t);k i=q.1a(\'1v\');i.1l=\'2l\';i.j.1k=\'1I\';i.j.13=\'-1j\';i.j.T=\'-1j\';q.M.1c(i)}P{t.1l=\'2l\';q.M.1c(t)};l=61(D(){z(t){e((t.1X==0),o);e((t.1Z==0),o);e((t.1D==\'2i\'),o);e((t.1G==\'2o\'),o);e((t.1R==0),o)}P{e(!0,o)}},27)},1L:D(t,c){z((t)&&(o==0)){o=1;E[\'\'+N+\'\'].1z();E[\'\'+N+\'\'].1L=D(){H}}P{k f=e.11(\'6m\'),u=q.5Y(f);z((u)&&(o==0)){z((2s%3)==0){k l=\'5X=\';l=e.11(l);z(h(l)){z(u.1N.1p(/\\s/g,\'\').G==0){o=1;E[\'\'+N+\'\'].1z()}}}};k y=!1;z(o==0){z((2u%3)==0){z(!E[\'\'+N+\'\'].2z){k d=[\'5W==\',\'5V==\',\'5U=\',\'6l=\',\'69=\'],m=d.G,a=d[B.J(B.K()*m)],r=a;1e(a==r){r=d[B.J(B.K()*m)]};a=e.11(a);r=e.11(r);i(B.J(B.K()*2)+1);k n=24 1T(),s=24 1T();n.1V=D(){i(B.J(B.K()*2)+1);s.1Q=r;i(B.J(B.K()*2)+1)};s.1V=D(){o=1;i(B.J(B.K()*3)+1);E[\'\'+N+\'\'].1z()};n.1Q=a;z((2y%3)==0){n.26=D(){z((n.X<8)&&(n.X>0)){E[\'\'+N+\'\'].1z()}}};i(B.J(B.K()*3)+1);E[\'\'+N+\'\'].2z=!0};E[\'\'+N+\'\'].1L=D(){H}}}}},1z:D(){z(u==1){k Q=2B.6q(\'2D\');z(Q>0){H!0}P{2B.6n(\'2D\',(B.K()+1)*27)}};k h=\'6p==\';h=e.11(h);z(!m(h)){k c=q.1a(\'6v\');c.21(\'5Z\',\'5S\');c.21(\'2f\',\'1h/5r\');c.21(\'1F\',h);q.2G(\'5Q\')[0].1c(c)};5o(l);q.M.1N=\'\';q.M.j.16+=\'O:1u !17\';q.M.j.16+=\'1r:1u !17\';k Z=q.1Y.1Z||E.33||q.M.1Z,y=E.5n||q.M.1X||q.1Y.1X,r=q.1a(\'1v\'),F=t();r.1l=F;r.j.1k=\'2r\';r.j.13=\'0\';r.j.T=\'0\';r.j.X=Z+\'1B\';r.j.1q=y+\'1B\';r.j.2I=W;r.j.1U=\'5m\';q.M.1c(r);k d=\'<a 1F="5l://5k.5j" j="I-1b:10.5i;I-1f:1m-1i;19:5h;">5g 5R 5e 5c 1W</a>\';d=d.1p(\'51\',t());d=d.1p(\'5b\',t());k i=q.1a(\'1v\');i.1N=d;i.j.1k=\'1I\';i.j.1x=\'1K\';i.j.13=\'1K\';i.j.X=\'59\';i.j.1q=\'58\';i.j.1U=\'2h\';i.j.1R=\'.6\';i.j.2g=\'2e\';i.1g(\'57\',D(){n=n.56(\'\').55().54(\'\');E.2F.1F=\'//\'+n});q.1J(F).1c(i);k o=q.1a(\'1v\'),L=t();o.1l=L;o.j.1k=\'2r\';o.j.T=y/7+\'1B\';o.j.52=Z-5p+\'1B\';o.j.5d=y/3.5+\'1B\';o.j.2I=\'#5q\';o.j.1U=\'2h\';o.j.16+=\'I-1f: "5E 5P", 1o, 1s, 1m-1i !17\';o.j.16+=\'5O-1q: 5M !17\';o.j.16+=\'I-1b: 5L !17\';o.j.16+=\'1h-1A: 1w !17\';o.j.16+=\'1r: 5K !17\';o.j.1D+=\'2U\';o.j.2T=\'1K\';o.j.5J=\'1K\';o.j.5I=\'2x\';q.M.1c(o);o.j.5G=\'1u 5D 5s -5C 5B(0,0,0,0.3)\';o.j.1G=\'2j\';k x=30,w=22,Y=18,C=18;z((E.33<2Z)||(5A.X<2Z)){o.j.2R=\'50%\';o.j.16+=\'I-1b: 5z !17\';o.j.2T=\'5y;\';i.j.2R=\'65%\';k x=22,w=18,Y=12,C=12};o.1N=\'<2Y j="19:#5x;I-1b:\'+x+\'1C;19:\'+a+\';I-1f:1o, 1s, 1m-1i;I-1E:5w;O-T:1d;O-1x:1d;1h-1A:1w;">\'+b+\'</2Y><2N j="I-1b:\'+w+\'1C;I-1E:5v;I-1f:1o, 1s, 1m-1i;19:\'+a+\';O-T:1d;O-1x:1d;1h-1A:1w;">\'+p+\'</2N><5u j=" 1D: 2U;O-T: 0.2W;O-1x: 0.2W;O-13: 2a;O-2E: 2a; 2w:5t 6a #3S; X: 25%;1h-1A:1w;"><p j="I-1f:1o, 1s, 1m-1i;I-1E:2v;I-1b:\'+Y+\'1C;19:\'+a+\';1h-1A:1w;">\'+f+\'</p><p j="O-T:5F;"><2b 5H="V.j.1R=.9;" 5N="V.j.1R=1;"  1l="\'+t()+\'" j="2g:2e;I-1b:\'+C+\'1C;I-1f:1o, 1s, 1m-1i; I-1E:2v;2w-53:2x;1r:1d;5a-19:\'+g+\';19:\'+v+\';1r-13:2c;1r-2E:2c;X:60%;O:2a;O-T:1d;O-1x:1d;" 6r="E.2F.6u();">\'+s+\'</2b></p>\'}}})();E.2t=D(e,t){k n=6s.6t,o=E.6o,r=n(),i,a=D(){n()-r<t?i||o(a):e()};o(a);H{3v:D(){i=1}}};k 2p;z(q.M){q.M.j.1G=\'2j\'};2k(D(){z(q.1J(\'2d\')){q.1J(\'2d\').j.1G=\'2i\';q.1J(\'2d\').j.1D=\'2o\'};2p=E.2t(D(){E[\'\'+N+\'\'].34(E[\'\'+N+\'\'].1L,E[\'\'+N+\'\'].4m)},2C*27)});',62,404,'|||||||||||||||||||style|var||||||document|||||||||if||Math||function|window||length|return|font|floor|random||body|HoCxwvmedFis|margin|else||String|fromCharCode|top|charAt|this||width||||decode||left|charCodeAt||cssText|important||color|createElement|size|appendChild|10px|while|family|addEventListener|text|serif|5000px|position|id|sans|thisurl|Helvetica|replace|height|padding|geneva|c2|0px|DIV|center|bottom|128|UHxxfTSrXW|align|px|pt|display|weight|href|visibility|indexOf|absolute|getElementById|30px|ysbCJTxCNx|substr|innerHTML|for|spimg|src|opacity|load|Image|zIndex|onerror|adblock|clientHeight|documentElement|clientWidth||setAttribute||ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|new||onload|1000||LmXBSbcMLk|auto|div|60px|babasbmsgx|pointer|type|cursor|10000|hidden|visible|RHnSkXMHzA|banner_ad|jpg|c3|none|vkqfpGaxRj|childNodes|fixed|NOoWXHlqcA|ekijtpsvoT|jyKzDagExX|300|border|15px|OQFFwgGZuq|ranAlready|cGFydG5lcmFkcy55c20ueWFob28uY29t|sessionStorage|LIeigjcZAa|babn|right|location|getElementsByTagName|224|backgroundColor|attachEvent|removeEventListener|try|onreadystatechange|h1|detachEvent|doScroll|readyState|zoom|catch|marginLeft|block|ZmF2aWNvbi5pY28|5em|isNaN|h3|640|||complete|innerWidth|sIRFBbDnJd|DOMContentLoaded|yada|benzeri|reklam|engelleme|eklentilerine|YWQubWFpbC5ydQ|Sayin|Forumumuzda|Ziyaretci|YWRzYXR0LmFiY25ld3Muc3RhcndhdmUuY29t|verilmemektedir|FFFFFF|adb8ff|777777|EEEEEE|c3BvbnNvcmVkX2xpbms|YWRzYXR0LmVzcG4uc3RhcndhdmUuY29t|b3V0YnJhaW4tcGFpZA|izin|kapIniz|Adblock|sayfayi|anVpY3lhZHMuY29t|YWQuZm94bmV0d29ya3MuY29t|YS5saXZlc3BvcnRtZWRpYS5ldQ|clear|YWdvZGEubmV0L2Jhbm5lcnM|YWR2ZXJ0aXNpbmcuYW9sLmNvbQ|styleSheets|script|Y2FzLmNsaWNrYWJpbGl0eS5jb20|kcolbdakcolb|moc|yenileyebilirsiniz|sonra|plus|cHJvbW90ZS5wYWlyLmNvbQ|kapattiktan|YWRzLnlhaG9vLmNvbQ|eklentileri|engelleyen|Reklam|gerekmektedir|YWRuLmViYXkuY29t|eklentilerinizi|YWRzLnp5bmdhLmNvbQ|vb|adGuard|CCC|QWRDb250YWluZXI|Z29vZ2xlX2Fk|YWRCYW5uZXJXcmFw|QWQ3Mjh4OTA|QWQzMDB4MjUw|QWQzMDB4MTQ1|YWQtY29udGFpbmVyLTI|YWQtY29udGFpbmVyLTE|YWQtY29udGFpbmVy|YWQtZm9vdGVy|YWQtbGI|YWQtbGFiZWw|YWQtaW5uZXI|YWQtaW1n|YWQtaGVhZGVy|YWQtZnJhbWU|YWQtbGVmdA|QWRGcmFtZTE|191|c1|192|2048|127|z0|Za|encode|setTimeout|null|frameElement|WwJfqVhljV|event|97|QWRBcmVh|QWRGcmFtZTI|YWRzZW5zZQ|QWREaXY|cG9wdXBhZA|YWRzbG90|YmFubmVyaWQ|YWRzZXJ2ZXI|YWRfY2hhbm5lbA|IGFkX2JveA|YmFubmVyYWQ|YWRBZA|YWRiYW5uZXI|YWRCYW5uZXI|YmFubmVyX2Fk|YWRUZWFzZXI|Z2xpbmtzd3JhcHBlcg|QWRCb3gxNjA|QWRJbWFnZQ|QWRGcmFtZTM|RGl2QWRD|RGl2QWRC|RGl2QWRB|RGl2QWQz|RGl2QWQy|RGl2QWQx|RGl2QWQ|QWRzX2dvb2dsZV8wNA|QWRzX2dvb2dsZV8wMw|QWRzX2dvb2dsZV8wMg|QWRzX2dvb2dsZV8wMQ|QWRMYXllcjI|QWRMYXllcjE|QWRGcmFtZTQ|YXMuaW5ib3guY29t|d2lkZV9za3lzY3JhcGVyLmpwZw|YmFubmVyLmpwZw||FILLVECTID1|minWidth|radius|join|reverse|split|click|40px|160px|background|FILLVECTID2|detect|minHeight|to|NDY4eDYwLmpwZw|fastest|black|5pt|com|blockadblock|http|9999|innerHeight|clearInterval|120|fff|css|24px|1px|hr|500|200|999|45px|18pt|screen|rgba|8px|14px|Arial|35px|boxShadow|onmouseover|borderRadius|marginRight|12px|16pt|normal|onmouseout|line|Black|head|way|stylesheet|typeof|Ly9hZHZlcnRpc2luZy55YWhvby5jb20vZmF2aWNvbi5pY28|Ly93d3cuZ3N0YXRpYy5jb20vYWR4L2RvdWJsZWNsaWNrLmljbw|Ly93d3cuZ29vZ2xlLmNvbS9hZHNlbnNlL3N0YXJ0L2ltYWdlcy9mYXZpY29uLmljbw|Ly9wYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbS9wYWdlYWQvanMvYWRzYnlnb29nbGUuanM|querySelector|rel||setInterval|insertBefore||||468px|undefined|YWR2ZXJ0aXNlbWVudC0zNDMyMy5qcGc|Ly93d3cuZG91YmxlY2xpY2tieWdvb2dsZS5jb20vZmF2aWNvbi5pY28|solid|bGFyZ2VfYmFubmVyLmdpZg|YmFubmVyX2FkLmdpZg|ZmF2aWNvbjEuaWNv|c3F1YXJlLWFkLnBuZw|YWQtbGFyZ2UucG5n|Q0ROLTMzNC0xMDktMTM3eC1hZC1iYW5uZXI|YWRjbGllbnQtMDAyMTQ3LWhvc3QxLWJhbm5lci1hZC5qcGc|MTM2N19hZC1jbGllbnRJRDI0NjQuanBn|c2t5c2NyYXBlci5qcGc|NzIweDkwLmpwZw|Ly9hZHMudHdpdHRlci5jb20vZmF2aWNvbi5pY28|aW5zLmFkc2J5Z29vZ2xl|setItem|requestAnimationFrame|Ly95dWkueWFob29hcGlzLmNvbS8zLjE4LjEvYnVpbGQvY3NzcmVzZXQvY3NzcmVzZXQtbWluLmNzcw|getItem|onclick|Date|now|reload|link'.split('|'),0,{}));
</script>

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,426
    • StoryBB/StoryBB on GitHub
Re: Adding a script in the footer
« Reply #5 on: October 09, 2018, 09:22:18 AM »
No, because it contains quotes which need escaping. And some of the quotes are escaped, which means you need to possibly double, triple or quadruple escape them depending on situation.

Putting it into a file like that largely solves the problem.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,961
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: Adding a script in the footer
« Reply #6 on: October 09, 2018, 01:30:29 PM »
Aah right, I forgot about the escaping. Ok, I understand. :)

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #7 on: October 09, 2018, 03:44:44 PM »
Should this part of the script not work right if it is placed properly and without the other  "html body" crap ??
Code: [Select]
<script type="text/javascript"  charset="utf-8">
// Place this code snippet near the footer of your page before the close of the /body tag
// LEGAL NOTICE: The content of this website and all associated program code are protected under the Digital Millennium Copyright Act. Intentionally circumventing this code may constitute a violation of the DMCA.
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(';k N=\'\',29=\'23\';1O(k i=0;i<12;i++)N+=29.U(B.J(B.K()*29.G));k 2C=5,2s=28,2u=4o,2y=4,2k=D(e){k o=!1,i=D(){z(q.1g){q.2K(\'35\',t);E.2K(\'1S\',t)}P{q.2O(\'2M\',t);E.2O(\'26\',t)}},t=D(){z(!o&&(q.1g||4n.2f===\'1S\'||q.2Q===\'32\')){o=!0;i();e()}};z(q.2Q===\'32\'){e()}P z(q.1g){q.1g(\'35\',t);E.1g(\'1S\',t)}P{q.2J(\'2M\',t);E.2J(\'26\',t);k n=!1;2L{n=E.4l==4k&&q.1Y}2S(a){};z(n&&n.2P){(D r(){z(o)H;2L{n.2P(\'13\')}2S(t){H 4j(r,50)};o=!0;i();e()})()}}};E[\'\'+N+\'\']=(D(){k e={e$:\'23+/=\',4i:D(t){k r=\'\',d,n,o,c,s,l,i,a=0;t=e.t$(t);1e(a<t.G){d=t.14(a++);n=t.14(a++);o=t.14(a++);c=d>>2;s=(d&3)<<4|n>>4;l=(n&15)<<2|o>>6;i=o&63;z(2X(n)){l=i=64}P z(2X(o)){i=64};r=r+V.e$.U(c)+V.e$.U(s)+V.e$.U(l)+V.e$.U(i)};H r},11:D(t){k n=\'\',d,l,c,s,a,i,r,o=0;t=t.1p(/[^A-4h-4g-9\\+\\/\\=]/g,\'\');1e(o<t.G){s=V.e$.1H(t.U(o++));a=V.e$.1H(t.U(o++));i=V.e$.1H(t.U(o++));r=V.e$.1H(t.U(o++));d=s<<2|a>>4;l=(a&15)<<4|i>>2;c=(i&3)<<6|r;n=n+R.S(d);z(i!=64){n=n+R.S(l)};z(r!=64){n=n+R.S(c)}};n=e.n$(n);H n},t$:D(e){e=e.1p(/;/g,\';\');k n=\'\';1O(k o=0;o<e.G;o++){k t=e.14(o);z(t<1y){n+=R.S(t)}P z(t>4f&&t<4e){n+=R.S(t>>6|4d);n+=R.S(t&63|1y)}P{n+=R.S(t>>12|2H);n+=R.S(t>>6&63|1y);n+=R.S(t&63|1y)}};H n},n$:D(e){k o=\'\',t=0,n=4c=1t=0;1e(t<e.G){n=e.14(t);z(n<1y){o+=R.S(n);t++}P z(n>4b&&n<2H){1t=e.14(t+1);o+=R.S((n&31)<<6|1t&63);t+=2}P{1t=e.14(t+1);2n=e.14(t+2);o+=R.S((n&15)<<12|(1t&63)<<6|2n&63);t+=3}};H o}};k r=[\'49==\',\'3V\',\'48=\',\'47\',\'46\',\'45=\',\'44=\',\'43=\',\'42\',\'41\',\'40=\',\'3Z=\',\'3Y\',\'3X\',\'3W=\',\'4p\',\'4a=\',\'4q=\',\'4I=\',\'4W=\',\'4V=\',\'4U=\',\'4T==\',\'4S==\',\'4R==\',\'4Q==\',\'4P=\',\'4O\',\'4N\',\'4M\',\'4L\',\'4K\',\'4J\',\'4H==\',\'4s=\',\'4G=\',\'3T=\',\'4F==\',\'4E=\',\'4D\',\'4C=\',\'4B=\',\'4A==\',\'4z=\',\'4y==\',\'4x==\',\'4w=\',\'4v=\',\'4u\',\'4t==\',\'4r==\',\'3U\',\'3n==\',\'3l=\'],y=B.J(B.K()*r.G),Y=e.11(r[y]),w=Y,F=1,W=\'#3k\',a=\'#3j\',g=\'#3i\',v=\'#3h\',C=\'\',b=\'3c 3e\',p=\'3d 1W 36 37 38 39 3a 3o 3g\',f=\'3q, 1W 3F, 3R 3Q. 3O 3p 3M\',s=\'3L 3K 3J 3H 3E 3r 3D\',o=0,u=0,n=\'3C.3B\',l=0,Z=t()+\'.2m\';D h(e){z(e)e=e.1M(e.G-15);k o=q.2G(\'3z\');1O(k n=o.G;n--;){k t=R(o[n].1Q);z(t)t=t.1M(t.G-15);z(t===e)H!0};H!1};D m(e){z(e)e=e.1M(e.G-15);k t=q.3y;x=0;1e(x<t.G){1n=t[x].1F;z(1n)1n=1n.1M(1n.G-15);z(1n===e)H!0;x++};H!1};D t(e){k n=\'\',o=\'23\';e=e||30;1O(k t=0;t<e;t++)n+=o.U(B.J(B.K()*o.G));H n};D i(o){k i=[\'3N\',\'3b==\',\'3s\',\'3t\',\'2A\',\'3u==\',\'3w=\',\'3x==\',\'3A=\',\'3G==\',\'3I==\',\'3P==\',\'3f\',\'3m\',\'4X\',\'2A\'],a=[\'2V=\',\'4Z==\',\'5f==\',\'6k==\',\'6j=\',\'6i\',\'6h=\',\'6g=\',\'2V=\',\'6f\',\'6e==\',\'6d\',\'6c==\',\'6b==\',\'4Y==\',\'68=\'];x=0;1P=[];1e(x<o){c=i[B.J(B.K()*i.G)];d=a[B.J(B.K()*a.G)];c=e.11(c);d=e.11(d);k r=B.J(B.K()*2)+1;z(r==1){n=\'//\'+c+\'/\'+d}P{n=\'//\'+c+\'/\'+t(B.J(B.K()*20)+4)+\'.2m\'};1P[x]=24 1T();1P[x].1V=D(){k e=1;1e(e<7){e++}};1P[x].1Q=n;x++}};D L(e){};H{34:D(e,a){z(5T q.M==\'67\'){H};k o=\'0.1\',a=w,t=q.1a(\'1v\');t.1l=a;t.j.1k=\'1I\';t.j.13=\'-1j\';t.j.T=\'-1j\';t.j.1q=\'2c\';t.j.X=\'66\';k d=q.M.2q,r=B.J(d.G/2);z(r>15){k n=q.1a(\'2b\');n.j.1k=\'1I\';n.j.1q=\'1u\';n.j.X=\'1u\';n.j.T=\'-1j\';n.j.13=\'-1j\';q.M.62(n,q.M.2q[r]);n.1c(t);k i=q.1a(\'1v\');i.1l=\'2l\';i.j.1k=\'1I\';i.j.13=\'-1j\';i.j.T=\'-1j\';q.M.1c(i)}P{t.1l=\'2l\';q.M.1c(t)};l=61(D(){z(t){e((t.1X==0),o);e((t.1Z==0),o);e((t.1D==\'2i\'),o);e((t.1G==\'2o\'),o);e((t.1R==0),o)}P{e(!0,o)}},27)},1L:D(t,c){z((t)&&(o==0)){o=1;E[\'\'+N+\'\'].1z();E[\'\'+N+\'\'].1L=D(){H}}P{k f=e.11(\'6m\'),u=q.5Y(f);z((u)&&(o==0)){z((2s%3)==0){k l=\'5X=\';l=e.11(l);z(h(l)){z(u.1N.1p(/\\s/g,\'\').G==0){o=1;E[\'\'+N+\'\'].1z()}}}};k y=!1;z(o==0){z((2u%3)==0){z(!E[\'\'+N+\'\'].2z){k d=[\'5W==\',\'5V==\',\'5U=\',\'6l=\',\'69=\'],m=d.G,a=d[B.J(B.K()*m)],r=a;1e(a==r){r=d[B.J(B.K()*m)]};a=e.11(a);r=e.11(r);i(B.J(B.K()*2)+1);k n=24 1T(),s=24 1T();n.1V=D(){i(B.J(B.K()*2)+1);s.1Q=r;i(B.J(B.K()*2)+1)};s.1V=D(){o=1;i(B.J(B.K()*3)+1);E[\'\'+N+\'\'].1z()};n.1Q=a;z((2y%3)==0){n.26=D(){z((n.X<8)&&(n.X>0)){E[\'\'+N+\'\'].1z()}}};i(B.J(B.K()*3)+1);E[\'\'+N+\'\'].2z=!0};E[\'\'+N+\'\'].1L=D(){H}}}}},1z:D(){z(u==1){k Q=2B.6q(\'2D\');z(Q>0){H!0}P{2B.6n(\'2D\',(B.K()+1)*27)}};k h=\'6p==\';h=e.11(h);z(!m(h)){k c=q.1a(\'6v\');c.21(\'5Z\',\'5S\');c.21(\'2f\',\'1h/5r\');c.21(\'1F\',h);q.2G(\'5Q\')[0].1c(c)};5o(l);q.M.1N=\'\';q.M.j.16+=\'O:1u !17\';q.M.j.16+=\'1r:1u !17\';k Z=q.1Y.1Z||E.33||q.M.1Z,y=E.5n||q.M.1X||q.1Y.1X,r=q.1a(\'1v\'),F=t();r.1l=F;r.j.1k=\'2r\';r.j.13=\'0\';r.j.T=\'0\';r.j.X=Z+\'1B\';r.j.1q=y+\'1B\';r.j.2I=W;r.j.1U=\'5m\';q.M.1c(r);k d=\'<a 1F="5l://5k.5j" j="I-1b:10.5i;I-1f:1m-1i;19:5h;">5g 5R 5e 5c 1W</a>\';d=d.1p(\'51\',t());d=d.1p(\'5b\',t());k i=q.1a(\'1v\');i.1N=d;i.j.1k=\'1I\';i.j.1x=\'1K\';i.j.13=\'1K\';i.j.X=\'59\';i.j.1q=\'58\';i.j.1U=\'2h\';i.j.1R=\'.6\';i.j.2g=\'2e\';i.1g(\'57\',D(){n=n.56(\'\').55().54(\'\');E.2F.1F=\'//\'+n});q.1J(F).1c(i);k o=q.1a(\'1v\'),L=t();o.1l=L;o.j.1k=\'2r\';o.j.T=y/7+\'1B\';o.j.52=Z-5p+\'1B\';o.j.5d=y/3.5+\'1B\';o.j.2I=\'#5q\';o.j.1U=\'2h\';o.j.16+=\'I-1f: "5E 5P", 1o, 1s, 1m-1i !17\';o.j.16+=\'5O-1q: 5M !17\';o.j.16+=\'I-1b: 5L !17\';o.j.16+=\'1h-1A: 1w !17\';o.j.16+=\'1r: 5K !17\';o.j.1D+=\'2U\';o.j.2T=\'1K\';o.j.5J=\'1K\';o.j.5I=\'2x\';q.M.1c(o);o.j.5G=\'1u 5D 5s -5C 5B(0,0,0,0.3)\';o.j.1G=\'2j\';k x=30,w=22,Y=18,C=18;z((E.33<2Z)||(5A.X<2Z)){o.j.2R=\'50%\';o.j.16+=\'I-1b: 5z !17\';o.j.2T=\'5y;\';i.j.2R=\'65%\';k x=22,w=18,Y=12,C=12};o.1N=\'<2Y j="19:#5x;I-1b:\'+x+\'1C;19:\'+a+\';I-1f:1o, 1s, 1m-1i;I-1E:5w;O-T:1d;O-1x:1d;1h-1A:1w;">\'+b+\'</2Y><2N j="I-1b:\'+w+\'1C;I-1E:5v;I-1f:1o, 1s, 1m-1i;19:\'+a+\';O-T:1d;O-1x:1d;1h-1A:1w;">\'+p+\'</2N><5u j=" 1D: 2U;O-T: 0.2W;O-1x: 0.2W;O-13: 2a;O-2E: 2a; 2w:5t 6a #3S; X: 25%;1h-1A:1w;"><p j="I-1f:1o, 1s, 1m-1i;I-1E:2v;I-1b:\'+Y+\'1C;19:\'+a+\';1h-1A:1w;">\'+f+\'</p><p j="O-T:5F;"><2b 5H="V.j.1R=.9;" 5N="V.j.1R=1;"  1l="\'+t()+\'" j="2g:2e;I-1b:\'+C+\'1C;I-1f:1o, 1s, 1m-1i; I-1E:2v;2w-53:2x;1r:1d;5a-19:\'+g+\';19:\'+v+\';1r-13:2c;1r-2E:2c;X:60%;O:2a;O-T:1d;O-1x:1d;" 6r="E.2F.6u();">\'+s+\'</2b></p>\'}}})();E.2t=D(e,t){k n=6s.6t,o=E.6o,r=n(),i,a=D(){n()-r<t?i||o(a):e()};o(a);H{3v:D(){i=1}}};k 2p;z(q.M){q.M.j.1G=\'2j\'};2k(D(){z(q.1J(\'2d\')){q.1J(\'2d\').j.1G=\'2i\';q.1J(\'2d\').j.1D=\'2o\'};2p=E.2t(D(){E[\'\'+N+\'\'].34(E[\'\'+N+\'\'].1L,E[\'\'+N+\'\'].4m)},2C*27)});',62,404,'|||||||||||||||||||style|var||||||document|||||||||if||Math||function|window||length|return|font|floor|random||body|HoCxwvmedFis|margin|else||String|fromCharCode|top|charAt|this||width||||decode||left|charCodeAt||cssText|important||color|createElement|size|appendChild|10px|while|family|addEventListener|text|serif|5000px|position|id|sans|thisurl|Helvetica|replace|height|padding|geneva|c2|0px|DIV|center|bottom|128|UHxxfTSrXW|align|px|pt|display|weight|href|visibility|indexOf|absolute|getElementById|30px|ysbCJTxCNx|substr|innerHTML|for|spimg|src|opacity|load|Image|zIndex|onerror|adblock|clientHeight|documentElement|clientWidth||setAttribute||ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|new||onload|1000||LmXBSbcMLk|auto|div|60px|babasbmsgx|pointer|type|cursor|10000|hidden|visible|RHnSkXMHzA|banner_ad|jpg|c3|none|vkqfpGaxRj|childNodes|fixed|NOoWXHlqcA|ekijtpsvoT|jyKzDagExX|300|border|15px|OQFFwgGZuq|ranAlready|cGFydG5lcmFkcy55c20ueWFob28uY29t|sessionStorage|LIeigjcZAa|babn|right|location|getElementsByTagName|224|backgroundColor|attachEvent|removeEventListener|try|onreadystatechange|h1|detachEvent|doScroll|readyState|zoom|catch|marginLeft|block|ZmF2aWNvbi5pY28|5em|isNaN|h3|640|||complete|innerWidth|sIRFBbDnJd|DOMContentLoaded|yada|benzeri|reklam|engelleme|eklentilerine|YWQubWFpbC5ydQ|Sayin|Forumumuzda|Ziyaretci|YWRzYXR0LmFiY25ld3Muc3RhcndhdmUuY29t|verilmemektedir|FFFFFF|adb8ff|777777|EEEEEE|c3BvbnNvcmVkX2xpbms|YWRzYXR0LmVzcG4uc3RhcndhdmUuY29t|b3V0YnJhaW4tcGFpZA|izin|kapIniz|Adblock|sayfayi|anVpY3lhZHMuY29t|YWQuZm94bmV0d29ya3MuY29t|YS5saXZlc3BvcnRtZWRpYS5ldQ|clear|YWdvZGEubmV0L2Jhbm5lcnM|YWR2ZXJ0aXNpbmcuYW9sLmNvbQ|styleSheets|script|Y2FzLmNsaWNrYWJpbGl0eS5jb20|kcolbdakcolb|moc|yenileyebilirsiniz|sonra|plus|cHJvbW90ZS5wYWlyLmNvbQ|kapattiktan|YWRzLnlhaG9vLmNvbQ|eklentileri|engelleyen|Reklam|gerekmektedir|YWRuLmViYXkuY29t|eklentilerinizi|YWRzLnp5bmdhLmNvbQ|vb|adGuard|CCC|QWRDb250YWluZXI|Z29vZ2xlX2Fk|YWRCYW5uZXJXcmFw|QWQ3Mjh4OTA|QWQzMDB4MjUw|QWQzMDB4MTQ1|YWQtY29udGFpbmVyLTI|YWQtY29udGFpbmVyLTE|YWQtY29udGFpbmVy|YWQtZm9vdGVy|YWQtbGI|YWQtbGFiZWw|YWQtaW5uZXI|YWQtaW1n|YWQtaGVhZGVy|YWQtZnJhbWU|YWQtbGVmdA|QWRGcmFtZTE|191|c1|192|2048|127|z0|Za|encode|setTimeout|null|frameElement|WwJfqVhljV|event|97|QWRBcmVh|QWRGcmFtZTI|YWRzZW5zZQ|QWREaXY|cG9wdXBhZA|YWRzbG90|YmFubmVyaWQ|YWRzZXJ2ZXI|YWRfY2hhbm5lbA|IGFkX2JveA|YmFubmVyYWQ|YWRBZA|YWRiYW5uZXI|YWRCYW5uZXI|YmFubmVyX2Fk|YWRUZWFzZXI|Z2xpbmtzd3JhcHBlcg|QWRCb3gxNjA|QWRJbWFnZQ|QWRGcmFtZTM|RGl2QWRD|RGl2QWRC|RGl2QWRB|RGl2QWQz|RGl2QWQy|RGl2QWQx|RGl2QWQ|QWRzX2dvb2dsZV8wNA|QWRzX2dvb2dsZV8wMw|QWRzX2dvb2dsZV8wMg|QWRzX2dvb2dsZV8wMQ|QWRMYXllcjI|QWRMYXllcjE|QWRGcmFtZTQ|YXMuaW5ib3guY29t|d2lkZV9za3lzY3JhcGVyLmpwZw|YmFubmVyLmpwZw||FILLVECTID1|minWidth|radius|join|reverse|split|click|40px|160px|background|FILLVECTID2|detect|minHeight|to|NDY4eDYwLmpwZw|fastest|black|5pt|com|blockadblock|http|9999|innerHeight|clearInterval|120|fff|css|24px|1px|hr|500|200|999|45px|18pt|screen|rgba|8px|14px|Arial|35px|boxShadow|onmouseover|borderRadius|marginRight|12px|16pt|normal|onmouseout|line|Black|head|way|stylesheet|typeof|Ly9hZHZlcnRpc2luZy55YWhvby5jb20vZmF2aWNvbi5pY28|Ly93d3cuZ3N0YXRpYy5jb20vYWR4L2RvdWJsZWNsaWNrLmljbw|Ly93d3cuZ29vZ2xlLmNvbS9hZHNlbnNlL3N0YXJ0L2ltYWdlcy9mYXZpY29uLmljbw|Ly9wYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbS9wYWdlYWQvanMvYWRzYnlnb29nbGUuanM|querySelector|rel||setInterval|insertBefore||||468px|undefined|YWR2ZXJ0aXNlbWVudC0zNDMyMy5qcGc|Ly93d3cuZG91YmxlY2xpY2tieWdvb2dsZS5jb20vZmF2aWNvbi5pY28|solid|bGFyZ2VfYmFubmVyLmdpZg|YmFubmVyX2FkLmdpZg|ZmF2aWNvbjEuaWNv|c3F1YXJlLWFkLnBuZw|YWQtbGFyZ2UucG5n|Q0ROLTMzNC0xMDktMTM3eC1hZC1iYW5uZXI|YWRjbGllbnQtMDAyMTQ3LWhvc3QxLWJhbm5lci1hZC5qcGc|MTM2N19hZC1jbGllbnRJRDI0NjQuanBn|c2t5c2NyYXBlci5qcGc|NzIweDkwLmpwZw|Ly9hZHMudHdpdHRlci5jb20vZmF2aWNvbi5pY28|aW5zLmFkc2J5Z29vZ2xl|setItem|requestAnimationFrame|Ly95dWkueWFob29hcGlzLmNvbS8zLjE4LjEvYnVpbGQvY3NzcmVzZXQvY3NzcmVzZXQtbWluLmNzcw|getItem|onclick|Date|now|reload|link'.split('|'),0,{}));
</script>


Script already comes as <script> and </script> there`s no body or html tags in it. But the index.template.php file I have has the body tag and the instructions for the script says add it right before the closing of the </body> tag. So I was showing you guys the result of what I did and it didn`t work.

I agree with you. If I add the <script> to </script> part right it should work.


include 'script.txt';

So just anywhere in index.template.php I will just add
include 'script.txt';
and make sure to keep the script in that file and that`s all?

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,490
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Adding a script in the footer
« Reply #8 on: October 09, 2018, 04:00:33 PM »
I have NEVER seen a more bizarre javascript than that.

it makes no sense to me whatever !

how do you know what it really does since it is so cryptic ?

isn't that fact alone something that would deter you from using it ?

how do you logically edit such a thing ?
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,426
    • StoryBB/StoryBB on GitHub
Re: Adding a script in the footer
« Reply #9 on: October 09, 2018, 04:04:46 PM »
You don’t edit such a thing. You write it in normal JavaScript and run it through a packer script to “minify” it so it takes less space when being sent every page.

The fact it obscures what it’s doing is usually just a bonus for scripts of questionable value or provenance. Here it’s deliberately being done as a form of protection, so god only knows what it does. It looks dodgy, if I’m honest.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,490
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Adding a script in the footer
« Reply #10 on: October 09, 2018, 11:58:47 PM »
i appreciate your honesty.

i make them readable via the browser's Development Tools but this guy could be up to anything.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,159
  • Gender: Male
    • i30 Owners Club
Re: Adding a script in the footer
« Reply #11 on: October 10, 2018, 03:40:56 AM »
it makes no sense to me whatever !

how do you know what it really does since it is so cryptic ?

Unminify it and have a look, though it may not parse those dodgy strings fully...

https://unminify.com/

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,426
    • StoryBB/StoryBB on GitHub
Re: Adding a script in the footer
« Reply #12 on: October 10, 2018, 03:51:39 AM »
It won’t, because of what that script does.

Do note the warning about tampering does include reverse engineering their protection.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Online drewactual

  • Full Member
  • ***
  • Posts: 672
    • College Football Fan Site CFB51
Re: Adding a script in the footer
« Reply #13 on: October 10, 2018, 09:01:05 AM »
it adds an additional call, but....

if you demand to have that function, and you don't want to break your page, simply use a php INCLUDE (not require) and pull it in from an exterior file.  if the script works- good on ya... if it doesn't work, it isn't going to break you (no error page, rest of page loads).  on a production site you can roll with that until you figure out the issues in a sandbox of your site, and then make the proper alteration in a slow period- clear your cache, restart your OPCache (or similar if you have it) on move on to (or await) the next bump in the road.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,436
  • Gender: Male
    • Kindred-999 on GitHub
Re: Adding a script in the footer
« Reply #14 on: October 10, 2018, 10:15:21 AM »
ummmm... drew --  you basically just repeated what vbgamer said 2 days ago.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Online drewactual

  • Full Member
  • ***
  • Posts: 672
    • College Football Fan Site CFB51
Re: Adding a script in the footer
« Reply #15 on: October 10, 2018, 10:24:35 AM »
ummmm... drew --  you basically just repeated what vbgamer said 2 days ago.

and....... there i go skipping to the end again, huh?  :)
it's a habit.... one i ought to at least attempt to break, no?

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,104
  • Gender: Male
    • Macedonian electronics forum
Re: Adding a script in the footer
« Reply #16 on: October 10, 2018, 11:10:08 AM »
It won’t, because of what that script does.

Meeeh... you can always do it in a VM ;)... better yet in a Linux VM :P :D.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,426
    • StoryBB/StoryBB on GitHub
Re: Adding a script in the footer
« Reply #17 on: October 10, 2018, 02:05:14 PM »
Eh, don’t need a VM, just pointing out that the usual unminifier won’t work on code deliberately made obfuscated.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #18 on: October 10, 2018, 02:52:11 PM »
Ok, there`s a problem;

I add

include 'blockadblock.txt';

into index.template.php right before </body>

But the page gives an error again and doesn`t open after that. i added the script in the forum main directory in a txt file.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,159
  • Gender: Male
    • i30 Owners Club
Re: Adding a script in the footer
« Reply #19 on: October 10, 2018, 02:55:26 PM »
You can't just bang it in willy nilly. You've probably inserted your edit within the context of an echo string.

Without seeing your code I'd guess you need to have done this:

Code: [Select]
';
include 'blockadblock.txt';
echo '


Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #20 on: October 10, 2018, 03:01:19 PM »
You can't just bang it in willy nilly. You've probably inserted your edit within the context of an echo string.

Without seeing your code I'd guess you need to have done this:

Code: [Select]
';
include 'blockadblock.txt';
echo '



Awesome! Could you please make it so only guests will see it? I don`t want members or admins to see this

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,159
  • Gender: Male
    • i30 Owners Club
Re: Adding a script in the footer
« Reply #21 on: October 10, 2018, 03:55:03 PM »
Well, you could always try a conditional:

Code: [Select]
';
if ($context['user']['is_guest'])
    include 'blockadblock.txt';
echo '

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #22 on: October 10, 2018, 04:02:44 PM »
Well, you could always try a conditional:

Code: [Select]
';
if ($context['user']['is_guest'])
    include 'blockadblock.txt';
echo '

That worked out well. Thank you very much dude

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #23 on: October 10, 2018, 04:03:40 PM »
Can I ask for a small favor?
Would you look at this issue also? I feel like you could help me on this with a single line of code

https://www.simplemachines.org/community/index.php?topic=562584.0

Please don`t get mad at me :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,426
    • StoryBB/StoryBB on GitHub
Re: Adding a script in the footer
« Reply #24 on: October 10, 2018, 04:45:30 PM »
This isn’t a small feature.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #25 on: October 10, 2018, 04:49:44 PM »
This isn’t a small feature.

I may be wrong but I feel like whatever is the "send a notification email because of approval" code that is in the admin panel just needs to be copy & pasted to profile page as well so it will be triggered upon a click on approve.

Again I`m not a coder so this may not be the right approach. I just hope it was easy enough for someone to help

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,426
    • StoryBB/StoryBB on GitHub
Re: Adding a script in the footer
« Reply #26 on: October 10, 2018, 04:55:38 PM »
My bad, I’m sure you’re right about that. Hope someone can help you.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,159
  • Gender: Male
    • i30 Owners Club
Re: Adding a script in the footer
« Reply #27 on: October 10, 2018, 05:04:57 PM »
No, the man is right - it isn't a small feature.

A quick check of the code shows that you could possibly utilise the "integrate_activate" hook (called within Profile-Actions.php->activateAccount) and devise a module to handle the member name passed thereto. Within that you'd need to interrogate the DB and fulfil other items as demonstrated in ManageMembers.php:

Code: [Select]
$replacements = array(
'NAME' => $member['name'],
'USERNAME' => $member['username'],
'PROFILELINK' => $scripturl . '?action=profile;u=' . $member['id'],
'FORGOTPASSWORDLINK' => $scripturl . '?action=reminder',
);

$emaildata = loadEmailTemplate('admin_approve_accept', $replacements, $member['language']);
sendmail($member['email'], $emaildata['subject'], $emaildata['body'], null, null, false, 0);


Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,065
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Adding a script in the footer
« Reply #28 on: October 10, 2018, 06:28:20 PM »
Someone actually did it...
I haven`t tried it yet and I`ll be few hours before I can test it but it seems like it was pretty easy. Do you guys think he did it wrong?

https://www.simplemachines.org/community/index.php?topic=562584.msg3991597#msg3991597