Announcement

Collapse
No announcement yet.

Add Like button in Comments

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • imnotgood
    replied
    I tried this and it if you like a parent post, it likes all the comments underneath.

    Leave a comment:


  • WatchSteve
    replied
    I agree, I have no idea why they left this out. Thanks for showing us how to add the feature. Great addition!

    Leave a comment:


  • Iamtdg
    replied
    Originally posted by NumNum View Post
    Then these results will show

    Click image for larger version

Name:	Capture.PNG
Views:	46
Size:	17.8 KB
ID:	15109
    Oh, I was searching for $vbphrase[vote_cap] instead of just vote_cap. Maybe I misunderstood your original post. This worked. Thank you.

    Leave a comment:


  • NumNum
    replied
    Then these results will show

    Click image for larger version

Name:	Capture.PNG
Views:	46
Size:	17.8 KB
ID:	15109

    Leave a comment:


  • NumNum
    replied
    No, that shouldn't matter.

    Click image for larger version

Name:	Capture.PNG
Views:	48
Size:	36.8 KB
ID:	15107

    Leave a comment:


  • Iamtdg
    replied
    Originally posted by NumNum View Post
    In the search screen change "product" to "vbulletin".

    Further down change "Search In" to "Phrase Variable Name Only"
    Still says no phrases match your query. Should I select a "phrase type"?

    Leave a comment:


  • NumNum
    replied
    In the search screen change "product" to "vbulletin".

    Further down change "Search In" to "Phrase Variable Name Only"

    Leave a comment:


  • Iamtdg
    replied
    Originally posted by NumNum View Post
    AdminCP / Language & Phrases / Search in Phrases

    Not in the template itself.
    It said "No Phrases Matched Your Query". I must be doing something wrong. I searched for $vbphrase[vote_cap].

    Leave a comment:


  • NumNum
    replied
    Originally posted by Iamtdg View Post

    So, you change "vote_cap" to "Props"?
    No, you edit the phrase “Like” to “Props”.

    Leave a comment:


  • NumNum
    replied
    Originally posted by Iamtdg View Post

    So, you change "vote_cap" to "Props"?
    Just about anything.

    Click image for larger version

Name:	Capture.PNG
Views:	78
Size:	3.2 KB
ID:	15096

    Leave a comment:


  • NumNum
    replied
    AdminCP / Language & Phrases / Search in Phrases

    Not in the template itself.

    Leave a comment:


  • Iamtdg
    replied
    Originally posted by NumNum View Post
    Yes, you need to search the phrase variable $vbphrase[vote_cap] and change it to what you want. That is for the original "Like" you see in a post, I don't know if this mod inherits that phrase.
    I'm not finding that phrase variable anywhere in my default template.

    Leave a comment:


  • Iamtdg
    replied
    Originally posted by NumNum View Post
    Yes, you need to search the phrase variable $vbphrase[vote_cap] and change it to what you want. That is for the original "Like" you see a the post, I don't know if this mod inherits that phrase.
    So, you change "vote_cap" to "Props"?

    Leave a comment:


  • NumNum
    replied
    Yes, you need to search the phrase variable $vbphrase[vote_cap] and change it to what you want. That is for the original "Like" you see in a post, I don't know if this mod inherits that phrase.

    You would also want to search for $vbphrase[unvote_cap] and change that as well.

    Leave a comment:


  • Iamtdg
    replied
    Originally posted by glennrocksvb View Post
    By default, comments in vB5 have no Like button. I don't know the rationale behind not adding Likes in comments when you can like starter posts and replies.

    If you want to enable Like button in comments, you've come to the right place! This requires a very simple change in the comment template.

    Here are the steps:
    1. Login to AdminCP.
    2. Navigate to Styles > Search in Templates.
    3. Select the desired style/theme in the "Search in Style" dropdown.
    4. Enter "conversation_comment_item" (without quotes) in the "Search for Text" field.
    5. Select "Yes" in the "Search Titles Only" radio button.
    6. Click "Find" button.
    7. Double-click on the "conversation_comment_item" in the search result box to edit the template. Or select it then click "Edit" button on the "Controls" block on the right.
    8. Search for the following line in the template: (Hint: It is near the bottom)
      Code:
      {vb:template conversation_footer, conversation={vb:raw conversation}, controls={vb:raw footerControls}}
    9. Insert the following code ABOVE the code in Step 8
      Code:
      {vb:set footerControls.showVoteCtrl, 1}
    10. Click "Save" button.
    11. Repeat Steps 2 to 10 for each active style/theme you are using.
    Adding the above code still adheres to the Like permission system. If user (e.g. guests) has no permission to like a post, the Like button will not be visible in the comments. Likewise, if you like your own comment, it will display an error "You cannot Like your own posts." similar to when you like your own starter post or reply.

    This is a FREE mod. If you use this mod, please consider donating to show your and support. Thank you!

    NOTES:

    This requires a template edit, so:
    • That means this mod is only for self-hosted version and not possible in vBCloud. Sorry vBCloud owners!
    • It may cause a template merge conflict for "conversation_comment_item" template whenever you upgrade. You would have to resolve the conflicts to ensure the change is not lost
    For those who are not comfortable editing templates, you could purchase the Product Installation Add-On service below and we will install this mod for you.

    Need help or not comfortable installing this mod? Purchase the installation service below:

    Product Installation Add-On: $20
    Purchase this product add-on to get one-time professional installation of this mod from us.

    Buy Now Add to Cart View Cart
    Is there a way to change the word "Like" to a different word, such as "Props"?

    Leave a comment:

Working...
X