Jump to content
WebFlake
  • 0

how to manipulate the thanked count in ajax thanks hook ?


yarrak

Question

question is clear.i want to change the thanked count in profile.

 

/* -- ajaxThankedCountProfile --*/
function ajaxThankedCountProfile($member) {
$IPBHTML = "";
$IPBHTML .= "<li>
<span class='row_title'>{$this->lang->words['en30_thanked']}</span>
<span class='row_data'>{$member['thanked']} {$this->lang->words['en30_times']}</span>
</li>";
return $IPBHTML;
}
 
/* -- ajaxThankerLink --*/
function ajaxThankerLink($mid, $name, $seoName) {
$IPBHTML = "";
 
$member = array( 'member_id' => $mid, 'members_display_name' => $name, 'members_seo_name' => $seoName );
$IPBHTML .= "<span class="author vcard">" . ( method_exists( $this->registry->getClass('output')->getTemplate('global'), 'userHoverCard' ) ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '' ) . "</span>";
return $IPBHTML;
}
 
i couldt find the query ?
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

ok for #1 use sql toolbox or phpmyadmin

update profile_portal set thanked = thanked+1000 where pp_member_id in (4,6,8,10);

Just change the 4,6,7,10 to the member ids you want update separated by a comma as shown.

 

 

If you get an error it will because you have a prefix like ipb_ or ibf_ or ??? so you will need to add it like this

update ibf_profile_portal set thanked = thanked+1000 where pp_member_id in (4,6,8,10);

Always backup database or table profile_portal before making changes...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...