How to make a certain bit of text invisible to guests?
2 posters
The forum of the forums :: Support forum :: Administration Panel, packages, credits and other paid features problems :: Problems Archives
Page 1 of 1
How to make a certain bit of text invisible to guests?
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?
Thanks
( 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.
Is it possible? If it is, HOW?
Thanks
( 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
Re: How to make a certain bit of text invisible to guests?
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
Re: How to make a certain bit of text invisible to guests?
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
Re: How to make a certain bit of text invisible to guests?
Hmm. Still not working.
RobertCol- New Member
- Posts : 11
Reputation : 1
Language : English
Re: How to make a certain bit of text invisible to guests?
What exactly is not working?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: How to make a certain bit of text invisible to guests?
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
Re: How to make a certain bit of text invisible to guests?
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.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: How to make a certain bit of text invisible to guests?
But will the widget not be displayed on all pages for the members?
RobertCol- New Member
- Posts : 11
Reputation : 1
Language : English
Re: How to make a certain bit of text invisible to guests?
Yes, it will be displayed on all pages for the members because its a forum widget.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: How to make a certain bit of text invisible to guests?
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?
Does that help you understand what I'm trying to do?
RobertCol- New Member
- Posts : 11
Reputation : 1
Language : English
Re: How to make a certain bit of text invisible to guests?
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.
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.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: How to make a certain bit of text invisible to guests?
Thanks! I've done it now!
RobertCol- New Member
- Posts : 11
Reputation : 1
Language : English
Re: How to make a certain bit of text invisible to guests?
Since this thread appears to be solved, I will archive this thread.
Sanket
Sanket
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» How can I make my forum invisible to guests?
» Make a topic invisible
» How can you make your Birthday and Gender invisible?
» Can I make the result of a poll invisible?
» How to make guests not see links?
» Make a topic invisible
» How can you make your Birthday and Gender invisible?
» Can I make the result of a poll invisible?
» How to make guests not see links?
The forum of the forums :: Support forum :: Administration Panel, packages, credits and other paid features problems :: Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum