Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-01-2006, 09:18 PM
New Pligger
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Linking to "long" URLs

For an example, take this URL

http://www.circuitcity.com/ssm/HP-Pa...oductDetail.do

I put that in the "submit story" box and when the story is submitted, the link ends up like this

Code:
http://www.circuitcity.com/ssm/HP-Pavilion-Desktop-PC-A1209N-/sem/rpsm/oid/14...
Is there a way to stop it from doing this??
Reply With Quote
  #2 (permalink)  
Old 01-01-2006, 09:20 PM
New Pligger
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Never mind, solved it.

In "utils.php" change line 50 to this

function txt_shorter($string, $len=200) {

You can edit "200" to whatever you want (default is 80)
Reply With Quote
  #3 (permalink)  
Old 01-01-2006, 09:30 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Thats works, but thats not the problem. The problem is my fault, in /libs/link.php


Line 232 and 234 say...

echo '<a href="'. $url_short. '">'. $title_short. '</a>';


and should say

echo '<a href="'. $url. '">'. $title_short. '</a>';


This *should* be fixed in the next release.
__________________
- Ash
Reply With Quote
  #4 (permalink)  
Old 01-01-2006, 11:34 PM
New Pligger
 
Join Date: Dec 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Ah cool, thanks
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
Has anyone got Friendly Urls (Url Method 2) working? revolver General Help 11 05-08-2008 12:32 AM
[SOLVED] Voting for IDEAS, not linking to URLs rtspub General Help 2 12-15-2007 12:50 PM
Suggestion: Friendlier urls for user page revolver General Help 0 07-06-2007 12:44 PM
Problem with URLs linking to pages not found frhs00 Bug Report 7 12-29-2006 05:35 PM
Simplified Friendly Urls idea revolver Suggestions 0 11-07-2006 01:20 PM


Search Engine Friendly URLs by vBSEO 3.2.0