Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Related posts
Goto page Previous  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 Reply with quote
The 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.



Installation:

Copy related_posts.php and the related_posts folder to your plugins directory.



Please tell me if it's working for you.


Last edited by FI-DD on Fri Nov 10, 2006 1:37 am; edited 1 time in total
Tue Nov 07, 2006 7:54 pm View user's profile Send private message
Guest








Please login to hide the ads.

joshers



Joined: 14 Nov 2005
Posts: 68

Post Reply with quote
FI-DD wrote:
The 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.



Installation:

Copy related_posts.php and the related_posts folder to your plugins directory.



Please tell me if it's working for you.




GREAT! Its working fine. I'll mess with it a bit more when i get a chance. FI-DD for president.
Tue Nov 07, 2006 9:11 pm View user's profile Send private message Visit poster's website AIM Address
ksen



Joined: 04 Jun 2006
Posts: 142

Post Reply with quote
whoha maan!! i'm returning after abit of a break and find that my related post request is rocking the boat!! way to go fi-dd!! We are starting to get some real cool functionality into cnr huh Smile great!! Razz
Wed Nov 08, 2006 6:46 pm View user's profile Send private message
joshers



Joined: 14 Nov 2005
Posts: 68

Post Reply with quote
Its not displaying anymore. The display code seems correct, it adds the ID in addnews/edit news, but its not displaying. Any ideas?
Thu Nov 09, 2006 11:10 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Please download it again in the first post.
Fri Nov 10, 2006 1:48 am View user's profile Send private message
joshers



Joined: 14 Nov 2005
Posts: 68

Post Reply with quote
workin great now. Thanks!
Fri Nov 10, 2006 8:11 am View user's profile Send private message Visit poster's website AIM Address
PJR



Joined: 17 Oct 2005
Posts: 161
Location: Czech republic

Post Reply with quote
Is it possible to change links (I prefer using of IDs instead of User Friendly Urls)? (non-Ajax version)



AND



It seems I don't understand the Ajax version - when I type a word, there is nothing to show as a result...?
Sat Nov 11, 2006 8:53 pm View user's profile Send private message
adonis



Joined: 24 Oct 2006
Posts: 9

Post Related post from certain category useing certain templait Reply with quote
Hello,



i have my website www.crpg.lt in witch i post news about RPG games.



And would be great if someone could help me with related posts.

I wanna related post open in certain template "gallery or news",

and seperate them by certain category example:



Newest screen's

==========

news from Oblivion gallery (opens in gallery template)





Related post

=========

other related post's about Oblivion (opens in news template).





I know it's hard if posible to make this work(for me at least), that's why i'm asking for help.



Best regards and thank u for helping.
Sun Nov 19, 2006 1:51 pm View user's profile Send private message
Goberg



Joined: 18 Jan 2007
Posts: 43

Post Reply with quote
PJR wrote:
Is it possible to change links (I prefer using of IDs instead of User Friendly Urls)? (non-Ajax version)




wondering about that myself
Sun Jan 21, 2007 4:10 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
The plugin uses the same urls as your normal news.



So if you have the ID in your links to the full story you will have the ID in the related posts too.
Mon Jan 22, 2007 8:34 pm View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 161
Location: Czech republic

Post Reply with quote
Unfortunately, I can't confirm it. I use the IDs in the links, but the related post are in friendly URLs.



(I'm testing it with the code like from the example).
Sun Jan 28, 2007 9:13 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
FI-DD wrote:
The plugin uses the same urls as your normal news.

So if you have the ID in your links to the full story you will have the ID in the related posts too.




Ok, to be more specific, the plugin uses the same urls as in "Options -> User Friendly Urls".

So if you have setup "Options -> User Friendly Urls" to show the ID in your links to the full story you will have the ID in the related posts too.
Mon Jan 29, 2007 6:55 pm View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 161
Location: Czech republic

Post Reply with quote
Well, that's much better now! Thanks for the specification.
Mon Jan 29, 2007 7:59 pm View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 161
Location: Czech republic

Post Reply with quote
Again me Very Happy



Is it possible the AJAX shows posts from the newest (or with the highest IDs)?



AND



I've got problem with my language in the AJAX - is there any way how to set something like charset in the script?
Sat Feb 24, 2007 1:42 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
PJR wrote:
Is it possible the AJAX shows posts from the newest (or with the highest IDs)?


Open plugins/related_posts/related_results.php and find this:

Code:
foreach($found as $key => $value){




add above:

Code:
krsort($found);

Mon Feb 26, 2007 8:14 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4  Next
Page 2 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.