013 - Create a module listing the names of authors and number of articles

Google's Highly Open Participation Program tries to get young students into Open Source and Joomla! specifically. Everyone is welcome, there are not limits. You can be a coder, documenter, tester, translator to help out. Jump in and start helping!
Locked
proairgun
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Dec 01, 2007 3:49 pm

013 - Create a module listing the names of authors and number of articles

Post by proairgun » Sat Dec 01, 2007 4:17 pm

i written the code. ;)

must I write a code extremely different of the original  ???

Google Task

[me=AmyStephen]Changed subject slightly for sorting all threads to match against Google resource  :)[/me]

+++

Socioguy is claimant Claimed Nov 28 Due Dec 26
Last edited by AmyStephen on Thu Jan 03, 2008 8:58 am, edited 1 time in total.

kdevine
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 200
Joined: Thu Mar 02, 2006 8:38 pm
Location: Baltimore, MD

Re: 13-Create a module listing the names of authors and number of articles writ

Post by kdevine » Sat Dec 01, 2007 4:28 pm

Great. Is the code available? If you post it here we can review it and offer comments.

proairgun
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Dec 01, 2007 3:49 pm

Re: 13-Create a module listing the names of authors and number of articles writ

Post by proairgun » Sat Dec 01, 2007 4:57 pm

1 week and it's finish (school works and friends  :-* are priority)
i'm just a "beginner" and i discover function in the code which i dont imagine before.

ps: excuse me my english plz, i'm french and i'm only 14 years
Last edited by proairgun on Sat Dec 01, 2007 5:02 pm, edited 1 time in total.

proairgun
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Dec 01, 2007 3:49 pm

Re: 13-Create a module listing the names of authors and number of articles writ

Post by proairgun » Sat Dec 01, 2007 5:14 pm

must i have extra function (like date etc...) or just what they ask me ???

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7897
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: 13-Create a module listing the names of authors and number of articles writ

Post by mcsmom » Sat Dec 01, 2007 5:47 pm

If you add extra options that make it easier for the user to do what she wants, of course that is preferable. :)
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 13-Create a module listing the names of authors and number of articles writ

Post by AmyStephen » Sat Dec 01, 2007 6:51 pm

proairgun wrote: must I write a code extremely different of the original  ???
No. You can adapt something that you find useful in the core code. That's the beauty of open source and the GPL in particular.

Good luck with your project and thanks for your contributions to the Joomla! community,
Amy :)


socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Sun Dec 02, 2007 7:50 pm

(Thanks Amy!)

Here is a zip file that can be installed on Joomla. I would appreciate feedback from the Joomla community on ways to improve it before submitting it to GHOP. Some ideas: adding more options (like what?), less hard coding?, more specific? Please let me know - Thanks. :D
You do not have the required permissions to view the files attached to this post.

kdevine
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 200
Joined: Thu Mar 02, 2006 8:38 pm
Location: Baltimore, MD

Re: 013 - Create a module listing the names of authors and number of articles

Post by kdevine » Sun Dec 02, 2007 8:20 pm

Uh, oh. socioguy this was done as a 1.0.x module. I think the rules are to do a 1.5 module. Amy (or any of the judges) can you confirm that?

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Sun Dec 02, 2007 10:22 pm

Yes, Kevin, you are correct. This must be done for Joomla! v 1.5. 

Socioguy, also make certain to read the Process link I provided above to understand how we need to proceed with each of the GHOP tasks.

Thanks!
Amy :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Sun Dec 02, 2007 11:54 pm

Oh...Hmm...that's going to be a problem isn't it? Dreamhost preinstalled 1.0.x on my server and didn't even bother to check the version number. Oh well, I'm going to look at it and see if the code is drastically different between versions or if I can do a quick fix.

Thanks for pointing that out.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Mon Dec 03, 2007 12:00 am

Check out the Google Wiki for instructions of how to create a local host and install Joomla!.

Make certain to read your project description closely, and feel free to ask questions if you have confusion. Also, read the link I provided above. In it, is a recommendation to read the stickys in the forum area. That information can help you understand the task, as well. Again, ask questions all you want - we are here to help you be successful!

Thanks,
Amy :)

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Mon Dec 03, 2007 12:09 am

I think we have a problem here.

Are both of you - proairgun and socioguy working on Task 13 - Create a module listing the names of authors and number of articles written.?

A task can only be assigned to one contestant.

[email protected] was recognized as the task claimant in Comment 13 by one of the Joomla! Judges.

Who is that? proairgun or socioguy? Or, are one of you posting in the wrong thread?

Thanks for your prompt response since we need to get this sorted out,
Amy :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Mon Dec 03, 2007 4:36 am

winged_g is my google account (just to clear things up). I will be working on that module and I will ask the board if I have any questions. Thanks for all of your help.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Mon Dec 03, 2007 8:11 pm

socioguy wrote: winged_g is my google account (just to clear things up). I will be working on that module and I will ask the board if I have any questions. Thanks for all of your help.
Thank you socioguy.

proairgun - this is not your task. Please select an open task if you hope to participate in this contest.

Amy :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Thu Dec 06, 2007 2:17 am

Okay, I think I've run into a problem:

I'm trying to install the module by uploading a zip file containing: the index files, mod_topusers.php, mod_topusers.xml, helper.php, and tmpl/default.php - but after uploading the zip, the mod_topusers directory only contains the mod_topusers.php and xml files. The helper.php, tmpl/default.php and indexes aren't there! What am I doing wrong?

Aaron.

kdevine
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 200
Joined: Thu Mar 02, 2006 8:38 pm
Location: Baltimore, MD

Re: 013 - Create a module listing the names of authors and number of articles

Post by kdevine » Thu Dec 06, 2007 4:33 am

Are you including all of those files in your XML?

   
        mod_topusers.php
        index.html
        helper.php
        tmpl/default.php
        tmpl/index.html
   

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Sat Dec 08, 2007 4:20 am

Hi Aaron -

Is there something we can do to help? A quick status update would be great. Also, we added a number of cool coding tasks if you want another one when this one is complete.

Thanks!
Amy :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Sat Dec 08, 2007 2:25 pm

Hey Amy and folks,

Sorry about not being more active on the forum (I've been busy with schoolwork, other programming, etc.) but I got around to finishing up the new Top Contributors module for 1.5! There's just one thing I don't know how to change: after the module is installed, it's default title is "TopContributors" but I want it to be "Top Contributors". Feel free to suggest any other changes that could make it better. The install zip is attached.

-Aaron :)

P.S. kdevine: The xml filename declaration thing worked. Thanks!
You do not have the required permissions to view the files attached to this post.
Last edited by socioguy on Sat Dec 08, 2007 2:34 pm, edited 1 time in total.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Sun Dec 09, 2007 5:43 am

Thanks, Aaron for the quick response.

I don't think there is anything you can do on the default title not having spaces right now. That' s a little bug.

Helper -

1. Why not get the name in the query, instead of a second trip to the db (actually another trip for each person)?

I'd add in the author name, joining to the user table.

Format the query on additional lines for readability (look at core queries.)

2. Add a 2nd order by so that you are sorting by a) count of published articles DESC,  and then, b) author name ASC.

3. Remove commented out code before your final. (Sure you planned that already).

4. Can you somehow change (1 posts) to (1 post)? (picky, huh?  ;))

IF you want to take this further, I'd recommend consider these comment I provided someone else:

1. Consider adding an option buttons for each user group, to include or exclude from the Top User list:

Include Super Administrator Articles? Yes No
Include Administrator Articles? Yes No
Include Publisher Articles? Yes No
Include Editor Articles? Yes No
Include Author Articles? Yes No

2. Consider adding a section and category text box for inclusion. (ex. see mos_latestnews )

3. Internationalization is not difficult, if you want to give it a try. Important, too.

This is another good social networking module that will be used.

You are doing good. Thanks for your contributions to the Joomla! community,

Amy  :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Mon Dec 10, 2007 4:22 pm

Cool, thanks for the tips.

I made all the modifications to the helper file and will post a new version shortly after I implement the other recommendations (my internet connection has been going on and off so I may not get it up right away).

If anyone else has suggestions, please let me know. :)

-Aaron

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Tue Dec 18, 2007 4:26 am

Aaron -

How you doing? Have you had a chance to submit a new version?

Hope to hear from you soon. You have a great start and this will be a great extension!

Take care,
Amy :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Tue Dec 18, 2007 7:42 am

Hi everyone,

I 'm sorry again for not getting back to you sooner. I had to leave the country unexpectedly for a funeral and things have been very busy. I have postponed work on it until I get back (around 12/21) and will try to finish it before the deadline.

Thanks.  8)

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Tue Dec 18, 2007 2:29 pm

Aaron -

No problem. I am sorry to hear about the funeral. Thank you for letting us know. We will talk, again, when you are able.

Amy :)

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Tue Dec 25, 2007 7:17 pm

Ok, I have a new version.

This one has all of the features you recommended (except for internationalization). I threw it together kind of hastily so be on the look out for any errors I left behind. If there is a more efficient way of doing the user group thing (or anything else), please let me know. I think it's almost ready to submit!

-Aaron.
You do not have the required permissions to view the files attached to this post.

socioguy
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Dec 02, 2007 5:21 pm

Re: 013 - Create a module listing the names of authors and number of articles

Post by socioguy » Fri Dec 28, 2007 7:18 pm

Hi, it's been a few days now and I was wondering if I should submit my module. Please let me know as soon as possible b/c I think it's due in soon.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 013 - Create a module listing the names of authors and number of articles

Post by AmyStephen » Sat Dec 29, 2007 5:51 pm

Aaron -

It looks and works well.

The code looks good to me - it could use some "cleaning up" with nicer tabbing, etc., but not a big problem. It's more of a "pride" thing when other developers look at your code - kind of like straightening up your house for visitors. ;)

More important would be the Internationalization - which is not terribly difficult, nor would it take very long. Check out this post and see what you think.

I accept this, as is. I would encourage the Internationalization, but that's an "extra credit", not required item. If you post this on Google, I'll mark it complete, either way.

Great work - it is a good Social Networking app and will get some action.

Thanks for participating with Joomla! in the GHOP! In the next few days, we do hope to have more coding tasks added, if you are interested.

Amy :)


Locked

Return to “Google's Highly Open Participation Contest”