shohei blog

タグ: OpenPNE

OpenPNE3.8のイイネプラグイン

何故か本文にイイネを付けられなかったので。

<!--Like Plugin -->
<div class="like" style="display: none;">
<span class="like-wrapper" data-like-id="<?php echo $communityTopic->getId() ?>" data-like-target="A" member-id="<?php echo $communityTopic->member_id ?>">
<span class="like-post">いいね!</span>
<span class="like-cancel">いいね!を取り消す&nbsp;</span>
<span class="like-you">あなたが「いいね!」と言っています。</span><br />
<a class="like-list" href="#likeModal" data-toggle="modal"></a>
<div class="like-list-member"></div>
<span class="like-friend-list"></span>
</span>
</div>

これをshowSuccess.phpに書くと良い

OpenPNEでメール無差別送付

opCommunityTopicToolKit.class.php

内の

<blockquote>if ($r-&gt;getIsReceiveMailPc() &amp;&amp; $memberPcAddress)</blockquote>
<blockquote>if ($r-&gt;getIsReceiveMailMobile() &amp;&amp; $memberMobileAddress)</blockquote>

これを

<blockquote>if ($memberPcAddress)</blockquote>
<blockquote>if ($memberMobileAddress)

こうすればいいね!