Page 1 of 1
digg on my blogg
Posted: Tue Jul 17, 2007 7:14 pm
by izzlik
(now in the right section i hope!

)
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>
Re: digg on my blogg
Posted: Tue Jul 17, 2007 7:51 pm
by garvinhicking
Hi!
You need to configure your s9y to use '
www.rizzler.se' as the base URL instead of 'rizzler.se'.
Regards,
Garvin
Posted: Tue Jul 17, 2007 8:09 pm
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 :/
Posted: Tue Jul 17, 2007 8:23 pm
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
Posted: Tue Jul 17, 2007 8:26 pm
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>
Posted: Tue Jul 17, 2007 8:31 pm
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
Posted: Tue Jul 17, 2007 8:39 pm
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?
Posted: Tue Jul 17, 2007 8:51 pm
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
Posted: Tue Jul 17, 2007 9:15 pm
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 ?
Posted: Tue Jul 17, 2007 9:28 pm
by garvinhicking
Hi!
You're welcome:)
I believe you mean the "Static Page" plugin!
Regards,
Garvin
Posted: Thu Oct 18, 2007 9:05 pm
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.