PayPal Donation Extension

Donation bar under the header - PayPal Donation Extension

Donation bar under the header

by Buu » Thu Nov 24, 2016 12:15 pm

Hi, how can i move the donation bar under the header, and also to appear on all forums, not only when you acces the forum.
And another tip, can you make the donation bar as a link, when a user click`s it, do sent him to the donation page?
Buu
Registered User
Posts: 105
Joined: Wed Oct 16, 2013 5:50 pm

Re: Donation bar under the header

by Skouat » Thu Nov 24, 2016 6:26 pm

Hi,

Buu wrote:how can i move the donation bar...

On your phpBB root directory, go to ext/skouat/ppde/styles/prosilver/template/event and create an HTML file with the following content.

Code: Select all

<!-- IF PPDE_STATS_INDEX_ENABLE and (PPDE_GOAL_ENABLE or PPDE_RAISED_ENABLE or PPDE_USED_ENABLE) -->
<!-- INCLUDE donate_stats.html -->
<!-- ENDIF -->


This new file must be named with the appropriate filename, based on the template event list.

eg: overall_header_content_before.html for adding content on all pages before the main content, after the header.

Buu wrote:can you make the donation bar as a link, when a user click`s it, do sent him to the donation page?

A link is already available near the donation bar. So, I will not add this.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donation bar under the header

by Buu » Thu Nov 24, 2016 10:25 pm

i tried that, and it appears only in Forum, not in topics or subforums.
The donation bar is under the header now.
Buu
Registered User
Posts: 105
Joined: Wed Oct 16, 2013 5:50 pm

Re: Donation bar under the header

by Stoertie » Fri Jun 01, 2018 12:46 pm

Hi Skouat,

I tried to set the bar to the top like you explained her:
Skouat wrote: On your phpBB root directory, go to ext/skouat/ppde/styles/prosilver/template/event and create an HTML file with the following content.

Code: Select all

<!-- IF PPDE_STATS_INDEX_ENABLE and (PPDE_GOAL_ENABLE or PPDE_RAISED_ENABLE or PPDE_USED_ENABLE) -->
<!-- INCLUDE donate_stats.html -->
<!-- ENDIF -->
This new file must be named with the appropriate filename, based on the template event list.

eg: overall_header_content_before.html for adding content on all pages before the main content, after the header.
I named the new file "overall_header_content_before.html" and load it to "...ext/skouat/ppde/styles/prosilver/template/event", but nothing happend.
Is there something missing in your advice, that's as plain as dayfor a phpBB-specialist?
Or is it possible that it doesn't work because of the already installed extension "phpbb/boardannouncements"

Sorry for this question, I'm only a stupid admin from Germany... ;-)

My phpBB version is 3.2.2, and I installed the develop-3.2.x-version of your ext.

Maybe you can help me?

regards
Michael

Short additional information:
I just update the Bord-Announcement extension from 1.0.4 to 1.0.6. Now the donation-bar is at the top AND at the buttom of the page.
Stoertie
Registered User
Posts: 68
Joined: Mon Aug 24, 2015 5:58 am
Location: Europe/Germany
Name: Michael

Re: Donation bar under the header

by Skouat » Fri Jun 01, 2018 5:53 pm

Hi Michael,

When you made this kind of change you must purge the cache of phpBB.
After updating Board Announcement the cache is automatically purged. That's why your change have been applied.

To remove the stats from the bottom, delete the file "index_body_stat_blocks_after.html" ;)

Cheers.

ps: For your next post, please open your own topic. 1 author / 1 issue / 1 topic. Thx.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donation bar under the header

by Stoertie » Sat Jun 02, 2018 5:46 am

Hi Skouat,

thanks, that works... (after purging the cache ;) )

have a nice weekend
Michael
Stoertie
Registered User
Posts: 68
Joined: Mon Aug 24, 2015 5:58 am
Location: Europe/Germany
Name: Michael