Wed
02
May
2007
Classic Posts
I have been wanting to implement a “greatest hits” section in my sidebar ever since I read the lessons for would-be bloggers. Yesterday I discovered the classic posts plugin from Chris vs Chris which displays posts which you have designated as “classic.” That sounded like the kind of thing I wanted, except that I was looking for a sidebar list. I added a function to their plugin which returns a list of posts rather than the posts themselves. I also discovered that their plugin does not successfully handle selecting and deselecting posts as being “classic” if you are on anything except the default list of posts - in other words it only works on the last 15 posts. (I went into the database so that I cold manually select some older posts)
I have no particular desire to own this plugin so if Chris and Chris want to adopt my modification into their official plugin they are welcome to it. If they do I will link to their version of the file, but until then here is my version: Classic Posts plugin with List Option.
UPDATE: I found the error on the plugin (I had to add two characters to the code) and I have the working version up now (same link as before).
UPDATE 2: Chris has added my modification and the bug fix so I will include a link to the official version.




Nice add on.
I’m going to look into the bug your describing. I do not have this bug.
May 2nd, 2007 at 2:53 pmThanks, I hope you can find the problem because I don’t understand that part of your code well enough yet to find it. (And I have not touched any of that functionality so I doubt I messed it up.)
May 2nd, 2007 at 2:55 pmP.S. We will include your upgrade in our version (asap).
May 2nd, 2007 at 2:58 pmGlad to hear it.
May 2nd, 2007 at 2:59 pmDid you try it before you added the update?
May 2nd, 2007 at 3:09 pmNo I didn’t.
Maybe I’ll try that to make sure I didn’t cause the problem.
May 2nd, 2007 at 3:10 pmI tested the unaltered version of the plugin and had the same problem.
May 2nd, 2007 at 3:38 pmDavid
May 2nd, 2007 at 6:18 pmI have the latest version up on my site. You said you fixed the bug, with selecting the source?
Yes, I got that bug fixed. I’m glad I could help, and even happier to see this extension working.
May 2nd, 2007 at 7:27 pmHmmm. This is the error I get when activating the plugin:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SHOW_COLUMNS FROM wp_posts LIKE 'classic'' at line 1]
SHOW_COLUMNS FROM wp_posts LIKE ‘classic’
WordPress database error: [Duplicate column name 'classic']
ALTER TABLE wp_posts ADD classic VARCHAR(1) NOT NULL DEFAULT ‘n’
Warning: Cannot modify header information - headers already sent by (output started at /home/journeyg/public_html/wp-includes/wp-db.php:121) in /home/journeyg/public_html/wp-includes/pluggable.php on line 275
May 3rd, 2007 at 9:12 amI have had that type of problem with this plugin as well as others (I think anytime they alter a table). I can’t say exactly what’s happening, but my experience in all such cases is that if I go back to the plugin manager and select “Activate” again it works just fine.
May 3rd, 2007 at 9:40 am[...] 我们知é“,WordPress的日志是按时间排åºçš„ï¼Œæ–°çš„æ–‡ç« æ€»åœ¨æ—§çš„æ–‡ç« ä¹‹ä¸Šã€‚è€Œå½“æ—¥å¿—çš„æ–‡ç« å¤šäº†ï¼Œè€Œä½ åˆæƒ³æŠŠä¸€äº›è‡ªå·±è®¤ä¸ºå€¼å¾—访客æµè§ˆå’Œæ³¨æ„çš„æ–‡ç« æ”¾åœ¨æœ€é¡¶éƒ¨ï¼Œå°±è±¡åœ¨è®ºå›å†…看到的置顶帖åä¸€æ ·ã€‚ä½ å¯ä»¥é€‰æ‹©ä½¿ç”¨Classic Posts这个æ’件。 [...]
May 7th, 2007 at 1:05 amLine 38:”SHOW_COLUMNS FROM…” should be “SHOW COLUMNS FROM…”
May 10th, 2007 at 1:09 amThat’s why Jeff and I met trouble.
Thanks for catching that. I have fixed that now.
May 10th, 2007 at 9:45 am[...] ?????WordPress??????????????????????????????????????????????????????????????????????????????????????Classic Posts????? [...]
November 18th, 2007 at 9:35 pm[...] ?????????????????????????????????????Classic Posts? [...]
February 23rd, 2008 at 4:45 am[...] | 1 views ?????Pursuit of Liberty ?????Classic Posts ?????1.1 ????????? | ???? | ????? ????? [...]
February 26th, 2008 at 11:43 pm