Jump to content

Display Thank's Mod Into Aquamobile Skin


Recommended Posts

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&amp;section=post&amp;do=reply_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;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 post
×
×
  • Create New...