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)

M.C. 02-09-2015 10:34 AM

Hello! Great mod and I use it! Thanks!!!

Any ideas how to integrate this mod into vbAdvanced? So everyone can see/give thumbs from vbAdvanced home page.

Same would be nice to see thumbs count at threadlist page....

And finaly what I think is what should be done first - WHY you create own table and didn't use it with original reputation system?

Thanks ;)

Fields 02-09-2015 11:10 AM

Quote:

Originally Posted by M.C. (Post 2536748)
Hello! Great mod and I use it! Thanks!!!

Any ideas how to integrate this mod into vbAdvanced? So everyone can see/give thumbs from vbAdvanced home page.

Same would be nice to see thumbs count at threadlist page....

And finaly what I think is what should be done first - WHY you create own table and didn't use it with original reputation system? for example each thumb up give +1 Reputation point...

Thanks!

Thanks ;)

This should work, just try to paste the following code in your vBadvanced module template:

PHP Code:

{vb:raw post_thumbs_box


M.C. 02-09-2015 02:27 PM

Quote:

Originally Posted by Fields (Post 2536754)
This should work, just try to paste the following code in your vBadvanced module template:

PHP Code:

{vb:raw post_thumbs_box


hmm... don't see it's working... what exact template should I paste it in?

I tried to put it in adv_portal_newsbits template.

Thanks ;)

pablodip 02-10-2015 08:18 PM

Quote:

Originally Posted by Fields (Post 2529358)
You mean you don't see them?

Yes, sorry for my english

Long ago you install it several times, but never achieved the buttons are displayed .. had all settings except that the buttons do not appear

Manoel J?nior 02-18-2015 02:04 PM

I enabled to only be shown in the first post, but would not want to appear in the posts below the image Thumbs (disabled in gray), wanted to remove, how do?

Manoel J?nior 02-21-2015 03:52 PM

I wonder also, as I do so that each reply is added in posting a like to the main post?

Tibiaspy 04-21-2015 04:11 PM

Is there a way to delete all Thumbs a user received? There is a way to delete all that he gave away and all for one post but is there a way to delete every single one of thumbs that he received?

Any way will be fine.

Tibiaspy 06-30-2015 07:12 AM

Quote:

Originally Posted by Saint_ago (Post 2405397)
Hi! That's a nice hack, thank you for doing it!

I've installed the hack yesterday, and i'm having an issue with the Thumbs Center. In the column "Date/Time", all dates and time are showing the variables "d-m-Y - H:i" instead of the actual date and time. How can i fix it?

Thanks in advance

Quote:

Originally Posted by Saint_ago (Post 2406216)
Fixed by myself.

In "thumbs_center.php"
Changed from:
Code:

$content['date'] = vbdate("d-m-Y - H:i", $xxx['xxx']);
To:
Code:

$content['date'] = vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $xxx['xxx']);
Now it uses the date/time format i've set in Vbulletin settings :)

I had the same problem, thanks for help in fixing it, tho I had to change another code.

When I used your code I got date "01-01-70 00:00" everywhere (probably because I pasted everything including $xxx :D). So if anybody has the same problem this is how to fix it:

Go to thumbs_center.php

Change:
Code:

$content['date'] = vbdate("d-m-Y - H:i", $post['dateline']);
To:
Code:

$content['date'] = vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'], $post['dateline']);
And if you have thumbs up activated for more than just posts (like for visitor msgs, blog posts, etc) you need to find all:

Code:

$content['date'] = vbdate("d-m-Y - H:i",
And replace it with:

Code:

$content['date'] = vbdate($vbulletin->options['dateformat'] . ', ' . $vbulletin->options['timeformat'],
That worked for me.

vosur 09-21-2015 07:10 PM

Hi all! Please tell me how to install Thumbs Up in vBulletin Project Tools Open Source

john7911 09-22-2015 08:13 AM

Thank you ;)

ekselent 09-22-2015 03:37 PM

Hey.

I installed this hack and it works but it only shows the thumbs up/down button on the very first post of the thread on ALL pages of the thread(doesnt matter who posted on the next pages, cant vote their thumbs), but not the comments coming after it. How can I get them to show there too, so people can up/down comments?

ekselent

friendlymela 10-08-2015 06:38 AM

Wonderful mod, i am interesting to test it soon :)

smirkley 10-12-2015 12:32 AM

Nice mod!! Thank you.

Everything works except the blog and cms. Do I need to edit templates for those too?

smirkley 10-12-2015 04:09 PM

Ahhh,...

the blog and cms instructions were in the vbadvanced instructions.

Figured it out, and thank you again.

EmjayJR 07-27-2016 04:52 PM

Does this work on VB 5?

Scandal 07-27-2016 04:54 PM

Quote:

Originally Posted by EmjayJR (Post 2574033)
Does this work on VB 5?

No, it is only for vB4.2.x :up:

caciquegm 01-03-2017 06:23 PM

Quote:

Originally Posted by Scandal (Post 2574034)
No, it is only for vB4.2.x :up:


Hi @Scandal, i need to work in spanish translation of the plugin, what is the first step for better start this task?

fwulfers 01-24-2017 05:38 PM

Fantastic mod. Easy to use and good admin settings and statistics. Two thumbs up! :)

I found the Thumbs Center thumbs_center.php but a link to this is not showing in the profiles for users. Is this supposed to show up somewhere?

Impromptu 02-13-2017 05:00 PM

Just wondering if there is a way you can list the people who liked you post.

Similar to VBulletin Org


https://vborg.vbsupport.ru/external/2017/02/5.jpg
I tried to find the actual code/variable.

If the above is possible, is there a way to remove the list of Thumbs Up USERS that opens up when you hover over the number but keep the thumb (don't won't to duplicate the list of users)

Thanks in advance

J

Impromptu 02-13-2017 05:05 PM

Quote:

Originally Posted by Impromptu (Post 2582273)
Just wondering if there is a way you can list the people who liked you post.

Similar to VBulletin Org


http://imgur.com/2bQoPDk
I tried to find the actual code/variable.

If the above is possible, is there a way to remove the list of Thumbs Up USERS that opens up when you hover over the number but keep the thumb (don't won't to duplicate the list of users)

Thanks in advance

J

Sorry Image didn't work but just trying to find out the code/variable for the List of Members who have Liked a particular post...

Like VBULLETIN ORG in this post

'The following members like this post: jamesta1221, EmjayJR, CarpCharacin, RichieBoy67, Bowlsworld and 14 others'

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.

concepts 12-21-2017 03:53 PM

My site does not allow for registrations, however I've been looking for a mod like this (great design) that can allow guests to like posts, is it possible with this mod?

Scandal 12-21-2017 05:22 PM

Quote:

Originally Posted by concepts (Post 2591740)
My site does not allow for registrations, however I've been looking for a mod like this (great design) that can allow guests to like posts, is it possible with this mod?

Hello concepts!
No, it is based on registered accounts to save the votes. :)

final kaoss 12-23-2017 11:50 PM

Nevermind, fixed

gsk8 05-30-2018 11:33 AM

We use Tapatalk and the mobile version, but can't find where to "Thumb Up"?

Great mod! Thanks for all your hard work!

Master Of Unive 10-14-2018 01:43 AM

Should have known about this earlier.

dartho 04-08-2019 10:43 AM

I'd love to see this extended to include additional options - Thumbs Up, Thumbs Down, Smiley Face, Sad Face ... similar to current Facebook likes system

gsk8 05-06-2019 05:23 PM

Hey, not sure what I did but get an error when trying to give thumbs up?

Quote:

[] operator not supported for strings on line 106 in /xxx/xxxx/xxxx/xxxxx/xxxxx/functions_sc_thumbs.php
#0 /xxxx/xxxx/xxxxxx/xxxxxx/thumbs.php(82): fetch_thumbs('2382181', '', 'post', 'postid', false)
#1 {main}


Fatal User Error: [] operator not supported for strings on line 106 in ..../includes/functions_sc_thumbs.php in ..../vb/vb.php on line 286
Trace Data:
#1 : vbstop() called in ..../includes/class_core.php on line 6089
#2 : vbulletin_error_handler() called in on line
#3 : trigger_error() called in ..../vb/vb.php on line 286
#4 : vB::handleException() called in on line

Var Type:
[ NULL ]

Var Data:
null

shka 05-06-2019 05:57 PM

Did you have recently updated PHP to 7.1 or later?

Edit line 97 of /xxx/xxxx/xxxx/xxxxx/xxxxx/functions_sc_thumbs.php

Quote:

function fetch_thumbs($id = 0, $ids = [], $contenttype, $data_id, $fetch_again = false)

gsk8 05-06-2019 06:14 PM

Yes! 7.1.28

gsk8 05-06-2019 06:19 PM

I made that change and reuploaded, but same error?


All times are GMT. The time now is 11:12 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.02025 seconds
  • Memory Usage 1,838KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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