Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

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 1326

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/



Reply to Topic: conflic with WPML

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 3 + 11        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

10 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin