problem at posting_body adding a Script Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    problem at posting_body adding a Script

    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved problem at posting_body adding a Script

    Post by Michael_vx Tue 30 Aug 2016 - 15:43

    trying to add the Script
    http://pastebin.com/7vAScdYh
    into the posting _body template
    but it fails the template refuse even a letter at line 990
    is there a way to fix that
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: problem at posting_body adding a Script

    Post by Ange Tuteur Tue 30 Aug 2016 - 17:01

    Hi @Michael_vx,

    It appears the template is too big. You can try minifying it :
    http://www.willpeavy.com/minifier/

    Another solution would be to optimize it by replacing unnecessary style attributes with class names. Like these :
    Code:
    style="font-stretch: normal; font-size: 11pt; border: 2px groove; padding: 6px; width: 100%; background: rgb(225, 225, 226);"
    Those are taking up a lot of space and would be better added in the stylesheet.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: problem at posting_body adding a Script

    Post by Michael_vx Wed 31 Aug 2016 - 8:53

    even with minifying it still wont help
    as my anylize
    the max size for that template was 65.3 KB as a txt file
    the Script size in txt is about 90 KB before minifying
    after minifying 70 KB
    ok now i have one of 2
    1 - is a way to let the Script load from out side like the LG like system but i have no idea about HTML since the LG like system is a Java
    2 - is try to do as you said and spare the styling into CSS
    if the line 1 cant be done then topic is closed Smile
    thanks so much in advance
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: problem at posting_body adding a Script

    Post by Ange Tuteur Wed 31 Aug 2016 - 18:01

    1. Unfortunately template-wise it's not entirely possible to replace the entire HTML on the page, because there's two problems :
    - It can be VERY heavy
    - There's no way for us to parse the template variables client-side

    Number 2 would be your best option of minifying the size of this template.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: problem at posting_body adding a Script

    Post by Michael_vx Thu 1 Sep 2016 - 3:37

    since the Master of Scripts said
    - There's no way for us to parse the template variables client-side
    i trust what you say
    Topic is done
    solved to me
    Archive it or grabag it Smile
    thank you
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51497
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: problem at posting_body adding a Script

    Post by SLGray Thu 1 Sep 2016 - 3:54

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    problem at posting_body adding a Script Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.