[TH] Donate

[TH] Donate 1.1.8 Patch Level 1

No permission to download
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.
 
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.
 
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?
 
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
 
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!
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
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! :)
 
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
 
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
That is quite interesting, allow me to check with our team and I'll get back to you :)
 
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;

    }
 
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?
 
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.
 
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
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;

    }
Thank you for reporting both of these @Robert9. I've went ahead and got these reported to our issue tracker.
 
Privacy 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...



1.webp2.webp
 
Top Bottom