Recent Topics

1 Dec 03, 2008 21:32    

My b2evolution Version: 2.5

I recently added a new subcategory and added that subcategory to a bunch of posts from 2005... and now those are the posts that are showing up as new (the dates on the posts are still 2005).

This has never happened before, and the only (major) change I have made to the blog recently is the addition of the STICKY function (see issues [url=http://forums.b2evolution.net/viewtopic.php?t=17032]here[/url]).

I can't imagine how these two are related since I was not using the sticky post in this situation - I was merely adding a subcategory tag - but that is the only connection I can see... unless it's a skin issue (I changed skins about a month or so ago)... :?:

I have just always been able to edit posts, add categories, etc., without bringing the actual post to the top of the blog.

Thanks!

2 Dec 04, 2008 10:26

$orderby = 'ptyp_ID datemodified'; ... you probably want "issuedate" or summat ;)

¥

3 Dec 04, 2008 13:14

Okay, in /blogs/index.php I changed it from

// Stickies go first
$orderby = 'ptyp_ID datemodified';

to issuedate and got this error:

An unexpected error has occured!

If this error persits, please report it to the administrator.

Go back to home page
Additional information about this error:

MySQL error!

Unknown column 'post_issuedate' in 'order clause'(Errno=1054)

Your query: ItemList2::Query() Step 1: Get ID list

SELECT DISTINCT post_ID

FROM evo_items__item INNER JOIN evo_postcats ON post_ID = postcat_post_ID
INNER JOIN evo_categories ON postcat_cat_ID = cat_ID

WHERE (cat_blog_ID = 2)

AND (( post_ptyp_ID IS NULL

OR post_ptyp_ID NOT IN (1000) ))

AND (post_datestart <= '2008-12-04 07:09:59')

AND ( ( ( post_status = 'private'

AND post_creator_user_ID = 1 )

OR post_status IN ('published','protected') ) )

ORDER BY post_ptyp_ID DESC, post_issuedate DESC, post_ID DESC

LIMIT 14

:?:

Now I'm really lost. :oops:

I am not just trying to change the sticky issue (which is what it appears I am trying to do), but is this the right place to change what I want? I see nothing else with datemodified in it to change.

4 Dec 04, 2008 21:38

instead of:

// Stickies go first
$orderby = 'ptyp_ID datemodified'; 

use:

// Stickies go first
$orderby = 'ptyp_ID datestart'; 

5 Dec 04, 2008 21:48

THANK YOU THANK YOU THANK YOU!

7 Dec 23, 2008 05:17

In my 2.45 installation, it already has a "sticky" category, ID = 3. It doesn't work. Is it supposed to?

8 Dec 23, 2008 13:44

I *think* that's a future enhancement ;)

¥


Form is loading...