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!
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Change outgoing URLs to to actual URLs |
| |||
|
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... :) |
| |||
| any solution?
I am also very interested in a clean solution for that.
|
| |||
|
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. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I change urls to domain.com/story-title | GospelLabs | General Help | 0 | 11-07-2007 09:26 AM |
| Ampersand(&) problem on Outgoing URLs | AnAlienHolakres3 | Bug Report | 0 | 09-18-2007 02:30 PM |
| Direct outgoing URLs in Title | eric42 | General Help | 4 | 04-01-2007 12:20 PM |
| Outgoing URLS! HELP! | tytyguy | Installation and Upgrade Help | 2 | 01-30-2007 08:36 PM |
| Simplified Friendly Urls idea | revolver | Suggestions | 0 | 11-07-2006 01:20 PM |




Linear Mode

