The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove Select content from spoiler

View previous topic View next topic Go down

Solved Remove Select content from spoiler

Post by IdaTR on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR on 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.

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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by SLGray on 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]


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


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by SLGray on 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?


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


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by IdaTR on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by Kaizer Lee on 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
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 on November 21st 2012, 11:38 am

Then selection disappears.

IdaTR
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by Kaizer Lee on 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
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 on 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
Forumember

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

http://nionevrien.forumq.net/

Back to top Go down

Solved Re: Remove Select content from spoiler

Post by SLGray on November 21st 2012, 6:21 pm

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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