Recent posts -> click icon on the left -> deny guest view of recent posts

Started by forumdraco, September 23, 2014, 04:46:03 PM

Previous topic - Next topic

forumdraco

Situation:

SMF 2.0.8, has the 'do not enter mod' installed. Guests can see boards and topics. When guest enters a topic for reading posts he gets redirect to to logon/register screen.

When a guest clicks on a topic below 'Recent Posts', he also gets redirected to the logon/register screen.

But when a guest clicks the icon on the left of 'Recent Posts' he gets to see the content of the most recent posts and this is not good. Is there a way to show an empty overview here for guests?

Thanks in advance for any tips. ;-)

margarett

That's really an issue with the MOD that you should follow on its support topic ;)
Nevertheless, you can edit Sources/Recent.php, find:
loadTemplate('Recent');
$context['page_title'] = $txt['recent_posts'];

Add after:
is_not_guest();
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

Also, I will give the obligatory warning....


when you install mdos like "do no enter" you are losing users.   Any site which does what you say and prevents a guest from seeing the content of the forum is a site that I (and many others) leave and never return to. We only join forums in which we have the desire to participate... and forcing people to join in order to just READ your posts is going to backfire on you
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

forumdraco

Quote from: margarett on September 23, 2014, 05:12:06 PM
That's really an issue with the MOD that you should follow on its support topic ;)
Nevertheless, you can edit Sources/Recent.php, find:
loadTemplate('Recent');
$context['page_title'] = $txt['recent_posts'];

Add after:
is_not_guest();

Thanks! Working perfectly. :)

forumdraco

Quote from: Kindred on September 23, 2014, 05:27:46 PM
Also, I will give the obligatory warning....


when you install mdos like "do no enter" you are losing users.   Any site which does what you say and prevents a guest from seeing the content of the forum is a site that I (and many others) leave and never return to. We only join forums in which we have the desire to participate... and forcing people to join in order to just READ your posts is going to backfire on you

I know, but the board owner wants it this way. It's a semi private board. Because it's kinda 'specialised' information users who want the information will register anyway.

Arantor


Advertisement: