Previous and next in category
I’m not sure how generally useful this is, but if you need it, it may be close to what you need. PreviousNextInCategory is a plugin that adds two container tags, <MTEntryPreviousInCategory> and <MTEntryNextInCategory> that work just like the <MTEntryPrevious> and <MTEntryNext> tags, except that they give you the previous and next entries that are in the same category as the primary category of the current entry.
Which is where things can get a little weird: if you have a previous entry that has the primary category Food, but the secondary category Sex, then as you browse backward through Sex entries, when you hit that Food entry (because it’s also Sex), you’ll suddenly switch over to browsing Food instead of Sex. So it’s probably most useful for something like the original problem, where you only have a few distinct categories, or for people like me who rarely remember to add more than one category.
In any case, I’ll probably leave it doubled up with the by-date links on my archives until I get tired of seeing it. One other thing it might be good for, displayed the way I have it: it encourages you to write about a variety of things, since it looks rather stupid when the previous and next entries by category are also the previous and next entries by date, giving you two lines of the exact same links.
Food between sex is good thing, or did i miss the point? :)
’Fraid so. Nobody in their right mind would object to sex, sex, sex, mmmm, donuts!, sex, sex, sex. The problem is when your entry about donuts and sex has Food as the primary category, you get sex, sex, sex, mmmm, donuts!, broccoli, asparagus, lettuce.
It’s not like you get up in the middle to get a donut and go back to bed: you get up to get a donut, make a sandwich, start a soup stock, and sit down to watch Food TV. Your partner is likely to object.
Dude, you’re assuming that the brocolli entry won’t be subbed to the sex category! And that’s just plain bad.
Doesn’t matter, though. Brocolli, lettuce, asparagus, they can all have sex as a secondary category, but you’re not going to get back to navigating by sex until you get to the mango entry, where sex is the primary category and food is secondary. And by that time, you’ve missed who knows how many (sex && !food) entries.
wish you would have came up with this a few months ago. it was exactly what i was looking for. now i have to start all over.
Aye, that’s the rub: I don’t know what people want, because I’m not all that interested in doing design and changing things around, so I don’t run into problems like that, and other people don’t know whether something they want will take me twenty minutes (because I kept changing the <link rel=”prev”… /> instead of the HTML link in my test template, so I was trying to debug something that worked just fine the first four ways I tried to do it, but I wasn’t putting the results in the page where I could see them), or take four days to find out that it’s too hard for me to figure out. I get tempted to say ”tell me what plugins you want,” and then I think about telling a whole string of people ”no, too hard” over and over, and think better of it.
PreviousNextInCategory
…
I am new to MT and need some help on how I would put this on my page?
I know to put it into the plug in directories, but what code do I need to add to my pages to make this active?
Thanks for any and all help.
Simplest way? Just copy-n-paste the code that produces the Previous/Main/Next links in the default individual entry template, and add InCategory to the <MTEntry(Previous|Next)> tags:
Thank you! That worked great. I appreciate your assistance.
Thanks a lot, this is a great plugin! Its definitely something I’ll be adding to multiple blogs on my system. :)
Category navigation
Previous and next within category, formatting buttons
Extending Movabletype
Prev/Next Links within Category Position of Individual Archive in Category List Total Number of Entries in Category i.e Have Entry #x of Total Entries in that category, and previous/next links within category. Usefull for photoblogs….
Individual archive navigation by category
Requires MySQL and two plugins; other options
Colophon
col·o·phon ( P ) Pronunciation Key (kl-fn, -fn) n. 1. An inscription placed usually at the end of a book, giving facts about its publication. 2. A publisher’s emblem or trademark placed usually on the title page of a…
show the previous and next entry in category
On my individual entry archive page I provide links to the next and previous entries in the category instead of overall. This is particularly important for the way that I have my blog set up, since the three categories (A…
Creating a Photo Album
There are many ways to create a web-based photo album or photoblog in Movable Type. This tutorial addresses just one method for creating a photo album, and is based on the steps I took to create my MT-based photo album….
複数Categoryã?ªãƒšãƒ¼ã‚¸ã‚?ã??り
COCOOONS.ORGã?•ã‚“ã?§ã€?Category内ã?§ã?®ãƒšãƒ¼ã‚¸ã‚?ã??りã?¨ã?„ã?†ã?®ã‚’見ã?Ÿã€‚ ã??ã?®äººã‚‚ã€?「CONQUE TINT WORKSã?•ã‚“ã?®ã‚¨ãƒ³ãƒˆãƒªã?§ MT(カテゴリ内ã?§ãƒšãƒ¼ã‚¸ã‚?ã??り)ã?¨ã?„ã?†ã?®èªã‚“ã? ã€?ã?¨ã?‚ã‚‹ã?®ã?§ã?“ーã?—ã?¦ãƒªãƒ³ã‚¯ã?¯ã?¤ã?…
Next and Previous in Category
I just found the Next and Previous in Category MT plugin. Previously, to separate my from the main one, I…
Just what I needed! I can’t believe this isn’t a standard tag in MT. I’m setting up a photoblog and want to allow next/previous navigation within categories (i.e. ”albums”) in addition to the default navigation by date. Thanks to your plugin, I can now do that. Rock on!
i witness
Meet i witness, heimatseeker’s very own, brand-spanking new photoblog! I had been exploring for a while how to better accommodate those images that are not than just decoration for blog entries, nor fit into the more instant and immediate, but low-qual…
How do these work? and
And how can I implement them on my site? E-mail me, please.
I love this plugin, but I’m having a wierd problem. I’ve separated out my sidebar into it’s own template, and except for the home page and the archive page which the article belongs to, doesn’t refresh automatically when I add an entry to the site.
In other words, when I add an article I have to rebuild the entire site if I want to see it show up in the Recent Entries menu on the side.
Help! I don’t want to have to rebuild the entire site every time I create a new entry!
Thanks,
Vic
Vic.. have you got the sidebar set up as a template module? If you have, I can see what you mean.
If you’re able to use other sorts of includes though, either php or ssi, you could make the sidebar into an index template, which you could set to rebuild. This way, the pages will all update dynamically, without needing to be rebuilt, but they’ll still have all the latest info on them.
複数Categoryã?ªãƒšãƒ¼ã‚¸ã‚?ã??りã?®å†?構築
「複数Categoryã?ªãƒšãƒ¼ã‚¸ã‚?ã??りã€?ã?«ã?¦phil ringnalda dot comã?•ã‚“ã?®ã€?PreviousNextInCategoryã‚’è‹¥å¹²æ”¹é€ ã?—ã?¦ä½¿ç”¨ã?—ã?Ÿã?Œãƒ»ãƒ»ãƒ»ã€?1ã?“実ã?¯æ°—ã?«å…¥ã‚‰ã?ªã?„所ã?Œã?‚ã?£ã?Ÿã€‚ æ–°è¦?エントリã?—ã?Ÿã?¨ã??ã‚„ã€?æ›´æ–°ã?§ã‚«ãƒ†ã…
Just a quickie - do you know if this works in MT 3.0D?
Thanks
Well, I just tried to get it to work with MT3.0D, including just a straight copy and paste job from the example on the MT-Plugins page. It seems the answer is no :-(
Thanks norcimo - I couldn’t get it to work either, so I was wondering if it was just me, or if it was a general thing. I’ll stop trying to fix it now.
Well, except that there’s some question about exactly how general the problem might be with 3.0(1)D, if you look at the top of the page, and the sidebar on the main page. Works for me, sorry I don’t know why it doesn’t for you.
Interesting and curious. I’m holding off on developing the site in question until 3.1 is out, so I’ll try again then.
With a standard left to right ”previous” ”next” navigation layout, the next button will be positioned to the far left on the first entry. Upon clicking it, you go to the 2nd entry and a ”previous” button appears, pushing the ”next” to the right. But this leads to your average user clicking in the same spot (where the ”previous” button now is) and going back to the 1st page.
Is there a way to oversome this? Perhaps have a greyed-out ”previous” button displayed on the 1st page, which becomes active on subsequent pages? I’m sure there must be a few ways around it - any suggestions?
カテゴリー内�後移動リンク作�
��よ��よ�: �一カテゴリー内�記事��後移動
MTã?®å ´å?ˆï½¤æ™®é€šã?«ï½¢è¨˜äº‹ã?®…
カテゴリ内�次・�リンク
å‰?々ã?‹ã‚‰ä¾¿åˆ©ã? ã?ªã?¨æ€?ã?£ã?¦ã?„ã?Ÿã‚«ãƒ†ã‚´ãƒªå†…を渡りæ©ã??リンクをã?¤ã?‘ã‚‹ã?“ã?¨ã?«ã?—ã?Ÿã€‚
使ã?†…
hmm, If you put MTNextInCategory inside MTEntryCategories or whatever it is that lists all the categories associated with a particular entry, could you end up with something like:
prev | next
prev(cat1) | next(cat1)
prev(cat2) | next(cat2)
??
Or for that matter whatever the Subcategories tag is. Erm, probably not. Things aren’t all that pretty between a primary category and all the other categories and now subcategories, down inside the code. I’ve got a dev version of this that played a little better with 3.01, but now I’ve got to find some time to alter it for 3.1, and look at what subcategories might have done to me. Soon. With luck, before 3.2 ;)
A little sprinkling of SQL can make this happen:
<table>
<tr><th>Category</th><th>Previous</th><th>Next</th></tr>
<MTEntryCategories>
<tr>
<td><MTCategoryLabel></td>
<td>
<MTSQLEntries query="select mtp.placement_entry_id as entry_id from mt_placement mtp inner join mt_entry mte on mtp.placement_entry_id = mte.entry_id where mtp.placement_category_id = [MTCategoryID] and mte.entry_created_on < ’[MTEntryDate format='%Y-%m-%d %H:%M:%S']’ order by mte.entry_created_on desc limit 1”>
<a href=”<$MTEntryLink$>”><$MTEntryTitle$></a>
</MTSQLEntries>
</td>
<td>
<MTSQLEntries query=”select mtp.placement_entry_id as entry_id from mt_placement mtp inner join mt_entry mte on mtp.placement_entry_id = mte.entry_id where mtp.placement_category_id = [MTCategoryID] and mte.entry_created_on > ’[MTEntryDate format='%Y-%m-%d %H:%M:%S']’ order by mte.entry_created_on asc limit 1”>
<a href=”<$MTEntryLink$>”><$MTEntryTitle$></a>
</MTSQLEntries>
</td>
</tr>
</MTEntryCategories>
</table>
Notes:
<and>in the SQL queries are deliberately left escaped. An unescaped > sign in the query causes an error. (The parser thinks that the tag has ended prematurely.)�一カテゴリー内�記事��後移動
通常ã€?主è¦?ã?ªBlog・CMSツールã?§ã?‚れã?°ã€?「エントリーã?®å‰?後移動ã€?ã?¯å?¯èƒ½ã?ªã‚ˆã?†ã?«ã?ªã?£ã?¦ã?„る。 ã??ã?—ã?¦ã€?MovableTypeã?®å ´å?ˆã€Œå?Œä¸€ã‚«ãƒ†ã‚´ãƒªãƒ¼å†…ã?®è¨˜äº‹ã€?ã?«é™?定ã?—ã?¦ã?®å‰?後移動ã?¯ãƒ‡ãƒ•ォルトã?§ã?…
Hi there,
I’m running a 2.66 installation and having trouble.
The NextInCategory link (copied and pasted) always links to the current entry (i.e. reloads the same page). Maybe I haven’t installed the plugin properly…
I really want this to work. I’ll keep plugging away.
g
I’m having the same trouble getting it to work on 2.66 as well. It keeps linking to the current entry.
I’ve been scouring the web for more info on this all day and it seems lots of people get it to work, but a handful of us have this exact problem.
From what I gather our installations are for some reason not recognizing/installing the plugin. We get links to the same page because the context (next in category) isn’t recognized and so just refers to the current page.
So what we really need to figure out is whether or not we have the plugin installed in the proper place and if so, then what else could be causing the problem?
I have installed the plugin in the director /plugins that is on the same level as mt.cgi. I believe this is the correct location.
Then I’ve rebuilt.
No dice.
I’m wondering if there’s anything else to check or figure out….
g
I’ve been doing a lot of research as well. The MT support forum has a lot of insight, but no concrete solution.
What version of the Perl module is installed on your web host? The site I’m trying to install the plugin on has Perl 5.00404, which I guess is pretty old. I’m not sure what to do from this point.
Looking at perlhist, 5.004_04 was released 1997-Oct-15.
At the same time, we were all really excited about the upcoming release of HTML 4. It was going to support frames, so you could have part of the page stay still, while another part scrolled, or even reloaded separately!
In other words, if the problem really is 5.004_04, I’m very sorry, but I just can’t help you. I barely know how to debug individual problems with Perl from this century.
I’m not sure what version of Perl I have. I’ll check and see if I can get it upgraded and report back here.
Thanks phil for emailing back. I know this plugin is going to rock. And if it turns out that all of us need to upgrade our Perl that’s fine. Just to know will be good.
g
Perl 5.8 is what I have running. So I don’t think it’s the old Perl thing.
I’ll dig through the forums again… but if there’s anything else to check please say so.
g
I have now successfully added the plugin listed in the Help section of the MT manual. So I think I’m putting plugins in the right place.
Tried:
Perl [version 5.8 is on my host]
PEBKAC: plugin loading [I have got another plugin to load]
Left to try:
Strange stuff about line endings etc….
I removed the following lines from the beginning of the plug in:
use strict;
use warnings;
And everything works fine now.
Thanks again Phil for writing a kick-ass plugin. Even including the time I spent figuring this out it will make my life easier; and I learned a few things along the way.
Free beer in Vermont,
g
That’s great that it worked for you. I resorted to just creating another blog so that the category is in its own separate archive section. I’ll have to try deleting those lines the next time I want to install the plugin.
Phil - don’t feel too bad. Sounds like you’ve written a really great plugin. It just takes some working out for some people.
Is there a conditional statement available for this?
If next entry doesnt exist
do this
If next entry does exist
do this
I’m assuming not, or I would’ve seen it elsewhere, but, is anyone doing any kind of workaround to achieve these results?
Thanks
MTæ”¹é€ ãƒ¡ãƒ¢
â– Individual archivesã?§ã??ã?®ã‚«ãƒ†ã‚´ãƒªã?®æœ€æ–°è¨˜äº‹ä¸€è¦§ã‚’表示ã?•ã?›ã‚‹æ–¹æ³•。 ã?†ã?¡ã?¿ã?Ÿã?„ã?«ã‚«ãƒ†ã‚´ãƒªåˆ¥ã?«ãƒªãƒ³ã‚¯ã‚’è²¼ã?£ã?¦ã?„るサイトã? ã?¨ã€?個別ページã?«é£›ã‚“ã? らやã?£ã?±ã‚Šã??ã?®ã‚«ãƒ†ã‚´ãƒªå†…ã?®æœ€æ–°è¨˜äº‹ã…
Thanks, this saved me (big time) with my new photo blog. I needed Next/Previous to work within the photo category only. This plugin did the trick!
I got here via the MT-plugins directory, where this is listed as ”MT 3.0 Tested” - I’m running MT 3.14, with dynamic archives enabled.
I THINK (the above is rather sketchy…) that these tags don’t work with the dynamic publishing in MT 3.x.
could you just clarify… there’s no documentation that states either way.
thanks.
this is the error I’m getting:
The requested page could not be found.
Smarty error: [in mt:17 line 52]: syntax error: unrecognized tag ’MTEntryPreviousInCategory’ (Smarty_Compiler.class.php, line 556)
Yep, that’s the error you get from trying to use a Perl plugin in PHP. You can fairly safely guess that an MT plugin won’t work with PHP unless it explicitly says it will, and you can be certain it won’t if the download doesn’t include files named Whatever.php.
I don’t get it… your site uses .php pages and the plugin is enabled here. Am I missing something?
Yup. MT’s Perl (the normal same-old stuff) takes the info from the database and my templates (which include some PHP for my own purposes), and builds a static file named whatever_the_title.php at the time I save a post or someone adds a comment. Then, when you request that page, PHP very quickly processes that page, with no database calls (or at least none to MT’s database), and sends you HTML.
By contrast, using MT’s dynamic pages, it doesn’t create any files at any time ever, and when you request whatever_the_title, PHP processes a bunch of stuff, including going to the MT database to look up all the info about the post and the comments, and puts it all together for each request.
What I do is serve up a bunch of PHP files, what MT’s dynamic pages does is gives you an application which creates HTML on the fly from the database.
not to beat a dead horse because I greatly appreciate you taking the time to explain this to me, but this isn’t a .php issue at all the way you just explained it, but a dynamic publishing issue…
If I JUST have .php statically produced pages, the plugin works. If I have dyanmically produced pages, with or without .php extentions, it doesn’t work, right?
Hmm. How to explain this all, in a little comment textarea?
Filenames are utterly insignificant when you use MT’s dynamic publishing: whether it’s whatever.php or whatever.himom or whatever, the entire page is created each time it is requested, by a PHP program that builds it out of data from the database and a collection of helper PHP programs, some of which are plugins specifically written for MT dynamic publishing. Looking from the outside, it should be impossible to tell whether or not a site is using dynamic publishing. I do not use dynamic publishing, but you would only know that by asking, or by seeing that I use plugins which don’t work with dynamic publishing.
If you are using dynamic publishing, when you include a plugin-provided container tag like
<MTEntryPreviousInCategory> ... </MTEntryPreviousInCategory>, there must be a file namedblock.MTEntryPreviousInCategory.phpprovided by that plugin, written in PHP rather than in Perl like normal MT plugins, or it will not work. For plugins that only affect backend things like comment moderation, there doesn’t have to be any PHP, but for any plugin that affects the actual page output, it will have to have had a release after dynamic publishing came out last spring, and since supporting both requires completely rewriting it in another language, it will say that it supports dynamic publishing if it does, and there will be files, generally in a separate /php/plugins/ directory, named things likeblock.MTFoo.phpandfunction.MTFooBar.php. That’s your instant and certain guide to whether or not it will work: if it changes the output of the pages, and there aren’t files named something.php in the .zip, then it won’t work.perfect answer.
Thanks Phil. You ARE the best.
Dynamic Publishing Issues
I’ve been rebuilding the back-end functionality of my blog to where it was before the BlogFucks issues nuked JimSpot. Basically, that means that I’m manually reinstalling the plugins that I had up and running here before. Since the Plugin manager…
Acknowledgements
In the vein of giving credit where credit is due, I give you the Acknowledgements Post. I’ll begin by thanking Six Apart for developing the MovableType software and for offering a free version of it. I would also like to…
I’m trying to use this plugin on the site I’ve put it the url box, but I want to use it inside an MTIfNotCategory (from the Supplemental Categories Tags plugin), but it seems to ignoring that.
Will these two plugins cancel each other/over ride each other/just plain ignore each other?
Is there a way I can link to the next entry in a category, but only if it’s not in another category too? (The category its not to be in is a secondary category)
PHP PreviousNextInCategory
I really liked Phil Rignalda’s PreviousNextInCategory that would basically show the Previous/Next entries in the same category as the current entry (kinda like <MTEntryPrevious> and <MTEntryNext>) Unfortunately this plugin didn’t work under…
SWEET!! YOU DA MAN!! Just what I needed.
and WHY isn’t this in MT by default? Jay? Anyone? :)
Peace …
�一カテゴリ��後�記事��リンクを表示�自動�構築
 日記ã?®å€‹åˆ¥ãƒšãƒ¼ã‚¸ã?«ã?¯æ¨™æº–ã?®ãƒ†ãƒ³ãƒ—レートã?§å‰?後ã?®è¨˜äº‹ã?¸ã?®ãƒªãƒ³ã‚¯ã?Œè¨å®šã?•れã?¦ã?„ã‚‹ã?Œã€?カテゴリã?«ã‚ˆã?£ã?¦å…¨ã??別ã?®ãƒ†ãƒ¼ãƒžã‚’扱ã?£ã?¦ã?„ã‚‹ã?®ã?§ã€?表示ã?•れる記事タイトルã?«é?•和感をã?Šã?¼ã?ˆ…
After installing the plugin and using its tags in my templates, if I use both the MTEntryPreviousInCategory and MTEntryNextInCategroy tags simultaneously in a template, my server chokes and spits a 500 internal server error back at me when rebuilding. However, if I use only one or the other of the tags, everything goes through fine. What is going on?
Dunno, never seen such a thing. If you have access to the actual raw server error log, then it will tell you more than just 500 ISE (generally); if not, then you’ve got nothing to go on.
I’ve got access to my raw cgi-bin logs, which usually give me details for all MT-related 500 ISEs, but it doesn’t detail anything when this particular error occurs.
An additional comment: the first 40 individual entry pages rebuild without a hitch, but as soon as the rebuild process moves on to the next 40 entries, I receive the 500 ISE.
Well, then my first guess would be something stuffed in the database record for an entry in the second group: you might try dropping down to 20/10/5/2 entries per rebuild, to see whether it’s a particular one, or the second set no matter what entries are in the second set.
Hello,
This is a terrific idea, thank you.
Unfortunately… I can’t get it to work. Both MTEntryPreviousInCategory and MTEntryNextInCategory call the current page. (EG if I’m viewing page ”archive-page-15,” both codes simply call that page over and over, instead of going to 14 or 16.)
I’ve backed all the way out and tested in the original, unmodified ”individual archive template” that comes with MT. The two codes do the same thing for me there.
Have you ever heard of this problem? I’m using MT 3.15.
Many thanks, best regards,
JP
I just hadda say that the COMMENTS ON THIS POST ARE HYSTERICAL.
Now I’m off to find a donut.
“¯‚¶ƒJƒeƒSƒŠ“à‚Ì‘OŒã‚Ì‹LŽ–‚𕎦
?@Movable Type‚ł͑OŒã‚Ì‹LŽ–‚𕎦‚³‚¹‚邱‚Æ‚Í?o—ˆ‚Ü‚·‚ª?A“¯‚¶ƒJƒeƒSƒŠ“à‚Ì‘OŒã‚Ì‹LŽ–‚𕎦‚³‚¹‚邱‚Æ‚Í?o—ˆ‚Ü‚¹‚ñ?B‚»‚±‚Å?A‚±‚̃vƒ‰ƒOƒCƒ“‚ðƒCƒ“ƒXƒg?[ƒ‹‚µ‚Ü‚·?Bphil ringnalda dot com: Previous an…
THANKS! This was a great help. . .
カテゴリ内ã?§ãƒšãƒ¼ã‚¸ã‚?ã??りをã?™ã‚‹
プラグインを使ã?£ã?¦å€‹åˆ¥ãƒšãƒ¼ã‚¸ã?§å?Œä¸€ã‚«ãƒ†ã‚´ãƒªã?¸ã?®å‰?後ナビゲーションをè¨ç½®ã?™ã‚‹ã€‚PreviousNextInCategoryプラグインã?¯ã??ã?®ã?¾ã?¾ã?§ã?¯ä½¿ã?ˆã?ªã?„ã?®ã?§è¨˜è¿°ã‚’è¿½åŠ ã?™ã‚‹å¿…è¦?ã?Œã?‚る。
�一エントリー内��後�
自分ã?§æ—¥æœ¬ä¸€å‘¨ãƒ„ーリング日記をèªã?¿è¿”ã?—ã?¦ã?„ã?¦ã€?「å‰?ã?®æ—¥ã€?「次ã?®æ—¥ã€?ã?Œè¦‹ã?«ã??ã?‹ã?£ã?Ÿã?®ã?§ã€?プラグインを入れã?¦å¯¾å‡¦ã€‚ phil ringnalda dot com: Previous and next in category やり方ã?¯ã€? プラグインã…
Crear una galeria de imagenes con movable type
Breve explicación de como crear una sencilla galerÃa de imágenes usando Movable Type como software de base.
Your plugin works great! however, I am trying to use it in an another way. What I want is to have two individual templates, the original individual template will have a button on it, and will go though the whole blog by entry. Then I want to create another individual archive template, and name it ”Individual Category template”. When a person clicks on a category, they will get to another individual template.
Here is an example on what I am trying to do
http://www.pixelfight.com/pf/archives/2005/06/000140cat.php
How can I make your plugin go though all the 000***cat.php pages?
Thanks in advance
Wow, I’ve been looking for something like this for a while. It worked great with my older (2.63) version of Movable Type. Thanks!
About this Site
danandsherree.com is run with Movable Type, a content management system. The site’s design, Scrapbook, is a ground-up design of XHTML…
Phil -
Great plugin. I’ve seen it used on several sites and it looks exactly what I’m looking for.
Unfortunately, when I use it on my individual archive page, the ”next” link takes me forward to what seems like an arbitrary entry within the category. The previous/next of a given entry are the same arbitrary entries each time the blog is rebuilt. If I go to the entries that are being ”skipped”, the previous/next on those pages has a similar weird behavior also going to other entries within the category.
The only thing that I think is somewhat unique is the fact that I am using subcategories (assigned as the primary category). Would that make a difference? I’m using MT 3.17 - any help you can provide would be appreciated.
Wow, it’s been a long time since I looked at this code. I really don’t have any idea what I was thinking: when it looks for whether a previous entry is a match, it compares the category label (the name that you see) rather than the ID: do you by any chance have subcategories that have the same name, but different parents? I’d guess that if you were on an entry in the
Dogs Foodcategory, and the entry just before (or, closer than the previous one in the same category) was in
Cats Foodyou would end up going back to that one. Other than that, I don’t see any reason why it wouldn’t work with subcategories: they are just categories where $category->parent isn’t ”0”.
I’m shopping for someone to adopt this plugin, since not using MT anymore is going to make me even less likely to improve it: maybe its new daddy will have an idea (or will fix it by correcting whatever mistake I made).
Life saver, I direly needed this for the new changes I made to my blog layout and organization, and all I had to do was type in ”MTEntryNextInCategory” in Google (yes, I did guess it that well ;)) and here it is! Thanks for this one.
Ah, the wonders of the LazyWeb. :-)
Wow, thanks for this plug-in. The reason I need it, is because I have two distinct categories: News and About Us, and when people are reading our latest news, it’s confusing if they all of a sudden run onto an ”about us” article which I don’t update so often and keep on a separate category page altogether.
Hi,
I love your plugin. But there is a BIG problem. I can use this plugin on my small weblog (400 entries w/ 6 Categories) but when I tried to use it for my huge weblog (3000 entries w/ 50 Categories) when I want to rebuild it, in the little rebuilding window, it stops at rebuilding first 40 for 3 mins then goes to a white page and status says ”Done”.
I used other ways like the sql plugin and the other php ways but all of them has a problem. The one that just worked perfect was yours which I can’t use!!!
Do you know what is the problem?
(when I disable your plugin in my huge weblog, it rebuilds fine…)
I am pretty sure I asked you a question here and my comment was #comment-82858. If you don’t wanna help, why do you delete the comment?
Tnx for the plugin! /:)
Nah, not deleted, just moderated because I’ve been alternating between busy and offline this summer, and haven’t been posting anything that anyone would comment on anyway.
But I’ve got nothing in particular to offer: I quit using Movable Type going on a year ago for exactly that reason: any time you want to do something fun, you wind up with something between unhelpful and invisible error messages. Other than changing whatever the config variable is for entries per rebuild to a very small number, my only idea would be to find an active plugin developer who actually enjoys Perl and MT, and convince him to take over the plugin and improve its behavior.
Hrm, 82858 indeed. So that’s close to 1000 spams per day during the two days I let it sit in moderation.
I miss the old days.