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.

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

View previous topic View next topic Go down

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

Post by RobertCol on October 30th 2011, 10:25 pm

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.

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by RobertCol on October 30th 2011, 10:57 pm

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 button.

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

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by RobertCol on October 30th 2011, 11:35 pm

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

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by RobertCol on October 31st 2011, 5:33 pm

Hmm. Still not working.

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by Sanket on October 31st 2011, 6:06 pm

What exactly is not working?
avatar
Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by RobertCol on October 31st 2011, 6:12 pm

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.

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by Sanket on October 31st 2011, 6:18 pm

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
Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by RobertCol on October 31st 2011, 6:21 pm

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

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by Sanket on October 31st 2011, 6:26 pm

Yes, it will be displayed on all pages for the members because its a forum widget.
avatar
Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by RobertCol on October 31st 2011, 6:32 pm

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?

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by Sanket on October 31st 2011, 6:35 pm

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
Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

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

Post by RobertCol on October 31st 2011, 6:48 pm

Thanks! I've done it now! Smile

RobertCol
New Member

Posts : 11
Reputation : 1
Language : English

Back to top Go down

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

Post by Sanket on October 31st 2011, 6:49 pm

Since this thread appears to be solved, I will archive this thread.


Sanket Smile

avatar
Sanket
ForumGuru

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

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