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 aboveDownload those icons and bullets and create an image folder in your module (instead of linking to delicious)
This should be loaded as Javascript:Code:
<script type="text/javascript" src="http://del.icio.us/feeds/js/<?=urlencode($username)?>?title=<?=urlencode($title)?>"></script>
Should be
Code:
$doc = &JFactory::getDocument();
$doc->addScript(xxxxx);
Then, remove those style tags from default.php and put into their own file in tmplAll of this needs to go into a CSS file of it's own, that you load.
Code:
<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:
// Load CSS
$document->addStyleSheet( JURI::base() . 'modules/mod_delicious_linkroll/tmpl/delicious.css', 'text/css', null, array( ' id' => 'StyleSheet' ) );
InternationalizationFrom task description:
Quote:
Follow those instructions in that post.
Error MessagesYou could print a simple message, without a link to the Module Editor.
What is that URL?
Code:
<?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
