now working who donated what list.
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
now working who donated what list.
Please see next post.
who donated what list.
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
who donated what list.
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.
who donated what list.
who donated what list.
Can I also this for the version 1.0.0
Greets Terr0r
who donated what list.
Does anyone have any idea where to start to get it to show on the index?
who donated what list.
Greets Terr0r
now working who donated what list.
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.
