[ABD] Hide Topic Content From Guests

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: [BETA] Hide Topic Content From Guests

Post by vsabah »

katib wrote:Thanks a lot
I have the same request as this user:
mrgingles wrote: 1) Option to hide only a part of the firts post (not the whole post but only from the 100st character)
I want to hide all topic content execpt the X first characters (say 80 characters)
Thanks for your suggestions.

This mod hides all content from users. I don't want to do that because there are a lot of mods which you want. This mod has a different intention from the others. Sorry. :(

User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: [BETA] Hide Topic Content From Guests

Post by vsabah »

21-08-2009 v1.0.0

[Released] The lastest stable release of Hide Topic Content From Guests v1.0.0
[Fixed] Print View Problem
[Fixed] Search Result Problem
[Added] Configurable from ACP

NOTE: You can find update instructions from 1.0.0b to 1.0.0 in the installation file.

User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Name: Hans Lassen
Contact:

Re: [MODDB] Hide Topic Content From Guests

Post by DoYouSpeakWak »

This Subject title of this mod says MODDB. So i assume its been validated and there is a topic in the Released mod forum. But i cant seem to find it. Any idea were it is hidding ?
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.

User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: [MODDB] Hide Topic Content From Guests

Post by vsabah »

DoYouSpeakWak wrote:This Subject title of this mod says MODDB. So i assume its been validated and there is a topic in the Released mod forum. But i cant seem to find it. Any idea were it is hidding ?
I am sorry about this problem. I have changed it to [RC]

This is my first MOD. That's why i didn't know that. But I know what I must do now ;)

You will see this MOD in MODDB. Coming Soon... 8-)

User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: [RC] Hide Topic Content From Guests

Post by vsabah »

03-09-2009 v1.0.1

[Released] The lastest stable release of Hide Topic Content From Guests v1.0.1
[Added] Added Purge Cache instruction to the DIY Instructions
[Change] Updated MODX file to the latest version of MODX
[Change] XHTML compatibility changes in hide_topic_content.html file

NOTE: You can find update instructions from 1.0.0 to 1.0.1 in the installation file.

MOD is listed as RC (Release Candidate) stage.

Hans Borjes
Registered User
Posts: 16
Joined: Sat Oct 02, 2010 10:34 am
Location: Berlin
Contact:

Re: [RC] Hide Topic Content From Guests

Post by Hans Borjes »

Very interesting MOD indeed. However, I am asking myself: would it be possible to allow guests to navigate into forums and see topic lists but not enter threads, i.e. guests being asked to register/login when they click on a particular topic?

Best,
Hans

Hans Borjes
Registered User
Posts: 16
Joined: Sat Oct 02, 2010 10:34 am
Location: Berlin
Contact:

Re: [RC] Hide Topic Content From Guests

Post by Hans Borjes »

Hans Borjes wrote:would it be possible to allow guests to navigate into forums and see topic lists but not enter threads
Yes, it is possible and quite easy. I found a solution myself. Two lines of code need to be changed in the original phpBB implementation and the permissions in the ACP set to permit see (f_list) and deny read (f_read).

I present the code change as a unix diff, please note the line numbers.

119c119
< if ($auth->acl_get('f_list', $forum_id))
---
> if ($auth->acl_get('f_read', $forum_id))
158c158
< if (!$auth->acl_get('f_list', $forum_id))
---
> if (!$auth->acl_get('f_read', $forum_id))

Live example can be seen here in the forums listed as "privat": http://www.klaviervilla.org

User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: [RC] Hide Topic Content From Guests

Post by vsabah »

Hans Borjes wrote:
Hans Borjes wrote:would it be possible to allow guests to navigate into forums and see topic lists but not enter threads
Yes, it is possible and quite easy. I found a solution myself. Two lines of code need to be changed in the original phpBB implementation and the permissions in the ACP set to permit see (f_list) and deny read (f_read).

I present the code change as a unix diff, please note the line numbers.

119c119
< if ($auth->acl_get('f_list', $forum_id))
---
> if ($auth->acl_get('f_read', $forum_id))
158c158
< if (!$auth->acl_get('f_list', $forum_id))
---
> if (!$auth->acl_get('f_read', $forum_id))

Live example can be seen here in the forums listed as "privat": http://www.klaviervilla.org
Wow! 8-)

Incredible solution my friend!

Hans Borjes
Registered User
Posts: 16
Joined: Sat Oct 02, 2010 10:34 am
Location: Berlin
Contact:

Re: [RC] Hide Topic Content From Guests

Post by Hans Borjes »

vsabah wrote:Wow! 8-)

Incredible solution my friend!
Thank you very much. I am also quite surprised that it is possible to implement it this way. May not work in future versions.

ricjonhay
Registered User
Posts: 247
Joined: Tue Feb 16, 2010 6:08 pm

Re: [RC] Hide Topic Content From Guests

Post by ricjonhay »

Question can you limit it so a guest can view xx amount of topics before they see the message?

Ather
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: [RC] Hide Topic Content From Guests

Post by Ather »

i had a similar issue months ago, i wanted my post to stop at the [break] command in the post, here is the thread for discussion then
http://www.phpbb.com/community/viewtopi ... ilit=break

basically you can allow it to show few characters of post, then just show the register message
CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets

ricjonhay
Registered User
Posts: 247
Joined: Tue Feb 16, 2010 6:08 pm

Re: [RC] Hide Topic Content From Guests

Post by ricjonhay »

Nah that is not what i am after, what i want is when a guest has view xx amount of topics the registration comes up saying something like to view anymore topics you need to long in or register

blasterk700i
Registered User
Posts: 35
Joined: Thu Oct 01, 2009 10:20 pm

Re: [RC] Hide Topic Content From Guests

Post by blasterk700i »

content of the topic is hidden for bots?

User avatar
Terr0r
Registered User
Posts: 553
Joined: Thu May 05, 2011 3:39 pm
Location: The Netherlands
Contact:

Re: [RC] Hide Topic Content From Guests

Post by Terr0r »

is this MOD working fine on phpBB 3.0.8 without bugs and errors ?
if you can't fix it with ducktape you ain't using enough
if you want to search a MOD maybe you can find it here
For my MODS and BBCodes or other things that I have made take a look here

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25658
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [RC] Hide Topic Content From Guests

Post by Paul »

This topic has been marked as [ABD] - Abandoned as the mod author has not been active recently. If the MOD author wishes to continue development, please PM anyone on the MOD Team to request this topic be unlocked.

Thank you,
The phpBB Modifications Team
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Locked

Return to “[3.0.x] Abandoned MODs”