[solve] when i add code in pages, my forum get scramble

Discussion forum for MOD Writers regarding MOD Development.
amiaz10
Registered User
Posts: 14
Joined: Sun May 03, 2015 8:46 pm

[solve] when i add code in pages, my forum get scramble

Post by amiaz10 »

hellow evrey one.
i use the dualcore style that is base on prosilver.
when i add the code-

Code: Select all

<script type='text/javascript'>if (top !== self) top.location.href = self.location.href;</script>
in the top of the prosilver pages, some items get scramble.
1. in viewonline, the font get large.
2. in login the tablets move.
3.in ucp cant see the full icons.

if any one can help me use the scrit witout messing my forum up..
thanks.
Last edited by amiaz10 on Wed May 27, 2015 9:33 pm, edited 1 time in total.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: when i add code in pages, my forum get scramble

Post by david63 »

And what is it that this piece of code is supposed to do?

A Google search would seem to indicate that it either does not work or causes problems.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
amiaz10
Registered User
Posts: 14
Joined: Sun May 03, 2015 8:46 pm

Re: when i add code in pages, my forum get scramble

Post by amiaz10 »

the code make oter sites that put my forum in a iframe to brake out from it..
and use the original tab, insted of the iframe thuy put.
i use it to show spesific parts of my forum in the iframe but the moment thy press any thing in the iframe the iframe brakes, and it open in the original tab.

i manage to fix it, insert the script in the bottom of the page, and it work like magic.

thanks.

Return to “[3.0.x] MOD Writers Discussion”