Aqua-Soft Forums: Display Thank's Mod Into Aquamobile Skin - Aqua-Soft Forums

Jump to content

Aqua-Soft Mobile

Please keep all threads in this forum related to the Aqua-Soft Mobile skin.
Quicklinks: Purchase | Download: 2.0 - Invision Power Board 3.1 (Updated 2/14/2011) ยท 1.0 - Invision Power Board 3.0 | Additional User Agents | How to Install | Assigning User Agents
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Display Thank's Mod Into Aquamobile Skin Rate Topic: -----

#1 User is offline   dominique Icon

  • Group: Subscriber*
  • Posts: 1
  • Joined: 21-May 11

Posted 04 June 2011 - 09:35 AM

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 ;)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic