Results 1 to 7 of 7
  1. #1
    Constant Pligger NeverHome's Avatar
    Joined
    Jun 2006
    Posts
    125
    Thanks
    Received:0
    Given: 0

    Question RSS link to Pligg site, how to link to source direct?

    On my RSS feed the links point back to my pligg site. What I would really like is:

    • Published RSS feeds link directly to original article
    • Upcoming RSS feeds link back the the page on my Pligg site


    How would this be achieved?

  2. #2
    Constant Pligger NeverHome's Avatar
    Joined
    Jun 2006
    Posts
    125
    Thanks
    Received:0
    Given: 0
    I'm thinking I will need to change something in this part of the rss.php to get the published stories to link directly to the source in the RSS feed...

    echo "<item>\n";
    echo " <title><![CDATA[". $link->title . "]]></title>\n";
    echo " <link>".getmyFullurl("storyURL", $link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</link>\n";
    $vars = array('link' => $link);
    check_actions('rss_add_data', $vars);
    echo ' <source url="'.$link->url.'"><![CDATA['. $link->title .']]></source>';
    echo "\n <description><![CDATA[" . $link->content . " ]]></description>\n";
    if (!empty($link_date))
    echo " <pubDate>".date('D, d M Y H:i:s T', $link->$link_date-misc_timezone*3600)."</pubDate>\n";
    else
    echo " <pubDate>".date('D, d M Y H:i:s T', time()-misc_timezone*3600)."</pubDate>\n";
    echo " <author>" . $user->username . "</author>\n";
    echo " <category>" . htmlspecialchars($category_name) . "</category>\n";
    echo " <votes>" . $link->votes . "</votes>\n";
    echo " <guid>".getmyFullurl("storyURL", $link->category_safe_name($link->category), urlencode($link->title_url), $link->id)."</guid>\n";
    echo "</item>\n\n";
    }
    }
    What should I try adjusting, do you think?

  3. #3
    Constant Pligger NeverHome's Avatar
    Joined
    Jun 2006
    Posts
    125
    Thanks
    Received:0
    Given: 0
    I sure you will all be happy to know that I have fixed ALL my RSS problems! Yeeee ha!!!

  4. #4
    New Pligger scottastley's Avatar
    Joined
    Dec 2010
    Posts
    14
    Thanks
    Received:0
    Given: 0
    What did you do to get it to work?

  5. #5
    Constant Pligger NeverHome's Avatar
    Joined
    Jun 2006
    Posts
    125
    Thanks
    Received:0
    Given: 0
    What I wanted, the end result, was a little out of the ordinary, so I'm not going to go into it here. But now I am able to separate links and display them in a tabbed pane: RSS links of published articles go directly to the source, links of pending articles connect to the story page on my pligg site.My reason for doing this was to make the direct link a "reward" for having a published article (which equates to having a link out from a PR8 page AND without rel="nofollow" attached to the link).

  6. #6
    New Pligger ginowhitaker's Avatar
    Joined
    Jul 2011
    Posts
    1
    Thanks
    Received:0
    Given: 0
    Could you post the part about updating the rss to link directly to the source? That would be incredibly helpful.

  7. #7
    Senior Member foofoo's Avatar
    Joined
    Aug 2010
    Posts
    130
    Thanks
    Received:0
    Given: 0
    I would like to accomplish the same thing. By putting your question here expecting help, it would be nice if you could explain here, how you did it. Whats the code changes you made to make it work like in your example. Me and others would find this very usefull and it would be nice if you shared your knowledge.!

Similar Threads

  1. short link = direct link
    By ideatr in forum Questions & Comments
    Replies: 2
    Last Post: 05-10-2011, 05:29 PM
  2. direct outgoing story link
    By meckenrode in forum Questions & Comments
    Replies: 0
    Last Post: 05-23-2008, 08:35 AM
  3. Change link to direct link
    By ismart in forum Questions & Comments
    Replies: 0
    Last Post: 05-07-2008, 06:39 AM
  4. direct avatar link to user page?
    By jamfull in forum Questions & Comments
    Replies: 4
    Last Post: 02-04-2008, 11:11 PM
  5. Another direct link ask => direct link on home
    By billyboylindien in forum Questions & Comments
    Replies: 3
    Last Post: 10-03-2007, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg