Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2013, 04:10 AM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 'Like' post capability ?

What's the best/easiest way to add this feature to 4.2.0?
Reply With Quote
  #2  
Old 03-06-2013, 04:23 AM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a Mod called "Helpful Answers System" it can be used for this purpose and works very well.
https://vborg.vbsupport.ru/showthread.php?t=233296
Reply With Quote
  #3  
Old 03-06-2013, 12:46 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a nice one, Ba'al. Thank you for suggesting it. But I think it's a bit more than what I have in mind. What I want is a simple Facebook-type 'Like' button that when pressed will result in indication on a post that someone has agreed with/endorsed the message. I see this feature being used on various vB forum sites, so I know it's available. It in fact even appears to be in use here. Can anyone please tell me how to get it for my own vB forum site?

Thanks in advance.
Reply With Quote
  #4  
Old 03-06-2013, 01:07 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post Thank You + Recent Thanks (for Notifications)

https://vborg.vbsupport.ru/showthread.php?t=231666

https://vborg.vbsupport.ru/showthread.php?t=280109

After install, just do a phrase find/replace for all "Thanks" variants -> "Likes"

You can see what it looks like on any one of our threads, in case you want a demo before installing:

http://psychopathfree.com/showthread...-feeling-today

We had to do something specific to get the total "Liked: # Times" under each username/avatar, post back if you want me to look at our template.

Also, you may want to check out these instant AJAX notifications which work out flawlessly with the two mods above:
https://vborg.vbsupport.ru/showthread.php?t=266914

This will put an instant notification of new "Likes" at the bottom of the screen, without refreshing the page or anything.
Reply With Quote
  #5  
Old 03-06-2013, 02:15 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

findingpeace: Thank you VERY much! And I would definitely be interested in the code to get the 'Like' total counts to appear under the member's information (at your convenience, of course).

Thanks again!
Reply With Quote
  #6  
Old 03-06-2013, 02:22 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem! I think it's included in the mod, I just remember it looked really messy on the default theme. It might be all fixed in the latest release or something, but if not, here is what we use:

Open up template: post_thanks_postbit_info

And just replace it all with this:

Code:
<vb:if condition="$post['userid']">
	<vb:if condition="$post['post_thanks_thanked_times'] == 1">
	<dt>Liked</dt> <dd>{vb:rawphrase post_thanks_time_post}</dd>
	<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dt>Liked</dt> <dd>{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
		
	<vb:else />
<dt>Liked</dt> <dd>{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>

	</vb:if>
</vb:if>
Let me know if I can provide any more info These are definitely great modifications to include - increases user engagement a ton. You might also want to consider this one:

https://vborg.vbsupport.ru/showthread.php?t=267329

Which adds notifications for new replies in threads that the user has posted in or created. Also integrates perfectly with the instant AJAX mod.
Reply With Quote
  #7  
Old 03-06-2013, 03:04 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, thanks kindly!

--------------- Added [DATE]1362599861[/DATE] at [TIME]1362599861[/TIME] ---------------

Well, the 'Thanks' hack works fine and the stats for each member display in the posts and appear to update and track properly. But the 'Thanks' stats lines messed up a couple of member profile information fields that I've add to the posts in a plugin using the following code:
Code:
if ($post['field6'])
{
    $template_hook['postbit_userinfo_right_after_posts'] .= "'<dt>My Field Name 1</dt> <dd>' . $post[field6] . '</dd>'";
}

if ($post['field5'])
{
    $template_hook['postbit_userinfo_right_after_posts'] .= "'<dt><b>My Field Name 2</b></dt> <dd>' . $post[field5] . '</dd>'";
}

Does anyone know how to fix that or a better way to add those profile fields to the posts?
Reply With Quote
Reply


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


All times are GMT. The time now is 02:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05444 seconds
  • Memory Usage 2,218KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete