my 1st component: matrix of avatars, like myspace

17 years 11 months ago #13403 by Raj
I created a module that takes an SQL query for search and then displays user avatars as a MySpace-like matrix. In the backend, the admin can specify which of 16 preprogrammed SQL queries to govern the search. The queries can do things like display the top profiles, display the newest members, or display random members (just like the MamboMe modules, except this combines their functionality into a single module).

The module is nice, and it works, but modules want to appear across many pages, they don't take parameters from a URL, and the search results are already set by the admin.

So...the module needs to be rewritten as a component.

Unfortunately, this is my first PHP program, so I'm not up to speed on any of this. As I understand it...every component needs a minimum of three files:

1) admin.my-new-component.php, which contains task-information.
2) admin.my-new-component.html.php, a preprocessor for final presentation.
3) tmpl/my-new-component.html, which contains output that will be displayed.

Is this right?

Roger

Please Log in to join the conversation.

17 years 10 months ago #15769 by micoots
Hi,

I'm just wondering, have you made any progress on this?

Michael.

Please Log in to join the conversation.

17 years 10 months ago #15852 by Raj
Yeah, it's actually been released. There's a thread about it elsewhere on the forum. Search for Avatar Matrix Gallery or some combination of terms.

And there's a new version sitting on my hard drive, awaiting a security code review from Nick.

Raj

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.163 seconds

Facebook Twitter LinkedIn