137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

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:

137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 16, 2007 7:29 pm

Hi again, I'm Valya, I'm from Russia, I making a module for Joomla!

http://code.google.com/p/google-highly- ... ail?id=137
  One line summary

Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds
Describe the task.

del.icio.us is a social bookmarking site

Create a Joomla! module to:

    * Define del.icio.us username
    * Select JSON Feed (Posts, Tags, URL, Network, Fans)
    * Configure properties for JSON Feed
    * Display del.icio.us tags
    * Include CSS from CSS Styling Example page

Resources:

    * del.icio.us

  # JSON Feed http://del.icio.us/help/json/
  # 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)

1. Register your project at Joomlacode
2. When you are ready to release, submit your extension to the Joomla!
Extensions Directory.

Time Limit

2 weeks.
Claimed Dec 16...
Last edited by AmyStephen on Tue Jan 01, 2008 8:30 am, edited 1 time in total.

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Mon Dec 17, 2007 5:26 am

Welcome back, my del.icio.us expert friend.  8)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Mon Dec 17, 2007 5:14 pm

Hi Amy :)

I wrote this module as extended module #136 ( linkroll ) ... here it is

There is many JavaScripts, instead of PHP :)
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: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Tue Dec 18, 2007 3:19 pm

up...

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Tue Dec 18, 2007 3:44 pm

Going as fast as I can!  :P You guys are too fast for me - hope you are using this extra time to check and test! Be back soon!

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Tue Dec 18, 2007 3:46 pm

Ok, thanks :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Thu Dec 20, 2007 11:56 am

up? :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

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

Hi,

Please don't bump. It's against forum rules. We are trying to get to the posts in the order that they have been posted, so actually you only move to the back of the queue when you bump.

In the meantime, though, community, please jump in and give feedback!

Elin
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!.

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by mcsmom » Sun Dec 23, 2007 3:15 am

Hi,

This works really well for me, except for the tags ... they tried to go to my local site instead of to the del.icio.us 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!.

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Sun Dec 23, 2007 3:23 am

OK. We took a look at your module. One one of my test environments (my local host), this worked great!

On the other one of my test environments (accessible to the Internet), this plugin did not work, at all, in fact, I get this error message, and a blank screen:

Code: Select all

Parse error: syntax error, unexpected $end in D:\VirtualWebsites\JoomlaPlace\JoomlaGHOP\modules\mod_delicious_feeds\tmpl\default.php on line 23
If you want to access the site, let me know and I'll activate it, again. Or, if you have some ideas and want me to try, again, let me know.

Thanks!
Amy :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 23, 2007 8:57 am

Thanks, mcsmom, stupid bug :)

AmyStephen, was module uploaded correctly? "Parse error: syntax error" - this can be either everywhere or nowhere...

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

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by mcsmom » Sun Dec 23, 2007 9:13 am

When I uninstalled and then tried to reinstall I got an error message saying that the directory was already being used.

Turned out the module files were still there and the module also was still in the module manager despite having been uninstalled.  So you need to check the uninstall.


Also, make sure to remove the language file.

Tags work great now. :)
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!.

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 23, 2007 9:29 am

I can't repeat your situation :( I'm working on it now...

Thanks, Valya

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Sun Dec 23, 2007 8:50 pm

valen0k wrote: AmyStephen, was module uploaded correctly? "Parse error: syntax error" - this can be either everywhere or nowhere...
Scroll clear to the end of this error code to find the specific location of the error.

Code: Select all

Parse error: syntax error, unexpected $end in D:\VirtualWebsites\JoomlaPlace\JoomlaGHOP\modules\mod_delicious_feeds\tmpl\default.php on line 23
Let me know what you'd like me to try.

Thanks!
Amy :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 23, 2007 8:53 pm

Code: Select all

<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php if(@$username) { 
?>

<? if ( $postenabled ) { ?> <h4>My posts</h4> <div id='diu_post'></div> <? } ?>

<? if ( $tagsenabled ) { ?> <h4>My tags</h4> <div id='diu_tags'></div> <? } ?>

<? if ( $networkenabled ) { ?> <h4>My network</h4> <div id='diu_network'></div> <? } ?>

<? if ( $fansenabled ) { ?> <h4>Fans</h4> <div id='diu_fans'></div> <? } ?>
 
 
<?
if ($showUsername) { ?>
<a href="http://del.icio.us/"><img src="http://images.del.icio.us/static/img/delicious.med.gif" alt="del.icio.us"></a> I am <a href="http://del.icio.us/<?=urlencode($username)?>"><?=$username?></a> on <a href="http://del.icio.us/">del.icio.us</a><br>
<? }
if ($showAddMe) { ?>
<a href="http://del.icio.us/network?add=<?=urlencode($username)?>"><img src="http://images.del.icio.us/static/img/add.gif" alt="add <?=$username?> to your del.icio.us network!"></a> <a href="http://del.icio.us/network?add=<?=urlencode($username)?>">Add me to your network</a>
<? }
} ?><br>
<? if ( $urlenabled ) { ?> <div id='diu_url'></div> <? } ?> // <- this is line 23... error? :(

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Sun Dec 23, 2007 8:56 pm

Not certain why you pasted that code. I do believe that is the line referenced, if that is what you are asking.

Amy :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 23, 2007 8:59 pm

Amy, is php_short_tags enabled on your server? :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Sun Dec 23, 2007 9:17 pm

Do you mean this directive?
; Allow the tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off
Amy :)
Last edited by AmyStephen on Sun Dec 23, 2007 9:19 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: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 23, 2007 9:21 pm

I forget about this directive :( Thanks, Amy! :)
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: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Sun Dec 23, 2007 10:25 pm

Excellent work! You figured out the problem and fixed it! And, you are one step closer to running on all of the various versions of PHP that Joomla! supports, beginning with php v. 4.3.10. I gain more and more respect for the abilities of the Joomla! developers the more I work with various extensions. It's not easy finding that narrow path of allowable code. Again, good job.

++++

The parameters appear to be working correctly, as are the links.

It would be nice to enable the favicons that print to the left of the post links - or leave them off.

Be careful to not start sections  (ex. and ) if that section is not to be included in the output.

I was unable to get the enable URL info working. I entered http://joomla.org and just joomla.org and did not receive any output.

It's looking very good. I'll look for your post.

Amy

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Mon Dec 24, 2007 4:47 pm

Thanks Amy for your comments :)
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: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Mon Dec 24, 2007 6:25 pm

Might want to add a heading for the URL info section and include it after fans.

The URL info links are to the local site, not to del.icio.us.
My posts
My tags
My network
Fans  


I am AmyStephen on del.icio.us
Add me to your network
Almost there,
Amy :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Mon Dec 24, 2007 6:29 pm

Thanks Amy :)
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: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Tue Dec 25, 2007 2:26 am

Looks great! I approve - I think this gives people just about anything they could want out of Del.icio.us and it works great!

Get it posted at Google - we'll try to get a second Judge's opinion. Elin might already approve.

Thanks, very much, for your efforts and patience and hard work on both of these extensions.

Amy :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Tue Dec 25, 2007 1:28 pm

Released at Google :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Sun Dec 30, 2007 6:44 pm

Will you accept my release?

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Tue Jan 01, 2008 8:29 am

I am very sorry about not seeing that earlier!  :P

Thanks, again, for this amazing work.

I hope you have it listed at the JED!

Amy :)

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by valen0k » Tue Jan 01, 2008 4:12 pm

Thanks, Happy New Year!

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

Re: 137 - Create a Joomla! v 1.5 Module to display del.icio.us JSON Feeds

Post by AmyStephen » Tue Jan 01, 2008 8:27 pm

Happy New Year to you, as well!  8)


Locked

Return to “Google's Highly Open Participation Contest”