• Page 1 of 1
  • 1
Forum moderator: bigblog  
<?substr('</head>',9)?" is error !
KelvinGari7774
Posts: 10
Reputation: 0

Message # 1 | 8:34 PM
When I use <?substr('</head>',9)?> , all the sites impacted by this code pops up "', 9)?>" (off ads) at the top. It pushed down content about 30px .

sorry. my english is not good tongue
Attachments: 6907205.jpg (35.8 Kb)
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 2 | 9:07 PM
Try to use:
Code
<?substr('&lt;/head&gt;',13)?>

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
KelvinGari7774
Posts: 10
Reputation: 0

Message # 3 | 7:00 AM
It has improved. But still appeared ">" .I think need to fix this. Because if you do not use the code? Substr? it will cause problems for others
Post edited by KelvinGari7774 - Sunday, 2014-10-12, 7:02 AM
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 4 | 1:33 PM
KelvinGari7774, why do you want to put </head> into <?substr?> ?
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
Good
Posts: 365
Reputation: 12

Message # 5 | 2:53 PM
Quote KelvinGari7774 ()
When I use <?substr('</head>',9)?> , all the sites impacted by this code pops up "', 9)?>" (off ads) at the top. It pushed down content about 30px .


Ohh, I also had problem with this issue yesterday.

It seems uCoz had already updated something so this code did not work.

But I think this one can help you~~

Code

<?substr('</head>


I tried and it worked.

Demo http://tamlinh.ucoz.com/stuff/

PS: It's so surprise.

Added (2014-10-12, 8:53 AM)
---------------------------------------------
That we have the same problem on the same day smile

KelvinGari7774
Posts: 10
Reputation: 0

Message # 6 | 6:12 PM
bigblog :my script that conflict with the system scripts and I want to delete some unnecessary code(layer6.css , layer6.js ...) to speed up page load

Good: oh it worked. But I'm not sure how long it exists. Nhưng dù sao cũng cảm ơn bác Lanh
biggrin
Post edited by KelvinGari7774 - Sunday, 2014-10-12, 6:14 PM
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 7 | 6:27 PM
KelvinGari7774, if you want to delete system resources, just simply replace:

Code
</head>


with this code:

Code
</<?'head'?>>


and

Code
</title>


with this:

Code
</<?'title'?>>

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
KelvinGari7774
Posts: 10
Reputation: 0

Message # 8 | 8:18 AM
Thanks ! it worked happy
  • Page 1 of 1
  • 1
Search: