Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




conflic with WPML

UserPost

6:15 pm
February 12, 2010


Trouffman

Member

Montreal

posts 3

1

This plugin looks great definetly.


I'm looking to implement this plugin on my website in addition to WPML
http://forum.wpml.org/topic.php?id=1023

Hope that can be improved ^^

Trouff

6:40 pm
February 12, 2010


Kevin

Admin

posts 2381

2

Trouffman said:

I'm looking to implement this plugin on my website in addition to WPML
http://forum.wpml.org/topic.php?id=1023


The following change to revisionary/hardway/hardway-admin_rvy.php should fix your conflict:

change:

$query = str_replace("post_type = 'page'", "( post_type = 'page' OR ( post_type = 'revision' AND ( post_status = 'pending' OR post_status = 'future' ) AND post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'page' ) ) )", $query);

$query = str_replace("post_type = 'post'", "( post_type = 'post' OR ( post_type = 'revision' AND ( post_status = 'pending' OR post_status = 'future' ) AND post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'post' ) ) )", $query);

to:

$p = ( strpos( $query, 'p.post_type' ) ) ? 'p.' : '';

$query = str_replace("{$p}post_type = 'page'", "( {$p}post_type = 'page' OR ( {$p}post_type = 'revision' AND ( {$p}post_status = 'pending' OR {$p}post_status = 'future' ) AND {$p}post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'page' ) ) )", $query);

$query = str_replace("{$p}post_type = 'post'", "( {$p}post_type = 'post' OR ( {$p}post_type = 'revision' AND ( {$p}post_status = 'pending' OR {$p}post_status = 'future' ) AND {$p}post_parent IN ( SELECT ID from $wpdb->posts WHERE post_type = 'post' ) ) )", $query);

10:24 pm
March 15, 2010


Trouffman

Member

Montreal

posts 3

3

Thanks for the quick answer (I forgot to subscirbe the thrad that's why i came back here very late…)

That had fixed my main problem :)

i'll investigate more in the next few days. If it's okay i'll tell you so after hard testing !

Thanks !


7:58 pm
March 18, 2010


Trouffman

Member

Montreal

posts 3

4

seems tht ayou corrected that in the new version :D

Thanks a lot !!! \o/


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1181

Posts: 5363

Members:

There are 1173 members

There are 1 guests


Kevin has made 2381 posts

Top Posters:

metal450 - 148

Ragnar - 102

YikYak - 68

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin