1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Like Handler

Discussion in 'XenForo Suggestions' started by silence, Jan 26, 2016.

  1. silence

    silence Well-Known Member

    So I'm using XenForo_Model_Like to implement my own like handler that I don't want incremented in the xf_user table, so I'm wondering if this line:
    Code:
                    $db->query('
                        UPDATE xf_user
                        SET like_count = like_count + 1
                        WHERE user_id = ?
                    ', $contentUserId);
    could be set to update somewhere via the content type. As it would be much appreciated :D
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    I know that the Conversation Essentials add-on basically adds a specific like method for conversation messages and excludes that line of the code.
     
  3. silence

    silence Well-Known Member

    Ah well I'll be doing that then :) but maybe down the line it could be made more dynamic?
     

Share This Page