Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008, 08:05 AM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
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!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 11:20 AM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
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... :)
Reply With Quote
  #3 (permalink)  
Old 07-27-2008, 05:57 AM
New Pligger
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
any solution?

I am also very interested in a clean solution for that.
Reply With Quote
  #4 (permalink)  
Old 07-27-2008, 01:08 PM
Constant Pligger
 
Join Date: Feb 2007
Posts: 183
Thanks: 13
Thanked 24 Times in 19 Posts
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.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0