Forum: Typo adding digg and delicious bookmark buttons to articles

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
arvind s grover (Guest)
on 2006-03-14 05:49
(Received via mailing list)
I found this helpful page that tells you how to add little links at
the bottom of your posts for readers to bookmark in del.icio.us,
digg.com and other bookmarking sites: http://www.exploding-boy.com/
2006/01/09/add-links-for-delicious-digg-and-more-to-blog-posts/

i am trying to figure out where to put these so they show up at the
end of my posts on: http://www.21apples.org

I am using the Good as Gold theme, not sure if that matters. Should I
be looking in /app/models or in the themes folder or somewhere else?
Any help would be appreciated. Obviously I need to change the
Wordpress specific parts of the code to Ruby specific, and could use
help on that too. If people reply, I will write it up for the Typo wiki.

here is an example of the del.icio.us and digg codes:
del.icio.us: http://del.icio.us/post?url=<?php the_permalink() ?
 >&title=<?php the_title()?>;
digg: http://digg.com/submit?phase=2&URL="<?php the_permalink() ?>

thanks,
arvind
Steve L. (Guest)
on 2006-03-14 07:41
(Received via mailing list)
If your theme contains views/article/_article.rhtml you will want to
make
the change there.  Should be a simple <%=h article.permalink -%> and
<%=h
article.title -%> to get the data you need then.  I am not sure if your
theme will have the _article partial or not, if not you can add one in
and
try it out (model it after app/views/articles/_article.rhtml).

Typically it is called from the theme/views/article/index.rhtml as <%=
render_partial "article", article %>.

-Steve
Pascal (Guest)
on 2006-03-14 08:33
(Received via mailing list)
arvind s grover <arvind <at> grovernetwork.com> writes:

> be looking in /app/models or in the themes folder or somewhere else?
> arvind
>

Arwind,

I have created a small sidebar plugin to do just that.  If there is only
one
article, it lets the user bookrmark it on up to 12 services (the list of
services is configurable in the admin section.  Otherwise, it bookmarks
the
whole site.

My initial goal was not to have to patch typo, and this achieves the
goal.  For
the next version, I'll be looking at posting these at the end of each
article,
but this may have to require a patch of typo that I'll try to keep to a
minimum.

Here's where you can download it:
http://blog.nanorails.com/articles/2006/03/10/rele...

Thanks,
Pascal.
Koen Van der Auwera (Guest)
on 2006-03-14 11:00
(Received via mailing list)
Pascal,

I would like to check it out but the download link seems to be broken.

Koen.
phil (Guest)
on 2006-03-14 20:19
(Received via mailing list)
Here's another example of exactly what you're talking about, just not in
Typo:
http://aymanh.com/tips-to-secure-linux-workstation

Perhaps that would shed some clues.

P

On Tue, 14 Mar 2006 09:56:49 +0100, "Koen Van der Auwera"
<removed_email_address@domain.invalid> wrote:
>>
>> > be looking in /app/models or in the themes folder or somewhere else?
>> > thanks,
>> whole site.
>>
>>
>
>
>
>
--
http://fak3r.com - you dont have to kick it
This topic is locked and can not be replied to.