Related posts

Download plugins, language packs and stuff.

Hope this helps.

Postby snatch518 » Mon Jun 23, 2008 6:22 pm

I was under the impression that the script would automatically search headlines and include the results. That's not the case! If you have the AJAX version, you can do a search and then click the headlines you want to display for related posts. If you do not, you have to manually enter the ID #s of the posts you wanted to include in the related posts section.
snatch518
 
Posts: 8
Joined: Sat Jun 07, 2008 6:29 am

Postby Partyism » Tue Jun 24, 2008 10:46 am

This ajax thingy doesnt work for me..
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby scottdallas » Wed Jul 23, 2008 12:12 am

Wow, I haven't really taken the time to really appreciate your ajax upgrade. I'm going to go play with it real quick. I was thinking man but I don't want to be manually finding ID's, then I read your desc. for ajax lol WALA

edit
Okay, I got to play with it some. It is exactly as described! Perfect and wonderful. I love it. The only thing... I tried to do this myself but failed.

When you search in the add/edit page could you have it so it shows the ID# of the post you're about to click on in a title="$id" sort of fashion. Here was my failed code from your related_results.php:

Code: Select all
$return .= '<li><a href="javascript:insert_related(\''.$key.'\')" title="\''.$id.'\'">'.get_title($key).'</a></li>'."\n";


Which DOES show the 'title' box pop up when the mouse hovers BUT it shows '' instead of the #... Then my head blew up.

One last thing I want to say... How hard is this to make an ajax search work this way on a persons website anywhere? It's basic template wouldn't have to be more than:
<a href="url">{title}</a><br>
{short-story}<br><br>

The user could customize it from there. Just a thought. A cool mini search.. although I notice this doesn't support multiple word searching does it?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Partyism » Wed Jul 23, 2008 11:21 am

well, when i enter something in the field it just doesnt happen. No ajax search... That is where i stopped.
But one thing that really bothers me, lately i made a fresh install with the sql placed of the older version,
every value ive put in a news story is gone :? :( And im not going to put that all back in again for 700+ stories

Maybe a upgrade that related posts saves the values using mysql

Same as Xfields by the way.. no mysql
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby scottdallas » Wed Jul 23, 2008 1:13 pm

Man I'm sorry it doesn't show up for you. Makes me think your sever just doesn't like it..

I noticed that in IE when you hover over the ajax links it shows the IE down in the bottom left status bar but on FF (which is what I used first) it does not which is why I asked for the pop up.. just thought that was interesting.

edit
I also notice it won't search less than 3 characters, is this right? Must be = or > than 3 characters? I like that ;)
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby webbber » Fri Jul 25, 2008 4:42 pm

Its working now, I dunno why I couldnt get it. Now, everytime im gonna post a news I have to enter the related post number, so that the news can show this related post. Is there any way to just select the related category when posting an article?

Understand what I mean? Oh man, my english is so bad!
webbber
 
Posts: 155
Joined: Thu May 15, 2008 1:13 am

Postby nolikewise » Thu Oct 09, 2008 1:48 pm

This is useful but very tiring job, if you make editors or writers fill all the black in admin panel, they will be discouraged.

They must fill,

Meta keywords
Meta description
Avatar field
URL title (optional)
Search for related...


If you want to make things easier, you need to adjust it automatic when inputs are not entered, it will search itself the most relevant word and bring the related posts. In addition, Meta keywords, Meta description can be used like this. The most relevant words can be searched and broght from datase.

I am not a php expert, but this would make things easier and we could spend time by adding and formatting content.

By the way, isn't it possible to show some colors and font-sizes in fortmatting ares of CNR editor. There maybe people who don't know, fontsize="6" is big and fontsize="2" is small and they may not know or remember color names at that moment. Let's take this things into consideration and make things easier.

FI-DD, i think you are very busy but, i suggest you care my words because these things will promote usage of CNR. If I had been creator of CNR, I'd try to make things easier rather than complicated...

Thanks in advance!
nolikewise
 
Posts: 177
Joined: Mon Dec 17, 2007 8:47 am
Location: Turkiye

Postby nam » Thu Oct 16, 2008 8:02 pm

I use the AJAX version of the Related Posts plugin, which is very useful but very time consuming to find and include IDs of the related posts; I think the following two additions to it can make it impressive:

1- When search a word, usually more than one post is displayed, but we can select only one and need to search again to select the next, it wastes time, there should be a mechanism so we could select more than one post with single search.

For example there should be a checkbox next to each related post found, so we could select more than one post for the Related Posts section.


2- When post ID no.2 is added as Related Post in the post No.3, then it should automatically do the contrary (I.e. ID No.3 must be displayed as related post in the post No.2. This will make things very easy and effective.

Because if ID.2 is related to ID.3, then the vice versa is also true.

So, if post No.2 is added as Related Post in 10 other posts, all of these 10 posts should automatically be included in the related posts section of the article 2.
User avatar
nam
 
Posts: 221
Joined: Sat Dec 23, 2006 9:10 pm

Postby erlendfl » Sat Nov 01, 2008 1:25 am

In inc/show.news.php
Code: Select all
$output = str_replace('{mytitle}', $row['url'],

to be able to have my links linke this ?title={mytitle}
But with this plugin if i relate the article with url=article-1-1-2 the {mytitle} does not pick it up
the link is ?title={mytitle} when you click on it, not ?title=article-1-1-2 as it should be.

Sorry for bothering anyone, but would be great with som help to make related-ajax work with this link-style.
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby FI-DD » Thu Nov 06, 2008 6:17 pm

In the plugin try changing 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]);


to this:
Code: Select all
$link .= str_replace(array('|related_url|', '|related_title|', '|related_date|'), array("?title=".$news['url'], $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 erlendfl » Sat Nov 08, 2008 1:31 am

That worked, thank you. But another problem occured right now. Strange one:
When I search for related posts, and click and the post I want to relate, the ID should pop up in the related posts-column. But the thing is that ajax print the title and put it in the search box :S It worked perfectly, and suddenly that happened, tried re-downloading the script and changing the code back but it did not work.

I installed the TinyFCK-plugin, I think that could be the problem, but I need the WYSIWYG-editor for my clients. Anyway to solve this problem? Sorry for asking so many questions everyday, and I don't expect you to answer them.

Have a good weekend everyone!
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby FI-DD » Thu Nov 13, 2008 8:16 pm

erlendfl wrote:I installed the TinyFCK-plugin, I think that could be the problem,

Please deactivate it and try again to find out if the plugin really is the problem.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby erlendfl » Thu Nov 13, 2008 8:33 pm

FI-DD wrote:
erlendfl wrote:I installed the TinyFCK-plugin, I think that could be the problem,

Please deactivate it and try again to find out if the plugin really is the problem.

Done. A little update after some trying anf failing:
- Relate article when you ADD new article: it works if when you relate the first article, but when I add more articles the problem I told you about (When I search for related posts, and click and the post I want to relate, the ID should pop up in the related posts-column. But the thing is that ajax print the title and put it in the search box ) occures.
- Relate article when you EDIT articles: the problem is there when I relate article "number one" too.

With and without the TinyFCK-plugin...
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby FI-DD » Thu Nov 13, 2008 8:41 pm

Please try again with a fresh installation. You have to find out which plugin or hack causes this.

If you tell me after the activation of which plugin it stops working then I might be able to help you.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby erlendfl » Sat Nov 15, 2008 3:15 am

FI-DD wrote:Please try again with a fresh installation. You have to find out which plugin or hack causes this.

If you tell me after the activation of which plugin it stops working then I might be able to help you.

Tried to fix it myself again, and this time I got it right. Don't know what was wrong, but thanks for your time :)
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

PreviousNext

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests