Possible New Implementation?

Download and support for PhpBB3 Forum Goal MOD
User avatar
Vox Populi
BBCoder III
BBCoder III
Posts: 135
Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:

Possible New Implementation?

Post by Vox Populi »

Hey Stoker,

I don't like making suggestions to a MOD as it's the authors baby however, I feel compelled to ask you something.

How about, in the LAST box (below the images), adding a Donation Goal. It'll require three more items in the ACP, current, goal, off or on.

Just a thought. Then everything is together without having a bunch of goal here at the header, goal on the footer etc.

I'd like SITE GOAL as mine is on the whole site for donations but I can change the wording my self. Again, just a thought.....

Thanks for the great work you are doing. :thumb:
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Possible New Implementation?

Post by Stoker »

Its doable. I will look at it when I get the time.
Board rules! No PM support
User avatar
Vox Populi
BBCoder III
BBCoder III
Posts: 135
Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:

Possible New Implementation?

Post by Vox Populi »

NP. I know you are busy and have your plate full. Again, it's just a thought currently.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Possible New Implementation?

Post by martin123456 »

link changed in my post
Last edited by martin123456 on 06 Dec 2011, 00:20, edited 2 times in total.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Possible New Implementation?

Post by Stoker »

Open index.php
Find:

Code: Select all

if (!empty($config['donation_goal_enable']) &&  $config['donation_goal'] > 0)
{
$donation_goal_number = ($config['donation_achievement'] * 100) / $config['donation_goal'];
$template->assign_vars(array(
   'DONATION_GOAL_NUMBER'            => $donation_goal_number,
));
}
Replace with:

Code: Select all

if (!empty($config['donation_goal_enable']) &&  $config['donation_goal'] > 0)
{
$donation_goal_number = ($config['donation_achievement'] * 100) / $config['donation_goal'];
$donation_goal_rest = $config['donation_goal'] - $config['donation_achievement'];
$template->assign_vars(array(
   'DONATION_GOAL_NUMBER'           => number_format($donation_goal_number),
   'DONATION_GOAL_REST'            	=> $donation_goal_rest,
));
}
Open language/en/common.php
Find:

Code: Select all

'GOAL_REMAINING'			=> 'Remaining',
After add:

Code: Select all

'TOTAL_FORUM_DONATION_GOAL'		=> 'Donation goal',
	'TOTAL_FORUM_DONATIONS'			=> 'Total donations',
Open styles/prosilver/template/forum_goal_body.html
Find:

Code: Select all

</tbody>
Before add:

Code: Select all

<!-- IF (DONATION_INDEX_ENABLE and S_DONATE_ENABLED and DONATION_INDEX_BOTTOM) and (DONATION_ACHIEVEMENT_ENABLE or DONATION_GOAL_ENABLE) -->
			<tr>
				<td style="width: 160px; font-size:12px;">{L_TOTAL_FORUM_DONATION_GOAL} <strong>{DONATION_GOAL}</strong> {DONATION_GOAL_CURRENCY}</td>
				<td style="width: 160px; font-size:12px;">{L_TOTAL_FORUM_DONATIONS} <strong>{DONATION_ACHIEVEMENT}</strong> {DONATION_GOAL_CURRENCY}</td>
				<td style="width: 160px; font-size:12px;"><!-- IF DONATION_GOAL_NUMBER < 100 -->{L_GOAL_REMAINING} <strong>{DONATION_GOAL_REST}</strong> {DONATION_GOAL_CURRENCY}<!-- ELSE --><em>{L_GOAL_REMAINING_ZERO}</em> <img src="{ROOT_PATH}images/forum_goal_ok.png" width="12" height="12" alt="" /><!-- ENDIF --></td>
				<td><div style="background:url('{ROOT_PATH}images/forum_goal_grey.png') repeat-x; background-color: #cccccc; border: 1px solid black; width:100%;"><div style="background:url('{ROOT_PATH}images/forum_goal_<!-- IF DONATION_GOAL_NUMBER < 34 -->red<!-- ELSEIF DONATION_GOAL_NUMBER < 67 -->yellow<!-- ELSE -->green<!-- ENDIF -->.png') repeat-x;background-color: #008040; color: white; font-weight:bold;<!-- IF DONATION_GOAL_NUMBER < 100 --> border-right: 1px solid black;<!-- ENDIF --> max-width:100%;  width:{DONATION_GOAL_NUMBER}%; height:12px;"><span style="padding-left:25px; font-size:10px; line-height:12px;">{DONATION_GOAL_NUMBER}%</span></div></div></td>
			</tr>
			<!-- ENDIF -->
Board rules! No PM support
User avatar
Vox Populi
BBCoder III
BBCoder III
Posts: 135
Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:

Possible New Implementation?

Post by Vox Populi »

Thanks Stoker.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Possible New Implementation?

Post by Stoker »

Let me know if it works okay.
I think I remembered everything :D
Board rules! No PM support
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Possible New Implementation?

Post by Stoker »

Oooopsie :)
You need to enable Display Donation Stats Bottom
And you can delete the code from index_body.html now we have added it to forum_goal_body.html
Board rules! No PM support
User avatar
Vox Populi
BBCoder III
BBCoder III
Posts: 135
Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:

Possible New Implementation?

Post by Vox Populi »

I'll check it out shortly.

EDIT: It appears I need to have your Donate Mod installed for the edits to function, correct?
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

Possible New Implementation?

Post by Solidjeuh »

Stoker wrote:Oooopsie :)
You need to enable Display Donation Stats Bottom
I can't see that anywhere ..
http://i43.tinypic.com/313lxs8.png
Also not in the donation mod..
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
Locked