digg on my blogg

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

digg on my blogg

Post by izzlik »

(now in the right section i hope! :P)

Hello, im trying to get digg to work with my blogg posts but once i press the digg button it's to the wrong domain.

if you go to my newest entry at http://www.rizzler.se/index.php?/archiv ... blog!.html and hold the mouse over the digg button it shows only http://rizzler.se as the url.

in the code bellow, how can i make where it say http://www.rizzler.se/index.php?/archiv ... ENTRY.html
?

i guess in need to place the code that echo entry name, but what is it ?

Code: Select all

<script type="text/javascript">
digg_url = 'WEBSITE_URL';
digg_bgcolor = '#ff9900';
digg_skin = 'compact';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: digg on my blogg

Post by garvinhicking »

Hi!

You need to configure your s9y to use 'www.rizzler.se' as the base URL instead of 'rizzler.se'. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

if i understand that would be setting the "path / URL TO THE BLOG" to "http://www.rizzler.se/" right? if yes it's already set to that :/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

How did you add that digg stuff to your entry? Via the entries.tpl file? There you must use "{$entry.link}" for the URL variable!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

yes it's in entries.pl :)

so, do you mean like this bellow?

Code: Select all

<script type="text/javascript">
digg_url = '{$entry.link}';
digg_bgcolor = '#ff9900';
digg_skin = 'compact';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yeah, that should do it! In that variable you should see the link to an entry, if you put that into the entries.tpl file.

Maybe add another line of code that reads "// test" inside the javascript, so that you can see if you are editing the right file?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

i added the code into entry.pl so it looks like bellow

<div class="serendipity_entry_body">
{$entry.body} <br><br><script type="text/javascript">digg_url = '{$entry.link}';</script><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
<span class="continue_reading"><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a></span></div>
{/if}
now when i visit http://www.rizzler.se the digg button is bussted giving me an error
"javascript:alert("Digg.com Digg This Button Error\n\nThe code implemented by the creator of this page has the following problem:\n\nThe URL does not appear to be a properly formed hostname.\n\nVisit http://digg.com/tools/integrate for more help in debugging.")
and if i change digg_url = '{$entry.link}' to digg_url = 'www.rizzler.se' the digg button shows but gives no link erlier, is it {$entry.link} messing it up?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Try to use

digg_url = '{$entry.rdf_ident}';

instead? I didn't know that digg required the full HTTP-address, so the $entry.link only contained a relative link.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

Now that works perfectly! thank for your help garvinhicking :) you rock! ;)

while im at it, i know there was an addon to make child pages/subpages in serendipity, do you know what the name of that addon was ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're welcome:)

I believe you mean the "Static Page" plugin! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Michele2
Regular
Posts: 39
Joined: Mon Aug 06, 2007 11:19 pm

Post by Michele2 »

Any ideas why this would be grabbing the correct information from Digg, but not have a live link?

For example, this page: http://www.blogaboutcrafts.com/index.ph ... ities.html

None of the pages have a live link even if the page has already been dugg.
Post Reply