| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
Related posts |
|
This plugin shows links to related posts in your full story.
In the basic version of the plugin you can manually add the ID of the related post when adding/editing news. Separate more than one ID by a comma.
Available tags in the template:
[related]...[/related]
{related:template}
Example code for the template:
 |  | [related]
Related posts:<br />
{related:|related_date|: <a target="_blank" href="|related_url|">|related_title|</a><br />}
[/related] |
The AJAX version below puts a field above the original text box. Type in a word and the script will search your titles and stories for this word (using AJAX). It will return a list of news titles. By clicking on one of the titles you can insert the article's ID in the ID field.
| Description: |
|
 Download |
| Filename: |
related_posts_ajax.zip |
| Filesize: |
31.75 KB |
| Downloaded: |
350 Time(s) |
| Description: |
| Related posts (basic version) |
|
 Download |
| Filename: |
related_posts.zip |
| Filesize: |
1008 Bytes |
| Downloaded: |
370 Time(s) |
Last edited by FI-DD on Tue Dec 04, 2007 6:29 pm; edited 5 times in total |
|
| Wed Aug 09, 2006 10:40 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
hi fi-dd just a couple of things regarding this. I'm not sure how to get this working. i activated the plugin and then put the {related:ID} in the full story template.
Now when i add a news article i have 5 input boxes asking for related news articles. i put in the id's but the related titles dont shows up in my fullstory.
I didnt understand what u refeed to as
 |  |
Use XFields to save the IDs: {related:[xfvalue_ID]}. |
Another thinng --> i have the meta tags plugin also activated. Now the five test boxes for the related articles apear above the meta tags input boxes in the add news pae. Can i have the meta tags boxes displayed above the related id boxes pls??
|
|
| Thu Oct 12, 2006 5:40 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
I reworked the plugin. Please download again and adjust your template.
|
|
| Fri Oct 13, 2006 12:20 am |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
hi
i put this code in the teplate
[related]
Related posts:<br />
{related:<a target="_blank" href="|related_url|">|related_title|</a><br />}
[/related]
but this gets output directly as html output without the [related] tag being proccessed!!
I double checked to see if the plugin was activated and yes it is!! What am i doin wrong??
|
|
| Sun Oct 15, 2006 8:15 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Please download it again.
|
|
| Tue Oct 17, 2006 7:11 pm |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
Fantastic!!! Its working great this time
Just one small suggestion tho, is it possible to display the post like -->
Date - Title
Date - Title
U know, in that format??
|
|
| Wed Oct 18, 2006 7:18 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Change this:
 |  | $link .= str_replace(array('|related_url|', '|related_title|'), array(cute_get_link($news), $news['title']), $match[1]); |
to this:
 |  | $link .= str_replace(array('|related_url|', '|related_title|', '|related_date|'), array(cute_get_link($news), $news['title'], date("d.m.Y", $news['date'])), $match[1]); |
|
|
| Wed Oct 18, 2006 7:29 pm |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
Great!!!
ok, so thats the successfull completion of another task
Thanx fi-dd..
Hey, btw what happened to u?? u disappeared after friday the 13th!!! ?? 
|
|
| Thu Oct 19, 2006 2:57 am |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
|
ksen how u did the related posts list to each article?
|
|
| Thu Oct 19, 2006 12:53 pm |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
Didnt quite understand ur question!! R u asking how i displayed the related articles in my full story?? Well if thats the case u need to put the following in ur full story template
 |  | [related]
<p>Related posts:</p>
<p>{related:|related_date| : <a target="_blank" href="|related_url|">|related_title|</a><br />} </p>
[/related] |
|
|
| Thu Oct 19, 2006 4:23 pm |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
|
nothing appear here. Well, exist a option when u addnews to put something in input box "Related Posts". What I need to put there? Article name?
|
|
| Thu Oct 19, 2006 5:35 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | What I need to put there? Article name? |
The IDs of the articles.
|
|
| Thu Oct 19, 2006 6:54 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | Hey, btw what happened to u?? u disappeared after friday the 13th!!! ??  |
Nothing happened to me. I just don't post that much over the weekend. 
|
|
| Thu Oct 19, 2006 6:59 pm |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
| Thu Oct 19, 2006 7:02 pm |
|
 |
joshers
Joined: 14 Nov 2005 Posts: 68
|
|
Javascript add ID |
|
Would it be possible to add an upgrade to the Related Posts plugin to where it'll display posts of a category (or all categories), and you can check each, and it'll add the ID to the related id field. Probably simple displaying of posts from a category, or all categories, and javascript to add the id to a field at the bottom, then to grab the IDs (when editing a post).
|
|
| Sun Nov 05, 2006 11:49 pm |
|
 |
|