Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Dec 2017, 05:40
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
[vBMods.rocks] Add Like button in Comments

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 thread! 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)

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  9. Insert the following code ABOVE the code in Step 8

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  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 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

This mod is also posted on my site.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #2  
Old 23 Dec 2017, 22:44
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Thank you, cheers
__________________
VB5-- WHO HAS VISITED TODAY(last 24h) PLEASE VOTE HERE
VB5--FIRST POST ON EVERY PAGE PLEASE VOTE HERE
Reply With Quote
  #3  
Old 13 Mar 2018, 09:27
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
thanks it works well on my forum www.trendri.com
__________________
Business ideas Forum
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements [vBMods.rocks] Add Custom Profile Fields in Postbit noypiscripter vBulletin 5.x Products & Extensions 7 20 Jun 2018 19:50
New Posting Features [vBMods.rocks] Quote Selected Text noypiscripter vBulletin 5.x Products & Extensions 6 01 Feb 2018 00:49
Calendar Enhancements [vBMods.rocks] Event Date That Rocks using CSS noypiscripter vBulletin 5.x Template Modifications 4 05 Apr 2017 18:32
Miscellaneous Hacks [vBMods.rocks] Quick fix for guests having no access to the reset-password page noypiscripter vBulletin 5.x Products & Extensions 0 06 Aug 2016 01:17
Show Thread Enhancements [vBMods.rocks] Display Status Update in Postbit noypiscripter vBulletin 5.x Products & Extensions 0 02 Aug 2016 20:27


Tags
comment, like system


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 04:02.

Layout Options | Width: Wide Color: