Page 1 of 1

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

Posted: Sun Dec 16, 2007 7:29 pm
by valen0k
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...

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

Posted: Mon Dec 17, 2007 5:26 am
by AmyStephen
Welcome back, my del.icio.us expert friend.  8)

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

Posted: Mon Dec 17, 2007 5:14 pm
by valen0k
Hi Amy :)

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

There is many JavaScripts, instead of PHP :)

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

Posted: Tue Dec 18, 2007 3:19 pm
by valen0k
up...

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

Posted: Tue Dec 18, 2007 3:44 pm
by AmyStephen
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!

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

Posted: Tue Dec 18, 2007 3:46 pm
by valen0k
Ok, thanks :)

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

Posted: Thu Dec 20, 2007 11:56 am
by valen0k
up? :)

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

Posted: Sat Dec 22, 2007 11:13 am
by mcsmom
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

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

Posted: Sun Dec 23, 2007 3:15 am
by mcsmom
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.

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

Posted: Sun Dec 23, 2007 3:23 am
by AmyStephen
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 :)

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

Posted: Sun Dec 23, 2007 8:57 am
by valen0k
Thanks, mcsmom, stupid bug :)

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

Valya :)

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

Posted: Sun Dec 23, 2007 9:13 am
by mcsmom
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. :)

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

Posted: Sun Dec 23, 2007 9:29 am
by valen0k
I can't repeat your situation :( I'm working on it now...

Thanks, Valya

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

Posted: Sun Dec 23, 2007 8:50 pm
by AmyStephen
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 :)

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

Posted: Sun Dec 23, 2007 8:53 pm
by valen0k

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? :(

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

Posted: Sun Dec 23, 2007 8:56 pm
by AmyStephen
Not certain why you pasted that code. I do believe that is the line referenced, if that is what you are asking.

Amy :)

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

Posted: Sun Dec 23, 2007 8:59 pm
by valen0k
Amy, is php_short_tags enabled on your server? :)

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

Posted: Sun Dec 23, 2007 9:17 pm
by AmyStephen
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 :)

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

Posted: Sun Dec 23, 2007 9:21 pm
by valen0k
I forget about this directive :( Thanks, Amy! :)

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

Posted: Sun Dec 23, 2007 10:25 pm
by AmyStephen
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

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

Posted: Mon Dec 24, 2007 4:47 pm
by valen0k
Thanks Amy for your comments :)

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

Posted: Mon Dec 24, 2007 6:25 pm
by AmyStephen
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 :)

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

Posted: Mon Dec 24, 2007 6:29 pm
by valen0k
Thanks Amy :)

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

Posted: Tue Dec 25, 2007 2:26 am
by AmyStephen
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 :)

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

Posted: Tue Dec 25, 2007 1:28 pm
by valen0k
Released at Google :)

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

Posted: Sun Dec 30, 2007 6:44 pm
by valen0k
Will you accept my release?

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

Posted: Tue Jan 01, 2008 8:29 am
by AmyStephen
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 :)

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

Posted: Tue Jan 01, 2008 4:12 pm
by valen0k
Thanks, Happy New Year!

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

Posted: Tue Jan 01, 2008 8:27 pm
by AmyStephen
Happy New Year to you, as well!  8)