Good day,
We run a membership site www.morganscloud.com
I see that I can disable commenting for guests, which is great.
But I can't see a way to disable the subscription bar for guests only, but leave it there for logged in users.
Maybe this is in one of the premium add ons? If so happy to buy it.
Am I missing something, and if not, is there a way I could make this work?
Maybe enclose the subscribe bar in the template in a php function that tested for logged in?
Thanks
John
Hi Again
Just took a look at the templates and it looks like I need to edit the comment-form.php and wrap the following code in an if statement so not to show if the user is not logged in:
<div class="wpd-sbs-toggle">
<i class="far fa-envelope"></i> <span class="wpd-sbs-title"><?php echo esc_html($wpdiscuz->options->phrases["wc_subscribe_anchor"]); ?></span> <i class="fas fa-caret-down"></i>
</div>
Is it OK to copy and edit comment-form.php in the same way as you document here: https://wpdiscuz.com/docs/wpdiscuz-documentation/customization/custom-template-and-style/
Thanks
John
Hi Again,
I thought I had it with this filter:
https://wpdiscuz.com/docs/codex/filters/wpdiscuz_before_subscription_added/
But the field is still visible although I do get an error code and the sub is blocked.
Still, not quite what I was looking for.
All suggestions gratefully received.
John
Hi Asti,
That's a great idea, thanks. I did not know that you could test in CSS for a logged in user, so that's a great learning for me too, double thank you
One thought, I think I'm right that spammers could still find the the field and fill it in so maybe I should also disable it for non logged in users using the filter above? Or will that break something else?
Thanks
John
Hi Asti,
Even better, thanks. That will I think stop the spammers cold?
John
Feature request. Would it be possible that you add this option to the general settings of the plugin? In the "Subscription and User Following section"? Besides i restricted guests from commenting but they still see the option to subscripe to "messages to their own comments" .
Hi,
We want to let you know that the new options are added in the latest version of the wpDiscuz plugin (v. 7.6.1).
Please update the plugin, then go to the Dashboard > wpDiscuz > Forms admin page, edit the current form (if nothing is changed it's called "Default Form") and you'll see the newly added two options:
- Enable subscription bar for guests
- Enable subscription bar for roles
Find out the news about the wpDiscuz latest version here: https://wpdiscuz.com/community/news/wpdiscuz-7-6-1-is-released/#post-20898