Full description in frontpage, NOT summary?

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2007, 10:29 AM
cmstheme's Avatar
Donor/Coder
Pligg Version: 9.9
Pligg Template: Squaretle
Donation Level 4 
 
Join Date: Jan 2007
Location: Philippines
Posts: 380
Seems like that this is a dumb question but how can you show full descriptions in the frontpage instead of summary only?

Also, is the "truncate" function not supported now?
Reply With Quote
  #2 (permalink)  
Old 09-26-2007, 12:04 PM
MicroBerto's Avatar
Casual Pligger
 
Join Date: Oct 2006
Posts: 44
Look in your link_summary.tpl file - It's pulling out $story_content

Then look at libs/link.php and you see where smarty is getting story_content. You can hack that to make it get the full content and not use the truncate_content() function

cheers!
Reply With Quote
  #3 (permalink)  
Old 09-26-2007, 12:27 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,832
Couldn't you just go to admin>config>submit> set the story truncate to something higher like 1000 characters?


Download the full Pligg Module Pack





Reply With Quote
  #4 (permalink)  
Old 09-26-2007, 12:34 PM
cmstheme's Avatar
Donor/Coder
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Location: Philippines
Posts: 380
It can't be becuase this is only for a specific story, not all.
Reply With Quote
  #5 (permalink)  
Old 04-25-2008, 10:07 AM
New Pligger
 
Join Date: Apr 2008
Posts: 3
OK...so I was having the same problem. I could see the short/truncated description, but not the full description.

I did "hack" the libs/link.php file by putting this on line 380 (just before Smarty sets whether or not it's a summary or full view).

Code:
if ($_GET['title']) {$type="full";}
This just looks to see if there's a title in the querystring, and if there is, it knows you're looking at the detail/summary view.

If you're using URLs that have the ID, etc. just replace the 'title' with the appropriate querystring variable.

It SHOULD work...
Reply With Quote
  #6 (permalink)  
Old 04-27-2008, 04:24 AM
ozlegolas's Avatar
Casual Pligger
Pligg Version: 9.9.0
Pligg Template: Teknikim
 
Join Date: Apr 2008
Posts: 43
Thanks that works great!
Reply With Quote
  #7 (permalink)  
Old 05-20-2008, 08:53 PM
New Pligger
Pligg Version: 9.9
 
Join Date: May 2008
Posts: 9
Quote:
Originally Posted by khellhound View Post
OK...so I was having the same problem. I could see the short/truncated description, but not the full description.

I did "hack" the libs/link.php file by putting this on line 380 (just before Smarty sets whether or not it's a summary or full view).

Code:
if ($_GET['title']) {$type="full";}
This just looks to see if there's a title in the querystring, and if there is, it knows you're looking at the detail/summary view.

If you're using URLs that have the ID, etc. just replace the 'title' with the appropriate querystring variable.

It SHOULD work...
this is perfect! it works!
thanks!!!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
secound Link to source under full description dogmog Questions and Comments 7 07-20-2009 08:33 AM
[SOLVED] beta 9.9 - story shows summary, not full description tlembke Questions and Comments 18 08-03-2008 11:24 PM
When you edit a link, whatever the summary is, it's replaced by the full text VictorML Questions and Comments 0 07-27-2008 10:57 AM
Would like video to display in full story view, not summary view aaronpais Questions and Comments 8 11-13-2007 04:21 AM
full story (not summary) on index page revolver Questions and Comments 2 06-24-2007 11:03 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development