• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » uCoz adding self-scripts after installing FancyBox! (Is there any way of removing them?)
uCoz adding self-scripts after installing FancyBox!
Skan
Posts: 43
Reputation: 0

Message # 1 | 7:38 AM
Hello,

I have this website here: http://thc-racing.ucoz.com/index/gallery/0-9
I've been trying to move the fancybox script/css file coding on the page and not in the header, but it seems that i can't do it because uCoz adds its own scripts which deny me of doing that.

These are the lines added by uCoz:
Code
<link href="http://s57.ucoz.net/src/ulightbox/ulightbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://s57.ucoz.net/src/ulightbox/ulightbox.js"></script>


Is there any way of removing them? or disable them via html/css? Got the CSS file which i needed from the uCoz server and edited for my needs but after adding it to the page the website seems to load then ignore mine.

Any help would be really appreciated. Thanks!
Post edited by Skan - Tuesday, 2013-08-20, 7:38 AM
DanielM
Posts: 86
Reputation: 0

Message # 2 | 7:56 AM
Please post a screenshot of where the problem is wink
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 3 | 7:57 AM
Skan, as far as I am aware there isn't any way to do this as they are directly embedded at a server level. I will talk to our technical division about this and see if there is a solution. Why, however, do you need to move these scripts?
Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Skan
Posts: 43
Reputation: 0

Message # 4 | 8:27 AM
Paradox, Well, I want to do designing by my own, I realised that this feature is a nice one but it should be an option anywhere to remove scripts which I don't like (i.e. fancybox). I can't modify anything related to fancybox, and I would also have wanted to move the scripts only on that page and not in the header for all the pages as i don't want the fancybox to be loaded all the time, just when it's needed.

Added (2013-08-20, 2:27 AM)
---------------------------------------------
Quote (DanielM)
Please post a screenshot of where the problem is

Well, I can't do that can't I? You can't see the problem but it's there, in the code which i posted previously.
Post edited by Skan - Tuesday, 2013-08-20, 8:42 AM
Sunny
Posts: 9296
Reputation: 456

Message # 5 | 10:59 AM
Skan, uJS is used before the closing head tag, you can use the following methods to hide it:

Code
<?substr('</head>',9)?>


Code
<?substr('</head>',strpos('</head>','/head>')-1)?>


Code
</head<?'>'?>


If necessary, the same methods can be used for other tags, before which uJS is used. Please note that half of the features on your website might stop working after this.

I'm not active on the forum anymore. Please contact other forum staff.
PixelKhaos
Posts: 636
Reputation: 26

Message # 6 | 5:40 PM
Skan, if you're simply customizing the fancybox, you can install it one the side, and use different CSS.
Then you'd just need to define classes in the html.

So you don't need to replace anything, just install it with different names of classes and such.

Proud uCoz user since 2006
Freelance designer - http://pixelkhaos.com
PixelKhaos on twitter - @PixelKhaos

I can help you develop your site for a small fee.
Skan
Posts: 43
Reputation: 0

Message # 7 | 6:44 PM
Sunny, Works, thanks!
Post edited by Skan - Tuesday, 2013-08-20, 6:44 PM
uCoz Community » For Webmasters » Custom Solutions » uCoz adding self-scripts after installing FancyBox! (Is there any way of removing them?)
  • Page 1 of 1
  • 1
Search: