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.

Remove Select content from spoiler

3 posters

Go down

Solved Remove Select content from spoiler

Post by IdaTR November 20th 2012, 11: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 November 21st 2012, 4:04 pm; edited 1 time in total
IdaTR
IdaTR
Forumember

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

http://www.vielamort.net

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR November 21st 2012, 12:48 am

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?
IdaTR
IdaTR
Forumember

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

http://www.vielamort.net

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by SLGray November 21st 2012, 2: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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51572
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR November 21st 2012, 2: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.
IdaTR
IdaTR
Forumember

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

http://www.vielamort.net

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by SLGray November 21st 2012, 2: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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51572
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR November 21st 2012, 2: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.
IdaTR
IdaTR
Forumember

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

http://www.vielamort.net

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by Kaizer Lee November 21st 2012, 10: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.
Kaizer Lee
Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR November 21st 2012, 11:38 am

Then selection disappears.
IdaTR
IdaTR
Forumember

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

http://www.vielamort.net

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by Kaizer Lee November 21st 2012, 12:06 pm

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)
Kaizer Lee
Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR November 21st 2012, 4: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!
IdaTR
IdaTR
Forumember

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

http://www.vielamort.net

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by SLGray November 21st 2012, 6: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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51572
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum