Login 2 See Plus
There seems to be a few bugs with the plugin. I haven't been able to identify exactly what's causing it. Apparently there are problems with the "poll plugin" or the "mentions". Apart from the fact that the survey is also visible to guests, it happens that some posts are visible to guests when they shouldn't be. Does anyone have similar problems and knows a solution? Is this extension still maintained? I didn't find any contribution to this. We are using v0.2
- Edited
I think I found the mistake. If a user is mentioned in a text and this is quoted, the quoted text in the next post is visible to unregistered users.
tom23 Hi, you can create an issue in the repository. It is an open source project and anyone can contribute but it takes time.
I'm very busy with work but I can try to take a look at the problem during this month.
Report a bug in the extension:
The hidden content is still shown if the the reply is selected as "best answer"
- Edited
Is it possible to restrict access to a custom group instead of members?
It seems an easy way bypass this is to create a new member accounts without verifying the email which gives access to the hidden content unless all discussions are viewable by members only. I don't want to hide discussions from everyone because that would hide them from search engines entirely.
@xasharma mentioned this problem a few posts up
users just create a random username and mails (like dxcdskhfsdhfsocsdv@gmail.com) and register.
Email whitelist/blacklist or temp email blocker do not fix the exploit. The only difference between guest and member is that they completed the signup form. I don't think simply completing the form should activate a user as a member, that action should occur after the email validation (or immediately if using a extension to disable email validation).
I will update the extension soon to include the email confirmation to view the content. Other improvements will not be implemented for now but contributions are welcome.
FYI Take a look to a new extension that was published recently and it could complement this one:
https://discuss.flarum.org/d/31068-bbcode-hide-content
- Edited
Hi! Thanks for link to new extension!
I have some confusion, what to do )) Its will be long text partially with google translate, so excuse me, but its necessery to undestanding the state of affairs.
As I discribe here
I want to comletely hide some content from not a members. This content most often is semi-private information, what I dont wana share with everybody. Looks like extension members-class, did the trick. But members-class is just hide conten with CSS, and at the end, this "hidden" content can be easy obtained if somebody want to do this. This is not enough for me.
Looks like your extension can hide content completly. This is what I need? ? No again....
Because I dont want to hide all urls, images or code. I need to hide custom text and some urls and images. And at the same time, I need to some other urls, images can be full visible to all visitors.
About new extension BBCode Hide Content...
I have not yet figured out whether it hides the content completely, but I also see some drawbacks here.
In the first place, forcing people to write comments will eventually just lead to more unnecessary flooding. Requiring a press like is an better option. To press it, user MUST be registered/logined, and this does not oblige to anything else. After all, it's just one click or tap. But here, too, there is some dissonance.
First - I'm planning on migrating my forum from vbulletin, and there are a lot of posts that are ALREADY available to forum members, and now, after the transfer of data, these users will have to put likes or write unnecessary comments to see connent what was available for them before.. I'm sure this will confuse many of them. And secondly, on my working forum, which I plan to transfer to the flarum engine, at the moment the "thank you system" is completely disabled. It happened by the common will of the majority of users of my forum. I dont know.. they seem to take themselves very seriously
Aneway. I found some difficult way to solve my problem. I combined members-class and your extension.
I'll try to explain.
Extension members-class allows to use [members][/members] tags to tender it on page load as:
<span class="members-only">hidden content</span>
Then I have this code, I use your extension with next actions:
With options of your extension in ACP, I dissable links and images options and enable code.
And then I did something what I must never to do... I know it, but )))
In file: \vendor\jslirola\flarum-ext-login2seeplus\src\HideContentInPosts.php
I found:
$newHTML = preg_replace('/<pre><code(.*?)>[^>]*<\/pre>/is', $this->get_link('jslirola-login2seeplus.forum.code'), $newHTML);
$newHTML = preg_replace('/<code(.*?)>[^>]*<\/code>/is', $this->get_link('jslirola-login2seeplus.forum.code'), $newHTML);
And replace with:
$newHTML = preg_replace('/(<span class="members-only">)(.*?)<\/span>/is', $this->get_link('jslirola-login2seeplus.forum.link'), $newHTML);
As you can see, now your extension looks and hide for content inside
<span class="members-only"></span>
and it work for me like a charm. Your extesion completly hide my any custom content in[members][/members]
tags.
And now.... finally my question....
Can I somehow add <span class="members-only"></span>
to patterns, what your extension will hide, without editing sources?
Or may be you be so good and explain in general terms how to correctly add a new option to your code, so that I would try to make a PR in the repository?
Thanks! And sorry for my english and long text. ))
- Edited
Good news for me! BBCode Hide Content now have an update.
This extension hide content completely (not only with css) and now I can bypass requiirements for user groups in settings. Wich means, what I can hide content for not a members, and stay it visible for registered/activated users by default!
taravasya I'm glad this other extension works for you. In my opinion, there is still a major difference between these extensions and a need for this one to be continued Many communities do not want to require replies or likes to view content but we need further validation (email verification) of users before they are considered members or there will be abuse. The BBCode Hide Content extension also requires that users wrap content in BBCode instead of it being automatically hidden.
This extension hide content completely (not only with css)
I'm curious. Is this actually the case? Does this extension not fully hide the content from the source code or does one do a better job than the other?
Big thanks to both developers! They both have their uses and I'm happy to have either available.
- Edited
srjrol Is this actually the case? Does this extension not fully hide the content from the source code or does one do a better job than the other?
Not sure if we understand each other right. (sorry, i use googgle translate).
With the method of hiding data, everything is fine in both extension. BBCode Hide Content is hide content in source code, exactly as your extension. In any case, when I viewing the sources in devtools i can't see hidden parts. I see only div's what wrapped them. For me problem only what I need to hide custom text, but not all of some content type.
In any case, thank you for your time, I'm very glad to be a part of flarum community.
I am using the Wordpress integration which hides all of the Signup links in the standard Flarum configuration. However, when I activate the Login2SeePlus extension, the "Signup" links still appears in the posts.
This is what the Wordpress integration developer suggested:
"Maybe the Login2SeePlus extension can simply check whether registration is enabled on the forum before injecting registration links on the page."
Is this possible?
You can take a look at my forum at https://songcrafting.com/forum to see what I mean.
srjrol Any update on whether you can help me hide the "Signup" link generated from your extension?
@srjrol Is this extension still being supported?
- Edited
whisperwow please note that @srjrol is not the author of this extension. You should look at the first post in the discussion to see who has created the extension - jslirola in this case.
Also as a reminder, please make yourself familiar with our Community Guidelines. Especially "Don’t post repeatedly about the same topic, as doing so will tend to have the opposite effect." and "Avoid making multiple posts in a row when one would suffice. This is a forum, not a chat room.". Some authors are more active then others - but everybody will receive notifications. We cannot influence how people reply on their mostly open source extensions. There is always the option to hire someone within our services tag - like you already did.
- Edited
jslirola Avoid showing content when the email is not confirmed.
Thank you very much for this update!
This isn't a problem for me personally, but I notice images using [img]
bbcode are hidden prior to registration but revealed prior to email confirmation. Other content is being hidden as expected including direct image URLs. Not sure if that is a bug or a new feature request.