more findmore plug in help!

Creating and modifying plugins.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

more findmore plug in help!

Post by rj »

I used the default code for Digg in findmore. I would like to incorporate the Digg JS script so I can get a count.

Here is what I have:

<a href="http://digg.com/submit?phase=2&url={$en ... escape:url}" align="left" title="Digg {$entrydata.title|escape}" target="_blank"><img src="{$entrydata.path}digg.jpg" border="0" class="socialbkmark" alt="Digg {$entrydata.title|escape}" /> Digg This! </a>

Here is what I want incorporated into it:

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

How do I do dat? :)

RJ
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm assuming this comes from the http://digg.com/tools/integrate page, and you're trying to get a smarter Digg interface than the simple submission button.

I don't know how the Digg Javascript works, but they say you just "drop it in the page" to make it work. It'd probably be best in the header, but I've never tried it. I'd install the HTML Head Nugget and put their JS link in it. If that didn't work, I'd bet it's actually adding a Digg button to the HTML where it's linked; to test, I'd try putting it in a regular HTML Nugget. If it worked, I'd modify the entries.tpl and put that snip in the entry footer.

In that case, I'd modify it to their second example, so it won't get confused on the front page:

Code: Select all

<script type="text/javascript">
digg_url = '{$entrydata.url|escape:url}';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
Judebert
---
Website | Wishlist | PayPal
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

it writes:

A Blog Entry

into the body


RJ
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I dont know what happened to this thread! :)

Regards to the email article its "A BLOG ENTRY" that gets written.

As to the DIGG, I finally got it where I want and how I want by using the FINDMORE code and tweaking it a little. But to move it to entries would cause me to have to go through all that pain again.

So I am still wondering how to get a digg count to show from the Findmore.
Or if that is possible?

I found out that with both comments and Diggs if if shows nothing or a zero or even a one, its perceived as a loser article. If it has 4 or 5 or 7, it is seen as a winner and worth adding your comment or digg.
Its the way people are. :)

And with DIGG, 6 or 7 diggs puts an article in the top 10%.
You can never get to the top tier competing with the big boys who get hundreds, but you can get up far enough to get something out of it.


RJ
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

So, we could game Digg by just getting 5 friends to Digg all our articles?

Anyway, I'm a little confused on where this thread is going, too. I'm pretty sure we didn't want "A BLOG ENTRY" to be written to the body. Where did you put the code when it did this? Is that from the other thread, by chance?

I assume what's desired is a Digg badge with the digg count on each article. On the single-article page, that should be pretty easy. You'd just modify the entries.tpl to include the Digg script snippet only when {if $is_single_entry}; the article title is the page URL, so the standard, single-line script should work just fine.

If we want badges on the articles in the overview page, where there are many articles, the URL doesn't match the title. We'd have to work with the Findmore code and put something in its template matching the second Digg script, where the article URL and title is specified. I just don't know if {$entrydata.url} is available from the plugin template.
Judebert
---
Website | Wishlist | PayPal
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I replied to the wrong thread or something...
I dont know where I am! :)
Forget digg.

I am all ready to go except on little last thing.

In the same string of things, digg etc... I want EMAIL THIS ARTICLE.

In a block of FINDMORE code I need the mailto: string that grabs the link to the entry article and puts it in the BODY of the email. I can later add the words and graphic and such but I cant seem to find the way to automatically put the article link into the email body window.
I have done this many many times on a website where the article doesn't change. :)

RJ
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Ah, that's on the other thread. I'll just reply to it there.
Judebert
---
Website | Wishlist | PayPal
Post Reply