is this possible to make a text before hide content tag ?
5 posters
text before hide content
JScript- Forumember
- Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil
- Post n°2
Re: text before hide content
Hi!
Try this CSS:
Result:
Note: \00a0 = space char!
JS
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:
Note: \00a0 = space char!
JS
tommycoo8- Forumember
- Posts : 57
Reputation : 1
Language : Indonesia
- Post n°3
Re: text before hide content
it will not see if we are be member. ? any chance ?
SLGray- Administrator
- Posts : 51554
Reputation : 3523
Language : English
Location : United States
- Post n°4
Re: text before hide content
Whatever is hidden will not appear until the person replies to the topic.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
tommycoo8- Forumember
- Posts : 57
Reputation : 1
Language : Indonesia
- Post n°5
Re: text before hide content
i know that, but is that possible to display the text on hide code that said "you have to reply to see hidden content"
SLGray- Administrator
- Posts : 51554
Reputation : 3523
Language : English
Location : United States
- Post n°6
Re: text before hide content
Add it to this part of the code:
- Code:
content: "\00a0\00a0\00a0\00a0Warning: hidden content!\00a0\00a0\00a0\00a0";
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
tommycoo8- Forumember
- Posts : 57
Reputation : 1
Language : Indonesia
- Post n°7
Re: text before hide content
i don't understand what you mean?
TheCrow- Manager
- Posts : 6916
Reputation : 795
Language : Greek, English
- Post n°8
Re: text before hide content
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?
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?
 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!
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°9
Re: text before hide content
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.
tommycoo8- Forumember
- Posts : 57
Reputation : 1
Language : Indonesia
- Post n°10
Re: text before hide content
yes that's what i mean, i think it will work, and someone will doing thisMrMind 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?
tommycoo8- Forumember
- Posts : 57
Reputation : 1
Language : Indonesia
- Post n°11
Re: text before hide content
up
TheCrow- Manager
- Posts : 6916
Reputation : 795
Language : Greek, English
- Post n°12
Re: text before hide content
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!
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!
 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!
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°13
Re: text before hide content
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
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',' ');
 });
})});