Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




problem with more than one sticky post

UserPost

12:36 pm
June 24, 2010


wonko

Member

posts 11

1

Hi,

If I define more than one sticky post I get a very strange behaviour. If the admin is logged in everything looks fine, but if a guest or normal user visits the site only the older sticky post is visible as such - the newer one shows up as a normal post.

If I disable "Access Types Apply Roles and Restrictions for:
" in the realm-tab of Role scoper it works again.

take a look at http://ng.rbol.de

(option is on) and the admin sees sticky B above sticky A and both with the colored background.

http://dsa.rbol.de shows the site in its actual theme (which has no influence on the problem) with the option turned off and two now working stickies.

Since I did not define any special roleScoper-settings for either of the posts and category, author etc. are the same on them I assume this is a bug and not an error in my role-definitions?

kind regards,

Ronnie

10:15 pm
June 24, 2010


Kevin

Admin

posts 2503

2

Thanks for the report. Happily, this was a simple database query syntax error and an easy fix.

In query-interceptor-front_rs.php, function flt_sticky_posts…

change:

$post_ids = scoper_get_col( apply_filters( 'objects_request_rs', "SELECT ID FROM $wpdb->posts WHERE ID IN ('" . implode( ',', $post_ids ) . "')", 'post' ) );

to:

$post_ids = scoper_get_col( apply_filters( 'objects_request_rs', "SELECT ID FROM $wpdb->posts WHERE ID IN ('" . implode( "','", $post_ids ) . "')", 'post' ) );

I will include this fix in the development version and the next release.

2:07 am
June 26, 2010


wonko

Member

posts 11

3

Thanks!


About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1248

Posts: 5657

Members:

There are 1260 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin