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.

text before hide content

View previous topic View next topic Go down

In progress text before hide content

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

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

tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by JScript on 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:


Note: \00a0 = space char!

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
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 on December 1st 2014, 9:48 pm

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

tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

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

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


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


SLGray
Administrator
Administrator

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

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: text before hide content

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

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

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


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


SLGray
Administrator
Administrator

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

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: text before hide content

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

i don't understand what you mean?

tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

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






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

In progress Re: text before hide content

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: text before hide content

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

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

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

up

tommycoo8
Forumember

Male Posts : 57
Reputation : 1
Language : Indonesia

Back to top Go down

In progress Re: text before hide content

Post by Luffy on 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






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

In progress Re: text before hide content

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.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