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
2 posters

    How to make a certain bit of text invisible to guests?

    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved How to make a certain bit of text invisible to guests?

    Post by RobertCol Sun 30 Oct 2011 - 22:25

    I have a section of my forum where members post offers and deals they find. I want to make it so the URLs or codes of the vouchers are only visible to members, and guests have to create an account to see what the code/url is. I have tried spoilers and hidden text, but its not working.

    Is it possible? If it is, HOW? Smile

    Thanks Very Happy

    ( http://restaurantforum.englishboards.com/f16-deals-and-offers )

    PS. If it says 'Please register to see the code', just ignore it. Members cant see it either at the moment.
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Sun 30 Oct 2011 - 22:57

    Rideem3 wrote:To make the forum not visible to guests just go to:
    Admin Panel -> General -> Categories & Forums -> Edit the permissions of what forum you want to disable view from guests by clicking the How to make a certain bit of text invisible to guests? Perms button.

    Thanks, but is there any way that I can still show the thread/forum, but just make the URL invisible to guests?
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Sun 30 Oct 2011 - 23:35

    Rideem3 wrote:Yes, but you would have to manually add a specific text before and after the message.

    First, go to Admin Panel -> Modules -> Forum Widgets Management
    Create a new widget
    Title: Hide Text
    Use as Table Type: No
    Title: Leave Blank

    Put this in the code box:
    Code:
    <style type="text/css">
    .hidetext {
    display: none;
    }
    </style>

    Hit Save. Add it to either left or right side (whatever is activated). Then Hit save. Then edit the permissions by clicking the How to make a certain bit of text invisible to guests? Perms button on the widget. Check only guests, and uncheck everything else.

    Then whenever you post a url in a post, add:
    Code:
    <span class="hidetext">URL HERE or WHATEVER TEXT HERE</span>

    Just be sure the span class tag is there.

    Hmm. Its not worked.
    See the post here: http://restaurantforum.englishboards.com/t22-beefeater#45
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Mon 31 Oct 2011 - 17:33

    Hmm. Still not working. How to make a certain bit of text invisible to guests? Forum_11
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by Sanket Mon 31 Oct 2011 - 18:06

    What exactly is not working?
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Mon 31 Oct 2011 - 18:12

    I use chrome for the admin account, and when I use that account, I see <span class="hidetext">**URL**</span> where I want the message to be. When I go on using firefox as a guest account, I see the same message as I do on the admin account, so the URL is not invisible to guest users.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by Sanket Mon 31 Oct 2011 - 18:18

    You can add the whole text in that widget & you can then hide that widget for guests by changing the permissions. You don't need to add any code.
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Mon 31 Oct 2011 - 18:21

    But will the widget not be displayed on all pages for the members?
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by Sanket Mon 31 Oct 2011 - 18:26

    Yes, it will be displayed on all pages for the members because its a forum widget.
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Mon 31 Oct 2011 - 18:32

    What I am trying to do is show a URL for a voucher in a thread. When Guests view the thread, I would like it so they cannot see the URL. But, when the guest registers as a member, then the URL becomes visible to them.

    Does that help you understand what I'm trying to do?
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by Sanket Mon 31 Oct 2011 - 18:35

    General>Categories and Forums
    Click on a forum name
    Permissions tab
    See links in the messages :Members.
    Save. Repeat it for all forums.

    This will make it not display for Guests.
    avatar
    RobertCol
    New Member


    Posts : 11
    Reputation : 1
    Language : English

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by RobertCol Mon 31 Oct 2011 - 18:48

    Thanks! I've done it now! Smile
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: How to make a certain bit of text invisible to guests?

    Post by Sanket Mon 31 Oct 2011 - 18:49

    Since this thread appears to be solved, I will archive this thread.
    How to make a certain bit of text invisible to guests? 2j4t5a8

    Sanket Smile


      Current date/time is Mon 23 Sep 2024 - 9:33