Your Time:
Our Time:
← Back to discussions

skin.php and options

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 8 replies, 2 voices, and was last updated 3 years, 9 months ago by Fem.

  • 2022-11-08 at 12:37 pm
    Unknown Support Status
    #28657
    insecttrojan
    Participant
    • Topics: 12
    • Replies: 21
    • Total posts: 33
    • Post count: 37

    hello i need help on skin.php when the values on options is not set it prints css empty like before . How can i add a code it tells when the values of options is empty to not print the css from options ? thanks a lot

    Error: CSS: font-size: Parse Error.

    At line 37, column 27

    le a{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 37, column 35

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 37, column 49

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 37, column 62

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 37, column 76

    e:; font-weight:;} ↩h2#site-de

    Error: CSS: font-size: Parse Error.

    At line 38, column 31

    tion{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 38, column 39

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 38, column 53

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 38, column 66

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 38, column 80

    e:; font-weight:;} ↩body{ back

    Error: CSS: background-color: Parse Error.

    At line 39, column 49

    ackground-color:; background-p

    Error: CSS: background-color: Parse Error.

    At line 43, column 55

    ackground-color:; background-p

    Error: CSS: background-color: Parse Error.

    At line 44, column 52

    ackground-color:; background-p

    Error: CSS: padding-top: Parse Error.

    At line 45, column 24

    er{ padding-top:; padding-bott

    Error: CSS: padding-bottom: Parse Error.

    At line 45, column 41

    padding-bottom:; } ↩.logo{ ma

    Error: CSS: color: Parse Error.

    At line 52, column 26

    ize:34px; color:; line-height:

    Error: CSS: font-size: Parse Error.

    At line 53, column 14

    ↩h2{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 53, column 22

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 53, column 36

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 53, column 49

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 53, column 63

    e:; font-weight:;} ↩h3{ font-s

    Error: CSS: font-size: Parse Error.

    At line 54, column 14

    ↩h3{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 54, column 22

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 54, column 36

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 54, column 49

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 54, column 63

    e:; font-weight:;} ↩h4{ font-s

    Error: CSS: font-size: Parse Error.

    At line 55, column 14

    ↩h4{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 55, column 22

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 55, column 36

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 55, column 49

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 55, column 63

    e:; font-weight:;} ↩h5{ font-s

    Error: CSS: font-size: Parse Error.

    At line 56, column 14

    ↩h5{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 56, column 22

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 56, column 36

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 56, column 49

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 56, column 63

    e:; font-weight:;} ↩h6{ font-s

    Error: CSS: font-size: Parse Error.

    At line 57, column 14

    ↩h6{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 57, column 22

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 57, column 36

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 57, column 49

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 57, column 63

    e:; font-weight:;} ↩.widget-ti

    Error: CSS: font-size: Parse Error.

    At line 58, column 25

    itle{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 58, column 33

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 58, column 47

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 58, column 60

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 58, column 74

    e:; font-weight:;} ↩#footer .w

    Error: CSS: font-size: Parse Error.

    At line 59, column 33

    itle{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 59, column 41

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 59, column 55

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 59, column 68

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 59, column 82

    e:; font-weight:;} ↩#footer{ f

    Error: CSS: font-size: Parse Error.

    At line 60, column 19

    oter{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 60, column 27

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 60, column 41

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 60, column 54

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 60, column 68

    e:; font-weight:;} ↩#footer .c

    Error: CSS: font-size: Parse Error.

    At line 61, column 30

    ight{ font-size:; color:; line

    Error: CSS: color: Parse Error.

    At line 61, column 38

    nt-size:; color:; line-height:

    Error: CSS: line-height: Parse Error.

    At line 61, column 52

    r:; line-height:; font-style:;

    Error: CSS: font-style: Parse Error.

    At line 61, column 65

    ht:; font-style:; font-weight:

    Error: CSS: font-weight: Parse Error.

    At line 61, column 79

    e:; font-weight:;} ↩.iva-date-

    Error: CSS: color: Parse Error.

    At line 63, column 29

    et-title{ color:; } ↩.rightsid

    2022-11-17 at 3:11 pm
    #28658
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Thanks for the information. Will update the coding and let you know the fix.

    2022-11-17 at 7:02 pm
    Unknown Support Status
    #28659
    insecttrojan
    Participant
    • Topics: 12
    • Replies: 21
    • Total posts: 33
    • Post count: 37

    i trying https://regex101.com/r/eAbvHg/10
    with

    $custom_css = preg_replace( ‘/\b[\w-]+:(?:(?:url\(\))?;|(?=}))/’, ”, $custom_css );

    but i had some errors any idea what else to do ? thanks

    2022-11-17 at 7:11 pm
    #28660
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    you should use conditional logic for each variable.

    2022-11-17 at 7:51 pm
    Unknown Support Status
    #28661
    insecttrojan
    Participant
    • Topics: 12
    • Replies: 21
    • Total posts: 33
    • Post count: 37

    with if ( ! empty( to all of the php ? show me an example please

    • This reply was modified 3 years, 10 months ago by insecttrojan.
    2022-11-18 at 12:36 pm
    Unknown Support Status
    #28663
    insecttrojan
    Participant
    • Topics: 12
    • Replies: 21
    • Total posts: 33
    • Post count: 37

    or on $$value to use array ?
    $values[$value] = get_option($value); and then you can loop over $values instead of accessing things individually.
    ???

    2022-11-24 at 2:01 pm
    #28664
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Here we have to use individual only not possible to loop it. you can add a conditional code for each like the below code. If you want I can make the changes for you in skin.php send me the file and I will do it for you.

     

    if($atp_boxedcontent_width) {
        $custom_css .= anona_gen_css_prop(
            array(
                '#boxed #wrapper',
            ), array(
                'width' => $atp_boxedcontent_width . 'px',
            )
        );
    }

     

     

    Regards
    Maqk

    2022-11-27 at 7:24 pm
    Unknown Support Status
    #28668
    insecttrojan
    Participant
    • Topics: 12
    • Replies: 21
    • Total posts: 33
    • Post count: 37
    2022-12-07 at 1:19 am
    #28671
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Thanks for the file. I will update and send you the modified file.

The topic ‘skin.php and options’ is closed to new replies.