Remove Select content from spoiler 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

    Remove Select content from spoiler

    IdaTR
    IdaTR
    Forumember


    Female Posts : 547
    Reputation : 1
    Language : Danish, english
    Location : Denmark

    Solved Remove Select content from spoiler

    Post by IdaTR Tue Nov 20, 2012 10:02 pm

    Hey!

    I've been looking at the Select Content code, and seen that its conected to the spoiler too..

    Code:
      jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this)

    Is it possible to remove it from the Spoiler but still keeping it in the Code?


    Last edited by IdaTR on Wed Nov 21, 2012 3:04 pm; edited 1 time in total
    IdaTR
    IdaTR
    Forumember


    Female Posts : 547
    Reputation : 1
    Language : Danish, english
    Location : Denmark

    Solved Re: Remove Select content from spoiler

    Post by IdaTR Tue Nov 20, 2012 11:48 pm

    I want it, but only for the Code Box, not the spoiler.
    Edite:

    You see.
    Spoiler:
    There arent any Select Content.

    But when I write the spoiler on my page, it shows the code box apperence instead.

    Remove Select content from spoiler Udklip10 This is how the spoiler looks a like, it looks like the Code Box but it aren't. So how do I fix it?
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Remove Select content from spoiler

    Post by SLGray Wed Nov 21, 2012 1:05 am

    So when you post something in a spoiler in a message, the spoiler turns into the code box? Are you using the spoiler tags?
    Code:
    [spoiler][/spoiler]



    Remove Select content from spoiler Slgray10

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


    Female Posts : 547
    Reputation : 1
    Language : Danish, english
    Location : Denmark

    Solved Re: Remove Select content from spoiler

    Post by IdaTR Wed Nov 21, 2012 1:10 am

    Yup Correct.
    And Yup I am. When I remove the Javascript it turns into normal, but not when I'm using it, and I found that piece in the javascript code where there stood Spoiler, so thought it had something to do with that? But when i remove that piece where spoiler stands, the whole javascript "Select Content" dissapears.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Remove Select content from spoiler

    Post by SLGray Wed Nov 21, 2012 1:13 am

    I have this on my forum, and the spoiler works normally. Did you add something or change something right before this issue occurred?



    Remove Select content from spoiler Slgray10

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


    Female Posts : 547
    Reputation : 1
    Language : Danish, english
    Location : Denmark

    Solved Re: Remove Select content from spoiler

    Post by IdaTR Wed Nov 21, 2012 1:28 am

    Nope i didn't. I've never been out of this before when I used the spoiler and had the Select content code.
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Re: Remove Select content from spoiler

    Post by Kaizer Lee Wed Nov 21, 2012 9:46 am

    Code:
    jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this)

    Change it to this.

    Code:
    jQuery("dl.codebox dt").not("dl.codebox > dt").html('Code: <a href="#" onclick="selectCode(this)

    See if that works.
    IdaTR
    IdaTR
    Forumember


    Female Posts : 547
    Reputation : 1
    Language : Danish, english
    Location : Denmark

    Solved Re: Remove Select content from spoiler

    Post by IdaTR Wed Nov 21, 2012 10:38 am

    Then selection disappears.
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    Solved Re: Remove Select content from spoiler

    Post by Kaizer Lee Wed Nov 21, 2012 11:06 am

    Well, as you said, it appears on the spoiler if it's not, right?

    Hmm... try this?

    Code:
    jQuery("dl.codebox dt").html('Code: <a href="#" onclick="selectCode(this)
    IdaTR
    IdaTR
    Forumember


    Female Posts : 547
    Reputation : 1
    Language : Danish, english
    Location : Denmark

    Solved Re: Remove Select content from spoiler

    Post by IdaTR Wed Nov 21, 2012 3:02 pm

    Code:
     jQuery(".codebox").not(".spoiler").find('dt').html('Code: <a href="#" onclick="selectCode(this)

    It worked with this one Very Happy! Thank you very much!
    Solved!
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Remove Select content from spoiler

    Post by SLGray Wed Nov 21, 2012 5:21 pm

    Topic Solved & Locked



    Remove Select content from spoiler Slgray10

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