NEW: "Read More" link after story summary

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2006, 02:41 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
I finally got around to adding this to the Pligg code. The Published, Queued, and Top Stories pages now have a link that says "Read more" in case the summary gets cut off. The link directs you to the comments page where you can read the entire summary. I've attached a screen shot to show you what it looks like. Also, here's the official link where you can check out the files that were edited. Depending on your template you should only have to edit main.css and link_summary.tpl. http://pligg.svn.sourceforge.net/vie...v&revision=253
Attached Thumbnails
NEW: "Read More" link after story summary-untitled.jpg  
Reply With Quote
  #2 (permalink)  
Old 11-05-2006, 04:15 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,832
Great Job KB..


Download the full Pligg Module Pack





Reply With Quote
  #3 (permalink)  
Old 11-05-2006, 10:26 AM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
Is there any code we could wrap around this to only make it add the read more link if the story has been truncated?
Reply With Quote
  #4 (permalink)  
Old 11-06-2006, 01:19 PM
New Pligger
 
Join Date: Nov 2006
Posts: 9
This is my first post: horray!

Just installed pligg and love it. Unfortunately this mod produced a SQL error (booo!):

Quote:
SQL/DB Error -- [Table 'tennisvo_pligg.table_links' doesn't exist]

Fatal error: Call to a member function on a non-object in /home/tennisvo/public_html/libs/link.php on line 308


Check out our site if you get a chance: www.tennisvote.com


Thanks
Reply With Quote
  #5 (permalink)  
Old 11-06-2006, 01:36 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
lynnlovestennis, make sure you don't copy the entire link.php. Click on the words "text changed" and it will show you what to add. The rest of the link.php will not work with 8.2 because we've made a lot of changes.
Reply With Quote
  #6 (permalink)  
Old 11-06-2006, 04:50 PM
New Pligger
 
Join Date: Nov 2006
Posts: 9
Ah, space. The final frontier. It's funny, I totally did that for the css file too...


Lesson: Don't attempt to cut and paste while high on goofballs.




Thanks dude. You.rock.hard.

Last edited by lynnlovestennis; 11-06-2006 at 05:15 PM.
Reply With Quote
  #7 (permalink)  
Old 11-21-2006, 04:42 AM
New Pligger
 
Join Date: Nov 2006
Posts: 15
I implemented the pligg code from http://pligg.svn.sourceforge.net/vie...v&revision=253 and it works fine for the Published page where it adds "read more" at the end of each summary. However, it does not do that in the Top Stories page. Did I miss something?
Reply With Quote
  #8 (permalink)  
Old 11-23-2006, 12:21 AM
New Pligger
 
Join Date: Nov 2006
Posts: 20
anyone figure out how to add the "read more" only if a story is truncated?
Reply With Quote
  #9 (permalink)  
Old 11-23-2006, 03:19 AM
New Pligger
 
Join Date: Nov 2006
Posts: 15
Actually I found my problem: in file link_summary.tpl I changed line 109 from

{$story_content} {if $pagename eq "shakeit" || $pagename eq "index"} <a href="{$story_url}" class="morelink">read more</a> {/if}<br />

to

{$story_content} {if $pagename eq "shakeit" || $pagename eq "index" || $pagename eq "topstories"} <a href="{$story_url}" class="morelink">... read more</a> {/if}<br />

That did the trick.
Reply With Quote
  #10 (permalink)  
Old 12-01-2006, 04:55 PM
New Pligger
 
Join Date: Nov 2006
Posts: 12
Quote:
Originally Posted by mBeat View Post
anyone figure out how to add the "read more" only if a story is truncated?
I am looking into it, however, it looks somewhat complicated since you have to pass the truncated/not truncated information to the template.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Read more" link = 404 error Divisive Cotton Questions and Comments 3 07-05-2008 03:47 AM
How to direct story title in summary page to the original story? chris79 Questions and Comments 4 02-03-2008 07:28 PM
"read more" link -- what file? jamfull Questions and Comments 3 01-31-2008 11:51 AM
Link to Story after or during Submit dattard Questions and Comments 1 12-31-2007 03:27 AM
Why is the "Read more" link active when there's nothing more to read? nothingman Questions and Comments 0 09-12-2007 01:15 PM


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