136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

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
User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Mon Dec 10, 2007 2:28 pm

Hi, I'm Valya, Im from Russia & I'm creating Joomla! v 1.5 Module for del.icio.us linkrolls, ( http://code.google.com/p/google-highly- ... ail?id=136 ).
Task claimed by by v.golev
December 10th

Added
Create a Joomla! v 1.5 Module for del.icio.us linkrolls
Describe the task.

del.icio.us is a social bookmarking site

Create a Joomla! module to:

    * Define del.icio.us username
    * Display options on linkrolls page
    * Include CSS from CSS Styling Example page

Resources:

    * Linkroll Options - http://del.icio.us/help/linkrolls
    * CSS Styling - http://del.icio.us/doc/feeds/js/styling
    * To install Joomla! on an XAMPP localhost:

  # XAMPP - http://www.apachefriends.org
  # Download Joomla! - http://help.joomla.org/content/view/1942/302/
  # Install Joomla! on a localhost -
http://help.joomla.org/content/view/1947/306/

    * Coding resources:

  # The core code! :-)
  # Plugins - http://forum.joomla.org/index.php?topic=233628
  # Model View Controller -
http://dev.joomla.org/component/option, ... orld_mvc1/
  # Modules and Components - http://www.jlleblanc.com/blogcategory/0/
  # Internationalization -
http://forum.joomla.org/index.php/topic ... msg1102267

    * IRC #joomlaGHOP on freenode

Skills needed

    * Knowledge of PHP
    * Knowledge of Joomla! v 1.5 Extension Development
    * Creativity and problem solving skills

Difficulty

Basic
Work Product

    * Installable Joomla! v 1.5 extension(s) with internationalization
support.

Licensing

All code must be created using the GNU General Public License version 2.
http://www.gnu.org/licenses/old-license ... .html#SEC4

Documentation written for this task must be made available under the
Joomla! Electronic Documentation License.
Extra Credit (Optional)
Time Limit

2 weeks.

Claimed: Dec 10 Due: Dec 24

Google Task

[me=AmyStephen]Changed subject slightly for sorting all threads to match against Google resource  :)[/me]
Last edited by AmyStephen on Sun Dec 16, 2007 5:23 am, edited 1 time in total.

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Mon Dec 10, 2007 4:03 pm

hm... something like this  :-* ?
i'm not sure that it is final decision but I would like to know if I've understood the task well
You do not have the required permissions to view the files attached to this post.
Last edited by valen0k on Mon Dec 10, 2007 5:24 pm, edited 1 time in total.

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Tue Dec 11, 2007 5:48 pm

hm... say anything please  :-\

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by AmyStephen » Tue Dec 11, 2007 8:55 pm

Sorry!

I am installing your extension right now - and will be back with my comments.

Thanks!
Amy :)

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by AmyStephen » Tue Dec 11, 2007 10:54 pm

Good start! But, if you read through all of the instructions - there is a bit missing.

From the instructions (I added to your first post), you need to add a module parameter for each of the linkroll options:

1. # of times to show
2. title (you have that)
3. show tags
4. show notes
5. icon 4 options
6. bullets 2 options, plus none
7. sort 2 options.
8. only these tags (text box)
9. show your del.icio.us username
10. show 'add me to your network' link

Images from above

Download those icons and bullets and create an image folder in your module (instead of linking to delicious)

This should be loaded as Javascript:

Code: Select all

<script type="text/javascript" src="http://del.icio.us/feeds/js/<?=urlencode($username)?>?title=<?=urlencode($title)?>"></script>
Should be

Code: Select all

$doc = &JFactory::getDocument();
$doc->addScript(xxxxx);
Then, remove those style tags from default.php and put into their own file in tmpl

All of this needs to go into a CSS file of it's own, that you load.

Code: Select all

<style type="text/css">
.delicious-posts { margin: 0.2em; border: 1px solid #ddd; padding: 0.25em; font-family: sans-serif; font-size: 90%; }
.delicious-posts ul, .delicious-posts li, .delicious-banner { margin: 0; padding: 0; } 
.delicious-banner { background: url(http://images.del.icio.us/static/img/delicious.small.gif) left center no-repeat; padding-left:10px;}
.delicious-post { border-top: 1px solid #eee; padding: 0.25em; font-size: 80% }
.delicious-odd { background-color: #f8f8f8 }
.delicious-banner a { font-size: 80% }
.delicious-posts a:hover { text-decoration: underline }
.delicious-posts a { text-decoration: none; color: #a15426; display: block; padding: 0.3em }
.delicious-post a { color: #04a1ff }
</style>
Add this, instead:

Code: Select all

// Load CSS 
$document->addStyleSheet( JURI::base() . 'modules/mod_delicious_linkroll/tmpl/delicious.css', 'text/css', null, array( ' id' => 'StyleSheet' ) );
Internationalization

From task description:
Follow those instructions in that post.

Error Messages
You could print a simple message, without a link to the Module Editor.

What is that URL?

Code: Select all

<?php } else { ?>
Del.icio.us username not specified yet. You can do it at <a href='http://joomla._gog/administrator/index.php?option=com_modules&client=0'>admin panel</a>.
<?php } ?>
HTH,
Amy :)

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Wed Dec 12, 2007 2:25 pm

Thanks Amy :) I'm rewriting module now

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Fri Dec 14, 2007 5:29 pm

Then i'm using

Code: Select all

$doc = &JFactory::getDocument();
$doc->addScript($src);
it adds js to the HEAD section

do i have to rewrite it or do anything else?

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by AmyStephen » Fri Dec 14, 2007 6:31 pm

I'm not certain what your question is. Sorry!

Amy :)

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Fri Dec 14, 2007 6:39 pm

Then i'm using

Code: Select all

$doc = &JFactory::getDocument();
$doc->addScript($src);
it adds to the section in HTML...
but the del.icio.us linkroll code must be placed in the

do i have to rewrite the JS code? maybe you have got another decision? :)

Valya  :)

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Fri Dec 14, 2007 6:47 pm

I'm sorry but when i was solving other problem i've understood that i should rewrite the JS code, so i have no more questions, thank you.

Valya :)

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by AmyStephen » Fri Dec 14, 2007 7:02 pm

No problem, thanks, Valya!

Amy :)

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Fri Dec 14, 2007 8:49 pm

New release! :D

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

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by AmyStephen » Sat Dec 15, 2007 3:43 am

My only comment would be to add  JURI::base() the to Javascript statement.
$doc->addScript("modules/mod_delicious_linkroll/tmpl/delicious.js");
$doc->addStyleSheet( JURI::base() . 'modules/mod_delicious_linkroll/tmpl/delicious.css', 'text/css', null, array( ' id' => 'StyleSheet' ) );
We'll try to get some more eyes on this. I'll see if we can get a second judge to look.

Would love community feedback, as well.

Otherwise, looks great to me!

Amy :)

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Sat Dec 15, 2007 4:17 pm

Thanks Amy for your comment! :)
You do not have the required permissions to view the files attached to this post.

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Sat Dec 15, 2007 7:23 pm

Now i need to wait while second judge looking my module? :)

User avatar
depresz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Thu Nov 29, 2007 4:14 pm
Location: Piotrków Trybunalski, Poland
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by depresz » Sat Dec 15, 2007 9:13 pm

is weekend and it seems that they have free-days (without work). Didn't see that someone had checked today...
Monday will hard for them ;D They are only people  :D
Great Hacking Opportunity Project
numbers? sure! 3d 22h on forum, about 500h of work <- this is real GHOP

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by AmyStephen » Sun Dec 16, 2007 5:22 am

Looks like you got my changes in - I've been using your extension since I tested it, first. It's working great - I love it - many will love it.

Please post it on Google and I'll close that task. After I do so, you are free to choose another task, if you desire.

If you have not registered and placed this at JoomlaCode, please do. This will be popular with many people.

Thanks for your contributions to the Joomla! Community!
Amy :)

User avatar
valen0k
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Dec 10, 2007 2:23 pm
Contact:

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by valen0k » Sun Dec 16, 2007 10:10 am

Thanks Amy :)
Your project has been submitted into the pending projects queue. The administrators of this site will have to approve it before it becomes active.
(c) JoomlaCode

I uploaded my module at http://code.google.com/p/google-highly- ... ail?id=136 :)

I think, work on the module was finished, but then GHOP'll be ended i'll try to add more functionality (if i'll contrive them ;) )

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

Re: 136 - Create a Joomla! v 1.5 Module for del.icio.us linkrolls

Post by mcsmom » Sat Dec 22, 2007 11:07 am

Nice work! Now that the module is on joomlacode, if you want you can make it available on the extensions site.

:)
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!.


Locked

Return to “Google's Highly Open Participation Contest”