now working who donated what list.
now working who donated what list.
I have worked out a scrolling marquee that you can change in the acp along with the body/success/cancel to add who donated and how much.
Please see next post.
Please see next post.
Last edited by phenomkw on 13 Jan 2012, 09:08, edited 1 time in total.
who donated what list.
Please make sure to make back ups of your files before you start to edit.
in phpmyadmin go to your forum database and
find:
insert:
open: adm/style/acp_donation.html
Find:
add after:
open: includes/acp/acp_donation.php
find:
add after:
find:
add after:
find:
add after:
open: language/en/mods/info_acp_donation.php
find:
add after:
open: donation.php
find:
add after:
find:
add after:
open: styles/prosilver/template/index_body.html
find:
add after:
open: index.php
find:
add after:
now purge all cache and refresh template.
now go to acp .mods tab and scroll to the bottom you will see the Donation From Config box. Type in what you want and save.
Subsilver2 edits can be found here
viewtopic.php?f=42&t=1822
in phpmyadmin go to your forum database and
find:
Code: Select all
phpbb_donation
Code: Select all
donation_from
open: adm/style/acp_donation.html
Find:
Code: Select all
<fieldset>
<legend>{L_DONATION_CANCEL_SETTINGS}</legend>
<dl>
<dt><label for="donation_cancel">{L_DONATION_CANCEL}:</label><br />
<span>{L_DONATION_CANCEL_EXPLAIN}</span></dt>
<dd><textarea id="donation_cancel" name="donation_cancel" rows="8" cols="45">{DONATION_CANCEL}</textarea></dd>
</dl>
</fieldset>
Code: Select all
<fieldset>
<legend>{L_DONATION_FROM_SETTINGS}</legend>
<dl>
<dt><label for="donation_from">{L_DONATION_FROM}:</label><br />
<span>{L_DONATION_FROM_EXPLAIN}</span></dt>
<dd><textarea id="donation_from" name="donation_from" rows="8" cols="45">{DONATION_FROM}</textarea></dd>
</dl>
</fieldset>
find:
Code: Select all
'donation_success' => utf8_normalize_nfc(request_var('donation_success', '', true)),
Code: Select all
'donation_from' => utf8_normalize_nfc(request_var('donation_from', '', true)),
Code: Select all
$donation_success = isset($donation['donation_success']) ? $donation['donation_success'] : '';
Code: Select all
$donation_from = isset($donation['donation_from']) ? $donation['donation_from'] : '';
Code: Select all
'DONATION_SUCCESS' => $donation_success,
Code: Select all
'DONATION_FROM' => $donation_from,
find:
Code: Select all
'DONATION_CANCEL_EXPLAIN' => 'Enter the text you want displayed on the cancel page<br />This is the page users are redirected to after they cancel a donation.<br /><br />HTML is allowed.',
Code: Select all
'DONATION_FROM_SETTINGS' => 'Donation From Config',
'DONATION_FROM' => 'Donation From text',
'DONATION_FROM_EXPLAIN' => 'Enter the Donators you want displayed.',
find:
Code: Select all
$donation_success = isset($donation['donation_success']) ? $donation['donation_success'] : '';
Code: Select all
$donation_from = isset($donation['donation_from']) ? $donation['donation_from'] : '';
Code: Select all
'DONATION_SUCCESS' => html_entity_decode($donation_success),
Code: Select all
'DONATION_FROM' => html_entity_decode($donation_from),
find:
Code: Select all
<p style="text-align:center;"><!-- IF DONATION_ACHIEVEMENT_ENABLE -->{L_WE_HAVE_ACHIEVED} <strong><!-- IF DONATION_ACHIEVEMENT > 0 -->{DONATION_ACHIEVEMENT}<!-- ELSE -->{DONATION_GOAL_NUMBER}<!-- ENDIF --></strong><!-- IF DONATION_GOAL_CURRENCY_ENABLE --> {DONATION_GOAL_CURRENCY}<!-- ENDIF --> {L_WE_HAVE_ACHIEVED_IN}<!-- ENDIF --><!-- IF DONATION_GOAL_ENABLE and DONATION_GOAL > 0 --> {L_OUR_DONATION_GOAL} <strong>{DONATION_GOAL}</strong><!-- IF DONATION_GOAL_CURRENCY_ENABLE --> {DONATION_GOAL_CURRENCY}<!-- ENDIF -->.<!-- ENDIF --></p>
Code: Select all
<p style="text-align:center;"><marquee>{DONATION_FROM}</marquee></p>
find:
Code: Select all
$template->assign_vars(array(
'DONATION_GOAL_NUMBER' => $donation_goal_number,
));
}
Code: Select all
$sql = 'SELECT * FROM ' . DONATION_TABLE;
$result = $db->sql_query($sql);
$donation = array();
while ($row = $db->sql_fetchrow($result))
{
$donation[$row['config_name']] = $row['config_value'];
}
$db->sql_freeresult($result);
$donation_from = isset($donation['donation_from']) ? $donation['donation_from'] : '';
$template->assign_vars(array(
'DONATION_FROM' => html_entity_decode($donation_from),
));
now go to acp .mods tab and scroll to the bottom you will see the Donation From Config box. Type in what you want and save.
Subsilver2 edits can be found here
viewtopic.php?f=42&t=1822
Last edited by phenomkw on 16 Jan 2012, 03:34, edited 3 times in total.
who donated what list.
How do I add that "donation_from"?
who donated what list.
you have to log into your sites cpanel then go to your phpmyadmin.
from there you will have to go to your forum database.
then
find:
then at the top click on insert
then in the first top right box put
donation_from
and click GO.
and you are done.
from there you will have to go to your forum database.
then
find:
Code: Select all
phpbb_donation
then in the first top right box put
donation_from
and click GO.
and you are done.
- Terr0r
- BBCoder V
- Posts: 339
- Joined: 04 May 2011, 00:47
- BBCodes: 100
- Location: The Netherlands
- Contact:
who donated what list.
Is there a screenshot or live demo from this ?
Greets Terr0r
Greets Terr0r
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
For my MODS and BBCodes or other things that I have made take a look here
who donated what list.
Here are some screen shots.I hope its what you want.
- Terr0r
- BBCoder V
- Posts: 339
- Joined: 04 May 2011, 00:47
- BBCodes: 100
- Location: The Netherlands
- Contact:
who donated what list.
Thanks and for wich version of the donation MOD is this ?
Can I also this for the version 1.0.0
Greets Terr0r
Can I also this for the version 1.0.0
Greets Terr0r
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
For my MODS and BBCodes or other things that I have made take a look here
who donated what list.
I do not know if it will work for older version or not. I am using version 1.0.3.
Does anyone have any idea where to start to get it to show on the index?
Does anyone have any idea where to start to get it to show on the index?
- Terr0r
- BBCoder V
- Posts: 339
- Joined: 04 May 2011, 00:47
- BBCodes: 100
- Location: The Netherlands
- Contact:
who donated what list.
I think the same thing waht you do for the donate_body.html try that I think it will work
Greets Terr0r
Greets Terr0r
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
For my MODS and BBCodes or other things that I have made take a look here
now working who donated what list.
Updated code to work on forum index.
also if you are using the Collapsible-Categories and would like to have your donation bar in one here is the code i am using for that.
open: index_body.html
find:
replace with:
if you are not using this marquee add-on
remove:
from the above code
enjoy.
also if you are using the Collapsible-Categories and would like to have your donation bar in one here is the code i am using for that.
open: index_body.html
find:
Code: Select all
<!-- IF DONATION_INDEX_ENABLE and (DONATION_ACHIEVEMENT_ENABLE or DONATION_GOAL_ENABLE) -->
<h3><a href="{U_DONATE}">{L_DONATIONS_INDEX}</a></h3>
<!-- IF DONATION_GOAL_ENABLE and DONATION_ACHIEVEMENT_ENABLE and DONATION_GOAL > 0 -->
<div style="background:url('{ROOT_PATH}images/prog_grey.png') repeat-x; background-color: #cccccc; border: 1px solid black; width:100%; margin-top: 2px;"><div style="background:url('{ROOT_PATH}images/prog_green.png') repeat-x;background-color: #008040; color: white; font-weight:bold; max-width:100%; width:{DONATION_GOAL_NUMBER}%; height:24px;"><span style="padding-left:25px; font-size:18px;">{DONATION_GOAL_NUMBER}%</span></div></div>
<!-- ENDIF -->
<p style="text-align:center;"><!-- IF DONATION_ACHIEVEMENT_ENABLE -->{L_WE_HAVE_ACHIEVED} <strong><!-- IF DONATION_ACHIEVEMENT > 0 -->{DONATION_ACHIEVEMENT}<!-- ELSE -->{DONATION_GOAL_NUMBER}<!-- ENDIF --></strong><!-- IF DONATION_GOAL_CURRENCY_ENABLE --> {DONATION_GOAL_CURRENCY}<!-- ENDIF --> {L_WE_HAVE_ACHIEVED_IN}<!-- ENDIF --><!-- IF DONATION_GOAL_ENABLE and DONATION_GOAL > 0 --> {L_OUR_DONATION_GOAL} <strong>{DONATION_GOAL}</strong><!-- IF DONATION_GOAL_CURRENCY_ENABLE --> {DONATION_GOAL_CURRENCY}<!-- ENDIF -->.<!-- ENDIF --></p>
<!-- ENDIF -->
Code: Select all
<!-- IF DONATION_INDEX_ENABLE and (DONATION_ACHIEVEMENT_ENABLE or DONATION_GOAL_ENABLE) -->
<div class="forumlist">
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt><a href="{U_DONATE}">{L_DONATIONS_INDEX}</a></dt>
</dl>
</li>
</ul>
</div>
<!-- IF DONATION_GOAL_ENABLE and DONATION_ACHIEVEMENT_ENABLE and DONATION_GOAL > 0 -->
<!-- IF SCRIPT_NAME eq 'index' --><div class="trigger active"></div><!-- ENDIF -->
<div class="collapsethis">
<div style="background:url('{ROOT_PATH}images/prog_grey.png') repeat-x; background-color: #cccccc; border: 1px solid black; width:100%; margin-top: 2px;"><div style="background:url('{ROOT_PATH}images/prog_green.png') repeat-x;background-color: #008040; color: white; font-weight:bold; max-width:100%; width:{DONATION_GOAL_NUMBER}%; height:24px;"><span style="padding-left:25px; font-size:18px;">{DONATION_GOAL_NUMBER}%</span></div></div>
<!-- ENDIF -->
<p style="text-align:center;"><!-- IF DONATION_ACHIEVEMENT_ENABLE -->{L_WE_HAVE_ACHIEVED} <strong><!-- IF DONATION_ACHIEVEMENT > 0 -->{DONATION_ACHIEVEMENT}<!-- ELSE -->{DONATION_GOAL_NUMBER}<!-- ENDIF --></strong><!-- IF DONATION_GOAL_CURRENCY_ENABLE --> {DONATION_GOAL_CURRENCY}<!-- ENDIF --> {L_WE_HAVE_ACHIEVED_IN}<!-- ENDIF --><!-- IF DONATION_GOAL_ENABLE and DONATION_GOAL > 0 --> {L_OUR_DONATION_GOAL} <strong>{DONATION_GOAL}</strong><!-- IF DONATION_GOAL_CURRENCY_ENABLE --> {DONATION_GOAL_CURRENCY}<!-- ENDIF -->.<!-- ENDIF --></p>
<p style="text-align:center;"><marquee>{DONATION_FROM}</marquee></p>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
</div><!-- ENDIF -->
remove:
Code: Select all
<p style="text-align:center;"><marquee>{DONATION_FROM}</marquee></p>
enjoy.