Mian Shahid
Well-known member
Anyway to get complete list of all time Donner's and/or each Champaign all Donner's? currently, their are two lists, both are showing 5 users.
Not at this time, no. Although as an administrator you are able to view who has donated to which campaign by navigating to Donate -> Campaign -> Click the Donations link on the side.Anyway to get complete list of all time Donner's and/or each Champaign all Donner's? currently, their are two lists, both are showing 5 users.
<xf:if is="$campaign.canDonate() && $campaign.payment_profile_ids && $a">
<xf:button href="{{ link('donate/donate', $campaign) }}"
overlay="true"
icon="payment"
class="button--cta">
{{ phrase('thdonate_donate') }}
</xf:button>
</xf:if>
You may try this case:
Admin is alloweds to do anything,
Registered is allowed to do all user things.
No we set "Donate" to no for Admin and Regeistered, but the Button Donate is still there, also Admin can donate.
You may watch your "if, then" in templates or files?
Donate
No (Details)
Registered
No
Administrative
No
But i can see the button, and i am able to donate!
This is happening for those who are only using the Administrator based user group? Those who haven't been added as an administrator within the Groups & permissions -> Staff -> Administrators section of the Admin CP? I just wanted to check!thdonate_campaign_wrapper
Code:<xf:if is="$campaign.canDonate() && $campaign.payment_profile_ids && $a"> <xf:button href="{{ link('donate/donate', $campaign) }}" overlay="true" icon="payment" class="button--cta"> {{ phrase('thdonate_donate') }} </xf:button> </xf:if>
$campaign.canDonate() seems to be true, while
Donate
No (Details)
Registered
No
Administrative
No
That is quite interesting, allow me to check with our team and I'll get back to youIn donate.php you have
Code:$view = $this->view('ThemeHouse\Donate:Donation\NewComments', 'th_donate_campaign_new_comment', $viewParams);
but there is no template with this name: th_donate_campaign_new_comment
public function canView(&$error = null)
{
if (!$this->Content) {
return false;
}
$visitor = \XF::visitor();
if ($this->message_state == 'moderated') {
if (!$visitor->hasPermission('th_donate', 'viewModeratedComments')
&& (!$visitor->user_id || $visitor->user_id != $this->user_id)
) {
$error = \XF::phraseDeferred('th_donate_requested_comment_not_found');
return false;
}
} elseif ($this->message_state == 'deleted') {
if (!$visitor->hasPermission('th_donate', 'viewDeletedComments')) {
$error = \XF::phraseDeferred('th_donate_requested_comment_not_found');
return false;
}
}
return true;
}
You'll want to add a display condition to the widget configuration to only show it to logged-in users.My guest permissions are set to never to prevent guest from viewing anything, yet the donate widget still appears on the home page. how can I keep this from happening?
You'll want to add a display condition to the widget configuration to only show it to logged-in users.
This thread outlines how to do it.
$xf.visitor.user_id
In donate.php you have
Code:$view = $this->view('ThemeHouse\Donate:Donation\NewComments', 'th_donate_campaign_new_comment', $viewParams);
but there is no template with this name: th_donate_campaign_new_comment
Thank you for reporting both of these @Robert9. I've went ahead and got these reported to our issue tracker.Seems it is a missing phrase and a missing template?
Code:public function canView(&$error = null) { if (!$this->Content) { return false; } $visitor = \XF::visitor(); if ($this->message_state == 'moderated') { if (!$visitor->hasPermission('th_donate', 'viewModeratedComments') && (!$visitor->user_id || $visitor->user_id != $this->user_id) ) { $error = \XF::phraseDeferred('th_donate_requested_comment_not_found'); return false; } } elseif ($this->message_state == 'deleted') { if (!$visitor->hasPermission('th_donate', 'viewDeletedComments')) { $error = \XF::phraseDeferred('th_donate_requested_comment_not_found'); return false; } } return true; }
I have this same issue. I am trying to shut off the Donate $AMOUNT from showing in their user cardsPrivacy settings for the user to show who can see what they donated is not working for us. No matter how many times I mark it as "nobody," it's continuing to show...
View attachment 227546View attachment 227547
We use essential cookies to make this site work, and optional cookies to enhance your experience.