XF 1.5 Template condition (if visitor can read thread)

Ghostaunt

Active member
#1
Hello.

I'm trying to find if it's possible to get a condition for know if visitor can read the thread.
If I want that, it's because I have added sharing buttons to the first post in thread, but I wan't to hide them if visitor can't read the thread.

Thanks for your help
 

Ghostaunt

Active member
#3
Not logged in. I'm talking about visitor if they can read/seee the thread. Like here if was not logged in, I could read this thread :)
 

Martok

Well-known member
#4
The linked to resource covers guests. So you wrap the sharing buttons into a conditional that shows to those who aren't guests.

**EDIT** D'oh! I just thought about this. If the guest can't read the thread, surely they won't see the sharing buttons anyway?
 

Ghostaunt

Active member
#5
**EDIT** D'oh! I just thought about this. If the guest can't read the thread, surely they won't see the sharing buttons anyway?
No no it's not what I need.

I just want to hide sharing button for my members IF GUESTS(visitor) can't read the thread.
Because you don't have to share content that guest can't read. That why i need this condition ^^
 

Martok

Well-known member
#6
In that case, the threads that guests can see will be in specific forums. You can use a conditional based on those forums. See the link in my previous post.
 
Top