013 - Create a module listing the names of authors and number of articles
-
- 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
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
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.
-
- 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
Great. Is the code available? If you post it here we can review it and offer comments.
-
- 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
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
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.
-
- 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
must i have extra function (like date etc...) or just what they ask me
- mcsmom
- 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
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!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
-
- 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
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.proairgun wrote: must I write a code extremely different of the original
Good luck with your project and thanks for your contributions to the Joomla! community,
Amy
-
- Joomla! Champion
- Posts: 7018
- Joined: Wed Nov 22, 2006 3:35 pm
- Location: Nebraska
- Contact:
-
- 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
(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.
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.
You do not have the required permissions to view the files attached to this post.
-
- 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
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?
-
- 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
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, 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
-
- 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
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.
Thanks for pointing that out.
-
- 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
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
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
-
- 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
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
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
-
- 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
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.
-
- 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
Thank you socioguy.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.
proairgun - this is not your task. Please select an open task if you hope to participate in this contest.
Amy
-
- 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
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.
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.
-
- 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
Are you including all of those files in your XML?
mod_topusers.php
index.html
helper.php
tmpl/default.php
tmpl/index.html
mod_topusers.php
index.html
helper.php
tmpl/default.php
tmpl/index.html
-
- 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
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
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
-
- 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
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!
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.
-
- 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
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
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
-
- 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
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
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
-
- 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
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
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
-
- 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
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.
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.
-
- 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
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
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
-
- 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
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.
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.
-
- 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
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.
-
- 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
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
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