Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Related posts
Goto page 1, 2, 3, 4  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Related posts
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Related posts Reply with quote
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:
[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.



related_posts_ajax.zip
 Description:
AJAX version

Download
 Filename:  related_posts_ajax.zip
 Filesize:  31.75 KB
 Downloaded:  350 Time(s)


related_posts.zip
 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 View user's profile Send private message
Guest








Please login to hide the ads.

ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
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:


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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
I reworked the plugin. Please download again and adjust your template.
Fri Oct 13, 2006 12:20 am View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Please download it again.
Tue Oct 17, 2006 7:11 pm View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
Fantastic!!! Its working great this time Very Happy



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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Change this:

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




to this:

Code:
$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 View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
Razz Great!!!

ok, so thats the successfull completion of another task Very Happy

Thanx fi-dd..



Hey, btw what happened to u?? u disappeared after friday the 13th!!! ?? Shocked
Thu Oct 19, 2006 2:57 am View user's profile Send private message
sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
ksen how u did the related posts list to each article?
Thu Oct 19, 2006 12:53 pm View user's profile Send private message
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
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:
[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 View user's profile Send private message
sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
sempro wrote:
What I need to put there? Article name?


The IDs of the articles.
Thu Oct 19, 2006 6:54 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
ksen wrote:
Hey, btw what happened to u?? u disappeared after friday the 13th!!! ?? Shocked


Nothing happened to me. I just don't post that much over the weekend. Smile
Thu Oct 19, 2006 6:59 pm View user's profile Send private message
sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
thx fi-dd and ksen Wink
Thu Oct 19, 2006 7:02 pm View user's profile Send private message
joshers



Joined: 14 Nov 2005
Posts: 68

Post Javascript add ID Reply with quote
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 View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.