Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3660804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:14:29+00:00 2026-05-19T01:14:29+00:00

I have an established open-source software project , and I’ve been fortunate enough to

  • 0

I have an established open-source software project, and I’ve been fortunate enough to get donations from users. My website uses Drupal (6.19) and I’d like to add a block that shows a list of recent donations, e.g.:

Thank you for supporting OpenSTV
John Smith $5 12/20/2010

Mary Kay $20 12/5/2010
Ingwe Malmstein $50 11/27/2010

I’ve never done any custom work in Drupal, but my idea to do this was to:

  1. Create a custom content type called Donation that has only a title (did this already)
  2. Create a new Donation entry for each donation (did this too)
  3. Create a block that shows the 5 most recent donations
  4. Have the block appear in the sidebar (know how to do this)

I don’t know how to write the php code for 3. Is there a simple example of doing something like this that I could copy from? Or is there entirely different way of doing this that would work better?

I’ve never written any php code so the simpler the better. Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T01:14:30+00:00Added an answer on May 19, 2026 at 1:14 am

    Use the Views module. Here is a quote about it (from its project page):

    You need Views if:

    • You like the default front page view, but you find you want to sort it differently.
    • You like the default taxonomy/term view, but you find you want to sort it differently; for example, alphabetically.
    • You use /tracker, but you want to restrict it to posts of a certain type.
    • You like the idea of the ‘article’ module, but it doesn’t display articles the way you like.
    • You want a way to display a block with the 5 most recent posts of some particular type.
    • You want to provide ‘unread forum posts’.
    • You want a monthly archive similar to the typical Movable Type/Wordpress archives that displays a link to the in the form of "Month, YYYY (X)" where X is the number of posts that month, and displays them in a block. The links lead to a simple list of posts for that month.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I have reached a sort of an impasse. In my open source project,
I have an ASP.NET MVC website where I've established a system of Permissions. There
Suppose I wanted to create an open source Windows Forms project written in .NET.
When deciding whether you are getting involved in a fairly big open source project
I have now tried for hours getting xDebug (2.0.5 compiled from source) to work
I have established communication with a remote server..The remote server has exposed an event.When
I have a plug-in vector established using System.AddIn that accepts the body of a
.NET's ProviderBase was established in the 2.0 release of the .NET Framework. Have there
I'm venturing out of the world of .NET and into the world of open-source.
I have been using the fantastic jQuery library for quite some time and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.