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.

text before hide content

5 posters

Go down

In progress text before hide content

Post by tommycoo8 December 1st 2014, 2:19 pm

is this possible to make a text before hide content tag ?
tommycoo8
tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by JScript December 1st 2014, 8:21 pm

Hi!

Try this CSS:
Code:

.hidecode:before {
  background-color: #d4f4aa;
  border: 1px solid #9ccf5a;
  content: "\00a0\00a0\00a0\00a0Warning: hidden content!\00a0\00a0\00a0\00a0";
  font-weight: 700;
  margin-left: -4px;
  margin-top: -28px;
  position: absolute;
}
.hidecode {
  margin-top: 20px;
}

Result:
text before hide content T0dLnvs

Note: \00a0 = space char!

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: text before hide content

Post by tommycoo8 December 1st 2014, 9:48 pm

it will not see if we are be member. ? any chance ?
tommycoo8
tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by SLGray December 1st 2014, 9:52 pm

Whatever is hidden will not appear until the person replies to the topic.


text before hide content 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 : 51554
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

In progress Re: text before hide content

Post by tommycoo8 December 2nd 2014, 9:12 am

i know that, but is that possible to display the text on hide code that said "you have to reply to see hidden content"
tommycoo8
tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by SLGray December 2nd 2014, 10:14 pm

Add it to this part of the code:
Code:
content: "\00a0\00a0\00a0\00a0Warning: hidden content!\00a0\00a0\00a0\00a0";


text before hide content 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 : 51554
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

In progress Re: text before hide content

Post by tommycoo8 December 7th 2014, 3:55 pm

i don't understand what you mean?
tommycoo8
tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by TheCrow December 7th 2014, 4:01 pm

tommycoo8 means that he wants the text to be visible wherever there is a hidden content.
For example if you add a hidden content here and a member reads the post to see a warning box saying that 'You must reply to see the content' and as soon as he.she replies the warning box to change text or something. What JScript send is good but that only is visible as soon as you post and you see the hidden content. Isn't that right tommycoo8?


text before hide content Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

In progress Re: text before hide content

Post by Ange Tuteur December 7th 2014, 5:19 pm

I don't think there would be a way to do that, because when the content is hidden it is not in the post. You would have to put that in the message yourself, along with the hidden content.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: text before hide content

Post by tommycoo8 December 9th 2014, 11:18 pm

MrMind wrote:tommycoo8 means that he wants the text to be visible wherever there is a hidden content.
For example if you add a hidden content here and a member reads the post to see a warning box saying that 'You must reply to see the content' and as soon as he.she replies the warning box to change text or something. What JScript send is good but that only is visible as soon as you post and you see the hidden content. Isn't that right tommycoo8?
yes that's what i mean, i think it will work, and someone will doing this Smile
tommycoo8
tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by tommycoo8 December 29th 2014, 5:46 am

up
tommycoo8
tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by TheCrow December 29th 2014, 10:38 am

Hello,

This is not possible to do because of the hidden code. Although you could add and image in your smileys and when you want to add a hidden code somewhere add it through there and be done with it! Wink


text before hide content Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

In progress Re: text before hide content

Post by Ange Tuteur December 29th 2014, 7:05 pm

Hello @tommycoo8,

The most I can think of is adding text before the tags after clicking the button. As I have said before, the hidden element is not present in the post until you make a reply.

Go to Administration panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : in all the pages
Code:
$(function(){$(function(){
  $('.sceditor-button-fahide').mouseup(function() {
    $('#text_editor_textarea').sceditor('instance').insertText('You have to reply to see hidden content\n',' ');
  });
})});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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