Results 1 to 4 of 4
  1. #1
    Casual Pligger swese44's Avatar
    Joined
    Apr 2008
    Posts
    39

    Change outgoing URLs to to actual URLs

    I want to make it more appealing for site owners to integrate my Pligg service into their sites by making my outgoing links able to pass along Google PageRank.

    I want to change the outgoing link URLs to the actual submitted URLs when a story is fully displayed. This will be easy enough to do in link_summary.tpl by checking if $pagename eq 'story'.

    But I don't know how to get the actual submitted URL. The $url and $story_url variables are internal links. I suppose that $url is used to keep stats on clicks?

    1. What variable can I use to get the story's real URL?
    2. Are there any kind of stats or system processes I will screw up by doing this?


    Thanks!

  2. #2
    Casual Pligger swese44's Avatar
    Joined
    Apr 2008
    Posts
    39
    Well I think I got this one figured out. Here is what I now have in link_summary.tpl:


    Code:
    {if $pagename eq "story"}
        <a href="<?php echo rawurldecode($this->_vars[enc_url]); ?>" target="_blank">{$title_short}</a>
    {else} 
        <a href="{$story_url}">{$title_short}</a>
    {/if}

    Somebody please tell me if I'm doing something dangerous...

  3. #3
    New Pligger sebastianv's Avatar
    Joined
    Jul 2008
    Posts
    1

    any solution?

    I am also very interested in a clean solution for that.

  4. #4
    Constant Pligger Andtony's Avatar
    Joined
    Feb 2007
    Posts
    226
    There's build in feature for this in Pligg.
    Check your admin panel -> configure YouSite -> Outgoing

    Change Enable outgoing links to false and you'll get clean urls in story pages.

Similar Threads

  1. How can I change urls to domain.com/story-title
    By GospelLabs in forum Questions & Comments
    Replies: 0
    Last Post: 11-07-2007, 06:26 AM
  2. Ampersand(&) problem on Outgoing URLs
    By AnAlienHolakres3 in forum Questions & Comments
    Replies: 0
    Last Post: 09-18-2007, 11:30 AM
  3. Direct outgoing URLs in Title
    By eric42 in forum Questions & Comments
    Replies: 4
    Last Post: 04-01-2007, 09:20 AM
  4. Outgoing URLS! HELP!
    By tytyguy in forum Questions & Comments
    Replies: 2
    Last Post: 01-30-2007, 05:36 PM
  5. No way to edit actual URLs?
    By rafiki in forum Questions & Comments
    Replies: 3
    Last Post: 04-13-2006, 02:35 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 Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting