Related posts

Download plugins, language packs and stuff.

Related posts

Postby FI-DD » Wed Aug 09, 2006 10:40 am

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:

Code: Select all
[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.
Attachments
related_posts_ajax.zip
AJAX version
(31.75 KiB) Downloaded 603 times
related_posts.zip
Related posts (basic version)
(1008 Bytes) Downloaded 572 times
Last edited by FI-DD on Tue Dec 04, 2007 6:29 pm, edited 5 times in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby ksen » Thu Oct 12, 2006 5:40 pm

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

Code: Select all

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??
User avatar
ksen
 
Posts: 142
Joined: Sun Jun 04, 2006 7:11 am

Postby FI-DD » Fri Oct 13, 2006 12:20 am

I reworked the plugin. Please download again and adjust your template.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby ksen » Sun Oct 15, 2006 8:15 am

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??
User avatar
ksen
 
Posts: 142
Joined: Sun Jun 04, 2006 7:11 am

Postby FI-DD » Tue Oct 17, 2006 7:11 pm

Please download it again.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby ksen » Wed Oct 18, 2006 7:18 pm

Fantastic!!! Its working great this time :D



Just one small suggestion tho, is it possible to display the post like -->



Date - Title

Date - Title



U know, in that format??
User avatar
ksen
 
Posts: 142
Joined: Sun Jun 04, 2006 7:11 am

Postby FI-DD » Wed Oct 18, 2006 7:29 pm

Change this:

Code: Select all
$link .= str_replace(array('|related_url|', '|related_title|'), array(cute_get_link($news), $news['title']), $match[1]);




to this:

Code: Select all
$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]);
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby ksen » Thu Oct 19, 2006 2:57 am

:P Great!!!

ok, so thats the successfull completion of another task :D

Thanx fi-dd..



Hey, btw what happened to u?? u disappeared after friday the 13th!!! ?? :shock:
User avatar
ksen
 
Posts: 142
Joined: Sun Jun 04, 2006 7:11 am

Postby sempro » Thu Oct 19, 2006 12:53 pm

ksen how u did the related posts list to each article?
sempro
 
Posts: 72
Joined: Thu Apr 27, 2006 12:36 pm

Postby ksen » Thu Oct 19, 2006 4:23 pm

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



Code: Select all
[related]

<p>Related posts:</p>

<p>{related:|related_date| : <a target="_blank" href="|related_url|">|related_title|</a><br />} </p>

[/related]
User avatar
ksen
 
Posts: 142
Joined: Sun Jun 04, 2006 7:11 am

Postby sempro » Thu Oct 19, 2006 5:35 pm

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?Image
sempro
 
Posts: 72
Joined: Thu Apr 27, 2006 12:36 pm

Postby FI-DD » Thu Oct 19, 2006 6:54 pm

sempro wrote:What I need to put there? Article name?


The IDs of the articles.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby FI-DD » Thu Oct 19, 2006 6:59 pm

ksen wrote:Hey, btw what happened to u?? u disappeared after friday the 13th!!! ?? :shock:


Nothing happened to me. I just don't post that much over the weekend. :)
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby sempro » Thu Oct 19, 2006 7:02 pm

thx fi-dd and ksen ;)
sempro
 
Posts: 72
Joined: Thu Apr 27, 2006 12:36 pm

Javascript add ID

Postby joshers » Sun Nov 05, 2006 11:49 pm

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).
joshers
 
Posts: 68
Joined: Mon Nov 14, 2005 8:03 am

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron