| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
joshers
Joined: 14 Nov 2005 Posts: 68
|
|
|
|
 |  | 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 |
|
 |
ksen

Joined: 04 Jun 2006 Posts: 142
|
|
|
|
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 great!! 
|
|
| Wed Nov 08, 2006 6:46 pm |
|
 |
joshers
Joined: 14 Nov 2005 Posts: 68
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Please download it again in the first post.
|
|
| Fri Nov 10, 2006 1:48 am |
|
 |
joshers
Joined: 14 Nov 2005 Posts: 68
|
|
|
|
workin great now. Thanks!
|
|
| Fri Nov 10, 2006 8:11 am |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 161 Location: Czech republic |
|
|
|
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 |
|
 |
adonis
Joined: 24 Oct 2006 Posts: 9
|
|
Related post from certain category useing certain templait |
|
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 |
|
 |
Goberg
Joined: 18 Jan 2007 Posts: 43
|
|
|
|
 |  | 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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
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 |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 161 Location: Czech republic |
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | 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 |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 161 Location: Czech republic |
|
|
|
Well, that's much better now! Thanks for the specification.
|
|
| Mon Jan 29, 2007 7:59 pm |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 161 Location: Czech republic |
|
|
|
Again me
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | 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:
 |  | foreach($found as $key => $value){ |
add above:
 |  | krsort($found); |
|
|
| Mon Feb 26, 2007 8:14 pm |
|
 |
|