dominique Posted June 4, 2011 Report Share Posted June 4, 2011 Hello, This is just a little code in order to display ajax thank hook into this mobile skin. I've noticed that only moderators have access to this hook. If you want to give access to users, you can : -edit Topic View Template find this : <a id="post_controls_{$post['post']['pid']}" href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}"><img src="{$this->settings['img_url']}/post_reply.png" alt="Reply" /></a> Add after this: <if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'thank'"> <a id='ajax_thanks' id='ajaxThanks_{$post['post']['pid']}'> <a href="javascript: ajaxThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_thank_author']}'>{parse replacement="add_friend"} {$this->lang->words['en30_thank']}</a> </a> </if> <if test="ajaxThanksButton:|:$post['post']['thanks']['button'] == 'remove' && $this->settings['en31_remove_thanks']"> <a id='ajax_thanks' id='ajaxRemoveThanks_{$post['post']['pid']}'> <a href="javascript: ajaxRemoveThanks( '{$post['post']['pid']}' );" title='{$this->lang->words['en30_unthank_author']}'>{parse replacement="remove_friend"} {$this->lang->words['en30_unthank']}</a> </a> </if> It's only for use [EN30] Ajax Fast Reply Link to comment
Recommended Posts