3.2 & 3.3 Extensions Database 3.2 / 3.3Reply to see content

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Reply to see content

Post by dmzx »

Extension Name: Reply to see content
Author: dmzx

Special thanks to: martin

Extension Description:
Reply to see content in topic. Member has to make a reply to see the content in the topic.
Forum can be selected in ACP under "Manage forums" .

Image




Enhancements
- Per-forum URL masking: replytoseecontent_url_hide is now respected per forum (seecontent_url($forum_id)).
- Safer masking stage: URL/attachment masking now runs on rendered HTML (MESSAGE) instead of post_text (s9e XML), avoiding renderer crashes.
- Smarter matching: Expanded masking to cover inline attachments, HTML anchors, plain http(s) URLs, and optionally images.
- First-post visibility refinements:
- When a user has u_replytoseecontent_see_ft, the first post remains visible.
- In the first post (with see_ft), images, [badge], and [username] remain visible and are not masked.
- Other links and inline attachments in the first post are still replaced with REPLYTOSEECONTENT_URL_TEXT.

Bug fixes
- Fixed fatal error “Cannot load XML: Extra content at the end of the document” by no longer mutating s9e-compiled post_text.
- Fixed “Undefined property: ... $content_post_id” warning by initializing and always setting content_post_id during topic review.
- Corrected topic review behavior to consistently prevent quoting and display placeholders when content is hidden.
- Ensured moderator permissions (m_) and u_replytoseecontent_see_all always bypass hiding as intended.

Behavior changes
- URL/attachment masking applies uniformly to hidden content across topic view and topic review.
- Quoting is disabled (U_QUOTE false) when content is hidden to prevent bypass via quotes.


- Added post visibility in search.
- Added option to hide url until post reply.


- Changed code when no posts are made, no message.


- Added permission to see all content for groups.
- Changed code for review first post.
- Changed search code for first post hide when using permission.


- Fix code for viewtopic.
- Added permission to see first post content.

Screenshots:

Image

Above can set the forum you like to hide the content until a reply is made.


Image

Above test topic made by admin.

Image

Above when member did not make a reply yet.


Image

Above member want to make a reply but cannot see the review and also quote buttons are disabled.

If reply needs approve the topic will not show until approve is done.


Image

Above member did make reply and see all posts in topic.


Image

Above other member wants to search the words but cannot see the post.


Image

Above other member cannot see when he search on members posts until here replies also in that topic.


Extension Download:
Download-link
Reply to see content v1.0.5
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `replytoseecontent`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `replytoseecontent` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/replytoseecontent/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Reply to see content` under the Disabled Extensions list, and click its `Enable` link.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Firefox

Re: Reply to see content

Post by The Good »

Thanks my friend :smile: its different than bbcode hide but I will find solution to enter this ext in my forum
first post (topic ) I will post a preview image and the rest of contain I will post it in the second post (reply).. members who want to see the rest of contain should reply

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Reply to see content

Post by dmzx »

The Good wrote: Apr 16th, '20, 09:48 thanks my friend :smile: its different than bbcode hide but I will find solution to enter this ext in my forum
first post (topic ) I will post a preview image and the rest of contain I will post it in the second post (reply).. members who want to see the rest of contain should reply
Yes you can use this extension then. let me know if all works for you. :thumbup:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Reply to see content

Post by dmzx »

First post updated.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Peralta
Donator
Donator
Status: Offline
User theme: Dark
Posts: 190
Joined: Dec 13th, '14, 16:04
    Windows 10 Firefox

Re: Reply to see content

Post by Peralta »

Hi dmzx great extension :thumbup:

It's possible to add a new permission for other groups, in addition to the moderator's group, can bypass to reply to see content?
I speak spanish. Sorry for my bad english.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Reply to see content

Post by dmzx »

Peralta wrote: Apr 16th, '20, 16:16 Hi dmzx great extension :thumbup:

It's possible to add a new permission for other groups, in addition to the moderator's group, can bypass to reply to see content?
Yes will look into this.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Firefox

Re: Reply to see content

Post by The Good »

Hey admin check this image !! possible to have this ??
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

umi
Users
Users
Status: Offline
User theme: Dark
Posts: 89
Joined: Aug 5th, '19, 12:18
    Windows 7 Firefox

Re: Reply to see content

Post by umi »

My little contribution with this ext, I translated it to spanish.

Thanks fou your work!!!

Regards
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

umi
Users
Users
Status: Offline
User theme: Dark
Posts: 89
Joined: Aug 5th, '19, 12:18
    Windows 7 Firefox

Re: Reply to see content

Post by umi »

The Good wrote: Apr 16th, '20, 18:08 hey admin check this image !! possible to have this ??
Image
This option is that I need if it works by topic, not for full forum...

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Firefox

Re: Reply to see content

Post by The Good »

umi wrote: Apr 16th, '20, 19:09
The Good wrote: Apr 16th, '20, 18:08 hey admin check this image !! possible to have this ??
Image
This option is that I need if it works by topic, not for full forum...
yeah !! interesting to open some subject in general discussion forum :smile:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

miri4ever
Users
Users
Status: Offline
User theme: Dark
Posts: 71
Joined: Jan 22nd, '17, 14:39
    Windows 10 Opera

Re: Reply to see content

Post by miri4ever »

Does it work only with new posted topics or all even old if avtivate ? If there is no real info with admin account to see how its display normal or hidden is just a litttle problem. There should be maybe a short info for topiic starter too, that his topic cant be see by others with out post.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Reply to see content

Post by dmzx »

If you activate it in a forum that already exist all "old" topics will be hide also untill member replies.

If you want to set a message it can be done also in forum as a standard option.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Reply to see content

Post by dmzx »

First post updated.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Peralta
Donator
Donator
Status: Offline
User theme: Dark
Posts: 190
Joined: Dec 13th, '14, 16:04
    Windows 10 Firefox

Re: Reply to see content

Post by Peralta »

:buigen: Thank you dmzx :buigen:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Kevicar
Donator
Donator
Status: Offline
User theme: Dark
Posts: 89
Joined: Sep 20th, '15, 17:34
    Windows 10 Chrome

Re: Reply to see content

Post by Kevicar »

Hello,

French translation ready for Reply to see content 1.0.2 :tumbsyes:
fr.zip
Best regards and enjoy! :mml:
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Image

Subscribers

User avatar
Alpha
User avatar
awr
User avatar
bdlegend
User avatar
dmzx
User avatar
kabauter
User avatar
Kevicar
User avatar
martin
User avatar
masterbiz_21
User avatar
medic
User avatar
memas
User avatar
miri4ever
User avatar
Mitico
User avatar
Peralta
User avatar
redbearcrazy
User avatar
SoN
User avatar
ssl
User avatar
The Good
User avatar
umi
User avatar
yusufdj