Related Entries for MT

Related Entries from within my own MT database is something else I’m interested in adding to my weblog soon.


7 Responses to “Related Entries for MT”  

  1. Gravatar Icon 1 Donncha

    Hey John,

    Just download b2++ and you’ll have both highlighted searches and related articles!

    Demos:

    Related articles

    Search highlights

    Donncha.

    PS. sorry for this completely self-promotional comment!

  2. Gravatar Icon 2 Jon

    I do related entries over at MobileTracker–it works out well. The only problem is when I make a new category it looks really lame for the first post (no related articles).

  3. Gravatar Icon 3 seed

    have you had any luck migrating a newly created blog to a previous set of archives? the mint400 is going through this issue now. BTW nice site.

  4. Gravatar Icon 4 Donncha

    On migrating archives – b2 has several scripts for doing such a job.

    I used the Blogger one to suck all the data from http://xeer.blogspot.com/ to http://blogs.linux.ie/xeer/. Not sure if there’s an MT one though.

  5. Gravatar Icon 5 Adam Kalsey

    I have an MT plugin that does related entries by keyword or by category. See Related Entries for more details.

    I’ve been working with some MySQL fulltext queries for a client recently and like Simon thought it would be interesting to try automatically classifying related articles through fulltext searches. After some experiments last week, I stopped using my own plugin and now generate related entries through a SQL query using Brad’s SQL plugin.

    The template code I use on my individual archive pages is…

    <MTSQLEntries query=”SELECT entry_id, MATCH (entry_keywords, entry_title, entry_excerpt) AGAINST (‘[MTEntryKeywords encode_php='q'] [MTEntryTitle encode_php='q']‘) AS score FROM mt_entry WHERE MATCH (entry_keywords, entry_title, entry_excerpt) AGAINST (‘[MTEntryKeywords encode_php='q'] [MTEntryTitle encode_php='q']‘) AND entry_id != ‘[MTEntryID]‘ AND entry_blog_id = [MTBlogID] ORDER BY score DESC LIMIT 0 , 4″>

    <li><a href=”<MTEntryLink>”><MTEntryTitle></a></li>

    </MTSQLEntries>

    This avoids database timeouts or other issues, because the related entries are not generated with each page request. Instead, they are calculated only when the page is rebuilt.

  6. Gravatar Icon 6 Adam Kalsey

    It’s been pointed out to me that you need to create the fulltext indexes before that code will work. On my site I have a much more thorough explanation of the technique, including all the steps you need to follow to get it working.

    Read Related Entries Revisted for more details.

  7. Gravatar Icon 7 Nick

    Thanks Adam!

Leave a Reply