markku
Well-known member
@Daniel HoodDid you re-introduce the Post Ratings issue / conflict in the latest update of Conversation Essentials (Conv Ess 1.6.2, Post Ratings 1.7.0)?
Because I'm again having this exact same problem:
https://xenforo.com/community/threads/conversation-essentials-paid.27874/page-37#post-889965
(And yes, it's not the code change I mentioned to you in private; I reverted that back to test if it was it).
EDIT: Confirmed. Disabling Post Ratings 1.7.0 the like/unlike private conversation messages work again (with Conv Ess 1.6.2), but not when Post Ratings is enabled...
I found the problem.
In ConvEss 1.6.1 you had the below in addon-ConvEss.xml (but you have removed this code from the .xml in 1.6.2):
Code:
2504 <modification template="dark_postrating_account_ratings_given" modification_key="convess_dark_postrating_account_ratings_given_1" description="" execution_order="10" enabled="1" action="str_replace">
2505 <find><![CDATA[<xen:include template="news_feed_item">
2506 <xen:map from="$content" to="$item" />
2507 <xen:set var="$itemTemplate"><xen:include template="news_feed_item_postrating_rate"><xen:map from="$content" to="$user" /></xen:include>
2508 </xen:set>
2509 <xen:set var="$itemDate">{$content.date}</xen:set>
2510 </xen:include>]]></find>
2511 <replace><![CDATA[<xen:if is="{$content.content_type} == 'convess_message'">
2512 <xen:include template="news_feed_item">
2513 <xen:map from="$content" to="$item" />
2514 <xen:set var="$itemTemplate"><xen:include template="convess_message_like_given_feed_item"><xen:set var="$link">{xen:link 'conversations/message', '', 'message_id={$content.content_id}'}</xen:set><xen:map from="$content" to="$user" /></xen:include></xen:set>
2515 <xen:set var="$itemDate">{$content.date}</xen:set>
2516 </xen:include>
2517 <xen:else />
2518 <xen:include template="news_feed_item">
2519 <xen:map from="$content" to="$item" />
2520 <xen:set var="$itemTemplate"><xen:include template="news_feed_item_postrating_rate"><xen:map from="$content" to="$user" /></xen:include></xen:set>
2521 <xen:set var="$itemDate">{$content.date}</xen:set>
2522 </xen:include>
2523 </xen:if>]]></replace>
2524 </modification>
2525 <modification template="dark_postrating_account_ratings_received" modification_key="convess_dark_postrating_account_ratings_received_1" description="" execution_order="10" enabled="1" action="str_replace">
2526 <find><![CDATA[<xen:include template="news_feed_item">
2527 <xen:map from="$content" to="$item" />
2528 <xen:set var="$itemTemplate"><xen:include template="news_feed_item_postrating_rate"><xen:map from="$content" to="$user" /></xen:include>
2529 </xen:set>
2530 <xen:set var="$itemDate">{$content.date}</xen:set>
2531 </xen:include>]]></find>
2532 <replace><![CDATA[<xen:if is="{$content.content_type} == 'convess_message'">
2533 <xen:include template="news_feed_item">
2534 <xen:map from="$content" to="$item" />
2535 <xen:set var="$itemTemplate"><xen:include template="convess_message_like_feed_item"><xen:map from="$content" to="$user" /></xen:include></xen:set>
2536 <xen:set var="$itemDate">{$content.date}</xen:set>
2537 </xen:include>
2538 <xen:else />
2539 <xen:include template="news_feed_item">
2540 <xen:map from="$content" to="$item" />
2541 <xen:set var="$itemTemplate"><xen:include template="news_feed_item_postrating_rate"><xen:map from="$content" to="$user" /></xen:include></xen:set>
2542 <xen:set var="$itemDate">{$content.date}</xen:set>
2543 </xen:include>
2544 </xen:if>]]></replace>
2545 </modification>
2571 </xen:if>]]></replace>
2572 </modification>
2573 <modification template="message" modification_key="convess_message_1" description="" execution_order="100" enabled="1" action="str_replace">
2574 <find><![CDATA[<xen:hook name="dark_postrating_likes_bar" params="{xen:array 'post={$message}','message_id={$messageId}'}" />]]></find>
2575 <replace><![CDATA[<xen:if is="{$conversation}">
2576 <div id="likes-{$messageId}"><xen:if is="{$message.likes}"><xen:include template="likes_summary" /></xen:if></div>
2577 <xen:else />
2578 <xen:hook name="dark_postrating_likes_bar" params="{xen:array 'post={$message}','message_id={$messageId}'}" />