vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - [AJAX] Thumbs Up? (https://vborg.vbsupport.ru/showthread.php?t=285720)

Impromptu 02-13-2017 10:57 PM

https://vborg.vbsupport.ru/external/2017/03/5.jpg

Is there a way to list members who like like above and also remove the list for the Hover part?

Thanks..

Impromptu 03-04-2017 11:35 AM

Hi guys, sorry my last posts were a little bit all over the shop and I can't seem to delete them.

What I am trying to achieve is pictured below (ie, "the following members like this post.... etc") which is similar to VBulletin.Org.

I have a thumbs up button that shows the people who have liked a post when hovered over but would prefer these names be removed if possible (but all good to stay if not).

Any ideas? I can't find the code/variable for the list of Members who have liked a post.

------------------------------------------------------------------

Image links
http://imgur.com/Z7e0ahH

forum link https://vborg.vbsupport.ru/external/2017/03/5.jpg

blind-eddie 03-04-2017 01:21 PM

You can not achieve what you are after with this addon.

You would need to use [AJAX] Post Thank You Hack and edit it with How to turn the "Post Thank You" hack into a "Likes" system similar to vBulletin.org
You will need to edit the later to work with vb4.
Good Luck!

Impromptu 03-14-2017 10:40 AM

Quote:

Originally Posted by blind-eddie (Post 2583225)
You can not achieve what you are after with this addon.

You would need to use [AJAX] Post Thank You Hack and edit it with How to turn the "Post Thank You" hack into a "Likes" system similar to vBulletin.org
You will need to edit the later to work with vb4.
Good Luck!

Any chance anyone wants to take on a project for $50.

I can't use Post Thank You Hack as it would mean existing cumulative Likes disappear and my members would cause a riot.

Need Thumbs Up to show like Vbulletin.Org.

It's a low budget but more of a thank you as the website is more for fun rather than profit making.

Midohash 04-14-2017 11:42 AM

Can you enable in one style and disable in another?

CC16 04-18-2017 06:23 AM

I've installed as instructed, and made sure the hack is enabled in settings, but the thumb icon isn't displaying next to any of my users' posts, even when using the default style :-(

xyzmaria2001 04-29-2017 06:43 PM

Works excellent on vBulletin 4.2.4, even in custom styles. Thanks!

BACHINI 05-26-2017 05:53 PM

Not work on 4.2.5 and PHP 7.1.x :(

[] operator not supported for strings 106 in .../includes/functions_sc_thumbs.php

BACHINI 05-27-2017 11:17 AM

Quote:

Not work on 4.2.5 and PHP 7.1.x

[] operator not supported for strings 106 in .../includes/functions_sc_thumbs.php
Fix:
File ../includes/functions_sc_thumbs.php

string 106
Find:
PHP Code:

$ids[] = $id

Replace:
PHP Code:

$ids $id

String 109
Find:
PHP Code:

$thumbs $vbulletin->db->query_read("SELECT * FROM " .TABLE_PREFIX"sc_thumbs_"$contenttype ." WHERE $data_id IN (" implode(','$ids) . ") ORDER BY username ASC"); 

Replace:
PHP Code:

$thumbs $vbulletin->db->query_read("SELECT * FROM " .TABLE_PREFIX"sc_thumbs_"$contenttype ." WHERE $data_id IN (" implode(',', (array)$ids) . ") ORDER BY username ASC"); 


fwulfers 06-27-2017 10:14 PM

Thanks so much Bachini, that fix worked great and it's now working on vB 4.2.5 / PHP 7.


All times are GMT. The time now is 12:47 PM.

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.01522 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete