![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| NEW: "Read More" link after story summary
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
__________________ I accept donations for my time helping users like you on the forum and IRC. |
| The Following 10 Users Say Thank You to kbeeveer46 For This Useful Post: | ||
| ||||
|
Great Job KB..
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| |||
|
Is there any code we could wrap around this to only make it add the read more link if the story has been truncated?
|
| |||
|
This is my first post: horray! Just installed pligg and love it. Unfortunately this mod produced a SQL error (booo!): Quote:
Check out our site if you get a chance: www.tennisvote.com Thanks |
| ||||
|
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.
__________________ I accept donations for my time helping users like you on the forum and IRC. |
| |||
|
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.. |
| |||
|
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?
|
| |||
|
anyone figure out how to add the "read more" only if a story is truncated?
|
| |||
|
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. |
| |||
| "read more" only if truncated I am looking into it, however, it looks somewhat complicated since you have to pass the truncated/not truncated information to the template.
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Read more" link = 404 error | Divisive Cotton | General Help | 3 | 07-05-2008 03:47 AM |
| How to direct story title in summary page to the original story? | chris79 | General Help | 4 | 02-03-2008 07:28 PM |
| "read more" link -- what file? | jamfull | General Help | 3 | 01-31-2008 11:51 AM |
| Link to Story after or during Submit | dattard | General Help | 1 | 12-31-2007 03:27 AM |
| Why is the "Read more" link active when there's nothing more to read? | nothingman | Off-topic | 0 | 09-12-2007 01:15 PM |






Linear Mode

