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 Tue 20 Nov 2012 - 23:02

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 21 Nov 2012 - 16:04; 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 Wed 21 Nov 2012 - 0:48

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 Wed 21 Nov 2012 - 2:05

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 : 51482
Reputation : 3519
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 Wed 21 Nov 2012 - 2:10

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 Wed 21 Nov 2012 - 2:13

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 : 51482
Reputation : 3519
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 Wed 21 Nov 2012 - 2:28

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 Wed 21 Nov 2012 - 10:46

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 Wed 21 Nov 2012 - 11:38

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 Wed 21 Nov 2012 - 12:06

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 Wed 21 Nov 2012 - 16:02

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 Wed 21 Nov 2012 - 18:21

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 : 51482
Reputation : 3519
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