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.
The forum of the forums
5 posters

    text before hide content

    tommycoo8
    tommycoo8
    Forumember


    Male Posts : 57
    Reputation : 1
    Language : Indonesia

    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 ?
    JScript
    JScript
    Forumember


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

    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
    tommycoo8
    tommycoo8
    Forumember


    Male Posts : 57
    Reputation : 1
    Language : Indonesia

    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 ?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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.
    tommycoo8
    tommycoo8
    Forumember


    Male Posts : 57
    Reputation : 1
    Language : Indonesia

    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"
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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.
    tommycoo8
    tommycoo8
    Forumember


    Male Posts : 57
    Reputation : 1
    Language : Indonesia

    In progress Re: text before hide content

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

    i don't understand what you mean?
    TheCrow
    TheCrow
    Manager
    Manager


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

    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!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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.
    tommycoo8
    tommycoo8
    Forumember


    Male Posts : 57
    Reputation : 1
    Language : Indonesia

    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

    In progress Re: text before hide content

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

    up
    TheCrow
    TheCrow
    Manager
    Manager


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

    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!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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',' ');
     Â });
    })});

      Current date/time is November 11th 2024, 9:15 pm