Hide Topics from Guests

Started by Suki, January 22, 2010, 09:56:02 AM

Previous topic - Next topic

Suki

Hide Topics from Guest
Author: Suki


Description
Hide Topics from Guests allows guests to see topics, but if they click a topic it redirects them to the login page.


License

* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/


Settings
No settings, just install and use.


Support
Questions should be address to the mod support topic.


Changelog
3.0 - 6 January 2012
- Added support for Profile and Print pages.

2.0 - 26 January 2011
- fixed guest can see the topic in action=recent

1.0 - 14 January 2010
First release of Hide Topics from Guests
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

shumilica

Quite interesting mod, but what will happen if the guest has the direct link to a topic?
And this is supposed to happen only on boards that guests have access, no?
The idea is good, the implementation i think would have to resemble the View/Enter Board Permissions mod, so that we can choose from the permission if membergroups can view the topics or enter them.
Today, if you're not confused it means you're not thinking clear!

Matthew K.

Take a peak at the coding, it adds a line to Display.php for guests, meaning even if a guest has a direct link, it will redirect them.

Edit: The line added in ./Sources/Display.php
Code (Display.php) Select
if ($context['user']['is_guest']) redirectexit ('action=login');

shumilica

Ok, I was thinking it adds it in the messageindex, but I would want to use this mod if it is activated per board basis. So that guest can enter topics in a board, but only view the titles in another. I think this would be the most lucrative mode of the mod.
Today, if you're not confused it means you're not thinking clear!

Matthew K.

Something similar is already setup, you can not allow guests to be able to view certain boards. The only benefit if I made my mod by a board-based permission would that guests could see messageindex's, which wouldn't be a huge gain.

However, I will consider it.

Cal O'Shaw

So this differs from the Hide Topic Replies MOD by just cutting off Guests from looking at any posts in topics, yes?  Hide Topic Replies allows Guests to see the first post.

Just want to understand the difference.

Grazie,

Cal

Matthew K.

Yes, this completely blocks guests from viewing topics period, as other similar mods just limit viewing replies.

Labradoodle-360

Tanks

This was what i wanted for my 2.0 RC2 - Guest can still see attachment on messageindex and that is what was needed. Thanks alot !

Matthew K.

Not a problem, glad you like it!

Labradoodle-360

digit

I guess this is system wide? Or is there an option to do on a per board basis? (and if not, make that a feature request!)
8)
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Matthew K.

This is strictly a system based mod and I do not intend on updating it to board basis any time soon.

As I am working on some bigger mods currently, I may add this to my to-do list after I get Hovering Login Bar done.
Labradoodle-360

Earthview

I have a SEO question, is this blocking also the bots? Google bot?

Thanks,
Maik

Matthew K.

Very good question, and the answer is yes.

Hide Topics from Guests blocks anyone and everyone who is not logged into the forum.

72 454

This mod is perfect for me. Tnx! I like the fact that guests can see the boards and user's topic titles to show the activity, but they just can't go in and read the individual posts. Gives the forum some posting privacy while still showing the amount of activity.


8) 
SMF 2.0.11

Afro

How does this treat search engines ?

Nick Whetstone

Quote from: Earthview on January 25, 2010, 04:51:23 PM
I have a SEO question, is this blocking also the bots? Google bot?

Thanks,
Maik
Quote from: Labradoodle-360 on January 25, 2010, 04:52:50 PM
Very good question, and the answer is yes.

Hide Topics from Guests blocks anyone and everyone who is not logged into the forum.
;)
Quote from: Afro™ on February 14, 2010, 12:34:01 PM
How does this treat search engines ?
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

YogiBear

This is what Bear here is trying to understand. A similar mod works great but by clicking on View Recent Posts a Guest can read all posts whether the topic is forbidden or not.
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

Gurbet_42

Quote from: YogiBear on February 14, 2010, 03:11:19 PM
This is what Bear here is trying to understand. A similar mod works great but by clicking on View Recent Posts a Guest can read all posts whether the topic is forbidden or not.

Delete
is_not_guest();  from Recent.template.php  ;)

YogiBear

SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

qubbah

hope there is an option to enable or disable this function in admin panel. tq

Advertisement: