Author Topic: Donaters List Box  (Read 14512 times)

Offline Miker1029

  • New
  • *
  • Posts: 2
Donaters List Box
« on: November 30, 2015, 09:21:51 AM »
Hey, I left a message on SMF till I found your Forum...

SOOO, After searching your forum I kind of found what I wanted (From 2011), Which Obviously Not going to be Compatible....

My Question is can you either direct or Guide my on Creating a Donations List Box On SMF 2.0.11 and Ez-Portal....

I lost the Link to the Code but here is what I have and a ScreenShot Of what it's showing:


Code: [Select]

if (!defined('SMF'))
   die (
'Hacking Attempt...');

$limit 10;   // Amount of donors to retrieve.  (default: last 10)
$results $smcFunc['db_query']('''
            SELECT *
            FROM smf_treas_donations
            ORDER BY smf_treas_donations.id DESC
            LIMIT {int:limit}'
'limit' => !empty($limit) ? $limit '0',
$context['donors']['list'] = array();
$month strftime('%m'forum_time());

while (
$row $smcFunc['db_fetch_assoc']($results))
strftime('%m'$row['payment_date']) == $month)
$context['donors']['list'][$row['id']] = array(
'id' => $row['id'],
'name' => $row['custom'],
'date' => $row['payment_date'],

And the .PHP for The Block:

Code: [Select]
   global $sourcedir, $context;

   require_once($sourcedir. '/donation-marquee.php');

   foreach ($context['donors']['list'] as $donor)
      echo '<span style="color: #ff0000;"> ', $donor['name'], ' </span>';
   echo '</marquee>';

I had to do a Little Editing for the DB access, and Get RID of the Marquee, But I'd like to add the Amount Donated, And I'm REALLY a Noob at DB or .PHP Scripting, I tried changing one of the Variables to: "settle_amount" and of course it didn't work....Took The Name Away....

AND could you help with the An Anonymous Check, AS this code doesn't check and Shows the Donator Anyway....Assuming due to age....

I did alot of googling and searching and as you can see I did get "Somewhere".....

Any Help Appreciated,


P.S. The Top Donate Box I'll probably be getting RID of and Replaced with yours, I've had that on there awhile....

SITE LINK: http://android-x86.net

N/M I'm old with bad eyes since I was 20, I just noticed it on the bottom of the Box.....

Feel free to delete this, Sorry to waste time/space...

EDIT to EDIT:  Can you tell me where in the code (Which one) is to Enlarge that Field??  I see a BUNCH of Sizes, Colors, Etc...


« Last Edit: November 30, 2015, 10:15:25 AM by Miker1029 »

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: Donaters List Box
« Reply #1 on: December 04, 2015, 08:33:22 AM »
Hi Mike,

I take it that you just want to increase size of the donor list?
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Miker1029

  • New
  • *
  • Posts: 2
Re: Donaters List Box
« Reply #2 on: December 05, 2015, 05:27:21 AM »

Maybe give em a little incentive....


Offline NealRev

  • New
  • *
  • Posts: 1
Re: Donaters List Box
« Reply #3 on: June 05, 2017, 10:27:49 PM »
Hi Mike,

I take it that you just want to increase size with bathmate hercules of the donor list?

So how do you do this?
« Last Edit: November 03, 2017, 06:23:59 PM by NealRev »


Please Support Us!

Something for Here
Donate with PayPal!
September Goal: $40.00
Due Date: Sep 30
Total Receipts: $0.00
Below Goal: $40.00
Site Currency: USD