[RC] Topic Restriction 1.0.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

[RC] Topic Restriction 1.0.0

Post by platinum_2007 »

Modification Name: Login before viewtopic
Author: Platinum_2007 (ian_taylor)

Modification Description:: This is something i wanted to do to my board and have seen many people ask how to do it. This allows you to allow guests to view the viewforum page where the topic list is but when the click on a topic they get re-directed to a login page if they are not logged in.


Add's 2 new permissions to phpbb.

1. user permission to restrict certain groups from accessing forums but can view topic titles.

2. forum permission to select which forums should have the above restriction.

Modification Version:: 1.0.0

Demo URL: http://www.street-steeze.com

Download:

http://itmods.com/viewtopic.php?f=2&t=51
Last edited by platinum_2007 on Thu Jun 11, 2009 12:09 am, edited 1 time in total.

Peter77sx
Registered User
Posts: 3259
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] Make users login before viewing topics

Post by Peter77sx »

Not bad... keeps out unwanted bots from wondering all over forums topics too.

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Make users login before viewing topics

Post by platinum_2007 »

Peter77sx wrote:Not bad... keeps out unwanted bots from wondering all over forums topics too.
This does not restrict access to both viewing the topics. I just wanted to do it so when a guest is viewing they will get interested in the topic titles and then register instead of lurking.

I have about 50 guests each day that just lurk

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Make users login before viewing topics

Post by darkonia »

thx again, i also have over 200 hundred guests all day long, nobody regggistred and only looking and reading.
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

Peter77sx
Registered User
Posts: 3259
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] Make users login before viewing topics

Post by Peter77sx »

So it's not that is blocking guests from viewtopic, only if they enter spesificly through viewforum page.. got ya.
platinum_2007 wrote:
Peter77sx wrote:Not bad... keeps out unwanted bots from wondering all over forums topics too.
This does not restrict access to both viewing the topics. I just wanted to do it so when a guest is viewing they will get interested in the topic titles and then register instead of lurking.

I have about 50 guests each day that just lurk

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Make users login before viewing topics

Post by platinum_2007 »

Peter77sx wrote:So it's not that is blocking guests from viewtopic, only if they enter spesificly through viewforum page.. got ya.
platinum_2007 wrote:
Peter77sx wrote:Not bad... keeps out unwanted bots from wondering all over forums topics too.
This does not restrict access to both viewing the topics. I just wanted to do it so when a guest is viewing they will get interested in the topic titles and then register instead of lurking.

I have about 50 guests each day that just lurk
It is blocking guests (members that are not registered) from viewtopic just not viewforum :D

But bots can still viewtopics because they are registered

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Make users login before viewing topics

Post by darkonia »

and can guests still looking at the rss feeds and their viewtopic or sitemaps etc...?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Make users login before viewing topics

Post by platinum_2007 »

darkonia wrote:and can guests still looking at the rss feeds and their viewtopic or sitemaps etc...?
Im not sure there is no RSS built into a vanilla phpbb3.0.4 :D


you can view this

http://www.street-steeze.com/viewforum.php?f=16

but you will not be able to view this

http://www.street-steeze.com/viewtopic.php?f=16&t=743

with the normal phpbb permissions guests would not be able to see

http://www.street-steeze.com/viewforum.php?f=16

naveend2007
Registered User
Posts: 2
Joined: Fri May 15, 2009 4:06 pm

Re: [BETA] Make users login before viewing topics

Post by naveend2007 »

Thanks...it works
www.artzone.tk

User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Re: [BETA] Make users login before viewing topics

Post by kber »

this is already a phpbb3 feature
ACP- permissions - Groups’ forum permissions - guests - Advanced Permissions - can see forum / can read forum
Hello All

User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: [BETA] Make users login before viewing topics

Post by A_O_C »

kber wrote:this is already a phpbb3 feature
ACP- permissions - Groups’ forum permissions - guests - Advanced Permissions - can see forum / can read forum
Not the same. If I can see the forum, that just means I can see it in the index page. If I can read it, that means I can see what topics exist (viewforum) and read those topics (viewtopic). This MOD attempts to prevent reading those topics (I haven't tested).

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Make users login before viewing topics

Post by platinum_2007 »

kber wrote:this is already a phpbb3 feature
ACP- permissions - Groups’ forum permissions - guests - Advanced Permissions - can see forum / can read forum
Like A-O-C said.

If you used the phpbb feature you would not be able to see this page

http://street-steeze.com/viewforum.php?f=16

but with this little hack you can see http://street-steeze.com/viewforum.php?f=16 but you cannot see the topic page

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: [BETA] Make users login before viewing topics

Post by Lisbon »

sorry... But where is the link for download?

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Make users login before viewing topics

Post by platinum_2007 »

Lisbon wrote:sorry... But where is the link for download?
There is none yet, its as simple ad doing the 1 edit found in the first post :)

But for a actual release im going to integrate it into the phpbb permissions.

brimos
Registered User
Posts: 27
Joined: Tue Jan 18, 2005 4:24 am

Re: [BETA] Make users login before viewing topics

Post by brimos »

platinum_2007 wrote:But for a actual release im going to integrate it into the phpbb permissions.
Hi Ian,

Thanks for your work on this. When you get the Forum Role integrated into phpbb permissions, would you please let me know?

I posted an almost identical request, and you seemed to have nailed it.

http://www.phpbb.com/community/viewtopi ... &t=1612575

Again, thanks for your work! It is very much appreciated!

-Brian

Locked

Return to “[3.0.x] MODs in Development”