PortalParts.com Site

 Forum Index > Community > Site Feedback New Topic Post Reply
 Digg This
 |  Printable Version
ironmax
 October 31 2007 04:45 AM (Read 2877 times)  
Forum Big Cheese
Big Cheese

Status: offline

Registered: 05/29/03
Posts: 123

Blaine,

I like the idea on how you got the Digg This icon and stories for the individual stories on the main page for submission in the Digg links. How did you do that and would you post the changes here in this topic.

I tried something like this but it only shows on the full story with the actual link to the story. WHat I'd like is to have the full link on the front page for each story. This was placed in storytext.thtml

PHP Formatted Code

<script type="text/javascript">
        digg_url = $permalink = COM_buildUrl ($_CONF['site_url']
                                       . '/article.php?story=' . $story);
        </script>
        <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
 

The above only still gave the base URL to the site without the story.

Michael


Ironmax Your have the right to say whatever wish. But just as you may not open my door to say it, you also may not put it in my email box. Your rights end
 
Profile Email Website PM
Quote
Blaine
 October 31 2007 22:45 PM  
Forum Admin
Admin

Status: offline

Registered: 03/01/02
Posts: 3576

Try added this to storytext.thtml and the featuredstorytext.thtml

PHP Formatted Code

<script type="text/javascript">
digg_url = '{article_url}';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
 


Please consider contributing to support my efforts ..
 
Profile Email Website PM
Quote
Content generated in: 0.19 seconds
New Topic Post Reply



 All times are CDT. The time is now 08:50 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content