By Zeosing on Friday, 18 May 2018
Posted in Technical Issues
Likes 0
Views 601
Votes 0
We notice when a user suscribe ( to anything, post, category, etc), in this time all work fine, after subscription a button appear to cancel it.

But whe the user return to web ( ie reload page or revisit page ) the subscription status don´t show, only show again the suscribe button, instead of unsubscribe button.

Any idea ?

The code involving subscription :


<div class="eb-help-subscribe">
<i class="fa fa-envelope"></i>
<a href="javascript:void(0);" class="link-subscribe <?php echo $subscription->id ? 'hide' : ''; ?>" data-blog-subscribe data-type="entry" data-id="<?php echo $post->id;?>"><?php echo JText::_('COM_EASYBLOG_SUBSCRIBE_BLOG'); ?></a>

<a href="javascript:void(0);" class="link-subscribe <?php echo $subscription->id ? '' : 'hide'; ?>" data-return="<?php echo $return; ?>" data-blog-unsubscribe data-subscription-id="<?php echo $subscription->id;?>"><?php echo JText::_('COM_EASYBLOG_UNSUBSCRIBE_ENTRY'); ?></a>
</div>


Thanks as always.
Hi there,

May i know how exactly you subscribe them? if using guest(non-logged in) user, that how it should behave currently as it will only check based on their emails(subscribed or not).

If not, can you provide us with the back end and FTP access to your site to check on this issue? Please advice.
·
Friday, 18 May 2018 15:12
·
0 Likes
·
0 Votes
·
0 Comments
·
How can we access to subscription category id ?, because this is the problem, on entry view, it show well

data-subscription-id="4"


But in category view no:


data-subscription-id=""


So this is the problem, the system don´t see the subscription id and of course it can´t show unsubscribe.
·
Friday, 18 May 2018 15:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Can you provide us with more details on how to replicate this so that we can have a better picture regarding this issues.

And is it possible for you to provide us with the back end and FTP access to your site to check on this issue? Please advice.
·
Friday, 18 May 2018 16:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh man, what a pain, it´s easy, of course if you have code skill:


  1. Category view (single)
  2. Subscription code
  3. The php output mises the category subscription ID


So if the case the miss code was category id we use:


<?php echo $category->title ;?>


Moreover like we know the id of subscription, if we put in on data-subscription-id="" all works fine, so it´s a matter to render the subscription id . we try this , but don´t work:


<?php echo $subscription->id ?>


So in our case the miss is Subscription ID, so we need to access it , very easy to understand, we are developers, and pay developers subscription, so our support it´s not based on access FTP, fix it, and bye .

Our support need to understand certain things they are beyond a simple fix it, and go away.

If not, we are wasting our money.

Thanks.
·
Friday, 18 May 2018 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
We are very, very disappointed , wo of course found the solution, but not by your help, and this is why we are disappointing, because this problem solves with a bit of how EB is Coded, and of course until today we think you have more knowledge in this than we.

The problem solves, viewing category view archive (/com_easyblog/views/categories/view.html.php) and here you need to undestand how EB Accessing to data subscriptions.

So the solution is :


data-blog-unsubscribe data-subscription-id="<?php echo $subscriptionId;?>"


Because this is the variable that store subscription id in this view.

As we say, we are disappointing, maybe it´s because on other times Mark solves all our questions and of course he have more knowledge, but would be preferible to not answer us until you have the knowledge, than this answers.
·
Friday, 18 May 2018 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Zeosing,

Can you check my following explanation and see whether i got your correct meaning?

Blog entry page
------------------------
1. When the registered user click on subscribe button on the blog entry page, once the subscription is done then refresh the page.
2. When the registered user click on unsubscribe button, it will unsubscribe it correctly.

Single category page
-----------------------------
1. When the registered user click on subscribe button on the blog entry page, once the subscription is done then refresh the page.
2. When the registered user click on unsubscribe button, it doesn't show anything from the pop up and that unsubscribe action is not working right?

If yes, it seems like that is bug, can you download my attached files and replace into these following file and see how it goes?
JoomlaFolder/components/com_easyblog/themes/wireframe/helpers/headers/category.php
JoomlaFolder/administrator/components/com_easyblog/includes/themes/helpers/headers.php


Note : Make sure you using latest version of Easyblog.
·
Friday, 18 May 2018 18:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, Alex, this is another way to solved it. , modifying helper header. Thanks
·
Friday, 18 May 2018 18:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Ops, i doesn't realised you already found the solution before i reply just now.

I am very sorry about that we can't help much you here quickly because all our developer rushing implement support GDPR for existing extension currently.

By the way, thanks for reported this issue, this bug will be solve in next release version as well.
·
Friday, 18 May 2018 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, don´t worry we now GDPR is a pain, and we don´t complain about the speed, we complain about answers that don´t help us , as we are developers and a FTP access won´t solve any problem in the developer way only could create even more.

Thanks for all Alex
·
Friday, 18 May 2018 20:06
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome, glad that your issue is resolved now.
·
Saturday, 19 May 2018 00:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post