Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2006, 02:05 PM
New Pligger
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
How do i change story link to url link

How do i change story link to submitted url link?
Reply With Quote
  #2 (permalink)  
Old 06-27-2006, 07:44 PM
Casual Pligger
 
Join Date: May 2006
Location: California
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
edit link_summary.tpl

Change:
<a href="{$story_url}">{$title_short}</a>

To:
<a href="{$url}">{$title_short}</a>


But this may not work for you if you have another bug in libs/link.php
In the 7.2 I downloaded - and in the previous version, the code dumps the original URL and I got it back like this. Maybe this isn't the best way, but it works, otherwise the URL is lost and the table entry is empty.

function store() {
global $db, $current_user;

$this->store_basic();
$link_url = $db->escape($this->url);

// AG they are discarding the URL because $this->url is empty, so fix it
$link_url = $db->escape($_POST["url"]);
__________________
Get News for your Pligg site at NewsBlaze
http://newsblaze.com
Reply With Quote
  #3 (permalink)  
Old 06-28-2006, 09:21 AM
New Pligger
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
newsblaze thanks it worked
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 On
[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
Special Advertising Add-On for banners Tutorial AnAlienHolakres3 Modification Tutorials 18 07-30-2008 09:25 AM
[SOLVED] Direct link to story instead of going throught out.php or /out/ doit Suggestions 10 01-27-2008 05:29 PM
Link to Story after or during Submit dattard General Help 1 12-31-2007 03:27 AM
adding a link to story description codefreaq General Help 1 10-31-2007 11:52 AM
edit story and outgoing link returns blank page crusty General Help 0 08-23-2007 02:30 PM


Search Engine Friendly URLs by vBSEO 3.2.0