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)

Scandal 07-18-2012 10:00 PM

[AJAX] Thumbs Up?
 
1 Attachment(s)
Thumbs up/down system for all content of vBulletin!

This mod gives a simple thumbs system for:
  • Forum posts
  • Pictures
  • Picture comments
  • Profile visitor messages
  • Social group messages
  • vBCMS articles
  • vBCMS article comments
  • vBBlog entries
  • vBBlog comments
Features
  • Thumbs up/down rating system
  • Ability to turn off "thumbs down" votes
  • Uses AJAX technology (= no page refresh when voting)
  • Ability to turn off system on each section
  • Show who vote feature (with ability to turn it off for up or/and down thumbs)
  • Postbit statistics
  • Top X rated contents in latest 7 days
  • Notification system for new thumbs (with ability to turn it off via usercp)
  • Only first post feature
  • Ban user/usergroup feature
  • Turn off system on individual forums
  • Importers from Post Thanks/Groans/vBSEO Likes, included!
  • Thumbs Up? Center:
  • - latest thumbs on "my" content
  • - latest thumbs "I sent"
  • - top rated contents
  • - statistics
Credits to my friend Lea Verou for designing the appearance of this hack!

Language packs
German

How to install?
Read the documents inside the *zip file.

How to upgrade?
1. Upload and replace the new files.
2. Import XML product with "Allow overwrite" to YES.

Changelog:
v1.0 - first release
v1.5.2 - 1 bug fixed (only first post function issue), 2 phrase edits
v1.8.0
- new feature: support for vBCMS articles & comments
- whos online locations added
- new feature: top rated (in latest 7 days) contents page
- new feature: postbit statistics
- change: only one button when "thumbs down" are disabled
- new feature: ability to change the color of the thumbs box and the color of amount font via admincp
v1.9.0
- new feature: support for vBBlog entries & comments
- small fix to box template (thanks to Valter)
update 22/12/2012
- bug fixed: guests could not show the thumbs number (shows a zero for all posts)
- to install this fix just upload and replace the updated file includes/functions_sc_thumbs.php. It is not necessary to re-upload all files or upgrade the product xml


If you like this hack, nominate it for MOTM! :cool:

-Scandal :)

RobbieZ 07-19-2012 11:59 AM

Nice, can we add more 'buttons' ? ie. thumb up and down is two buttons..

Scandal 07-19-2012 12:38 PM

Quote:

Originally Posted by RobbieZ (Post 2349480)
Nice, can we add more 'buttons' ? ie. thumb up and down is two buttons..

wow no, it is a thumbs system with ability to turn off "down" votes. ;)

Here it is an admincp screenshot, to see the options!

Shadow 07-19-2012 01:55 PM

Excellent mod, definitely using this on my forums.

Rated and Installed.

Nirjonadda 07-19-2012 02:57 PM

Does it work on 4.1.10? Manually templates Edit do not Like !

Mr_Running 07-19-2012 04:29 PM

1 Attachment(s)
Excellent :) will be testing with Albums Pictures and Picture Comments.

In regards to the Ability to turn off "thumbs down" votes

Improvement Request: How about hiding the thumbs down if the it's not enabled.

Count and Thumb would need to be centered once the thumbs down was hiding. ;)

LouiseWilson 07-19-2012 05:18 PM

nice installed
Should

Quote:

Thumbs Up?
Thumbs Up Received
Thumbs Down Received
Thumbs Up Give
Thumbs Down Give
be

Thumbs Up?
Thumbs Up Received
Thumbs Down Received
Thumbs Up Given
Thumbs Down Given

just missing the n :)

Alex@bulletin 07-19-2012 06:06 PM

1 Attachment(s)
Hi dude, great mod, will be my next translation project.
But you made an little error, maybe an redundant <b> :D

I show you the issue:

I've seen it only on SHOWTHREAD now:

That's how it should be:
https://vborg.vbsupport.ru/attachmen...1&d=1342724698

Turning your mod on does this:

https://vborg.vbsupport.ru/attachmen...1&d=1342724698

As you can see the administrative options are bolt now.
It's just a little bug, but maybe it should be fixed for next release.

:)

Scandal 07-19-2012 06:14 PM

Quote:

Originally Posted by Alex@bulletin (Post 2349606)
Hi dude, great mod, will be my next translation project.
But you made an little error, maybe an redundant <b> :D

I show you the issue:

I've seen it only on SHOWTHREAD now:

That's how it should be:
[...]

Turning your mod on does this:

[...]
As you can see the administrative options are bolt now.
It's just a little bug, but maybe it should be fixed for next release.

:)

fixed! You're very watchful! :D

Quote:

Originally Posted by LouiseWilson (Post 2349585)
nice installed
Should



be

Thumbs Up?
Thumbs Up Received
Thumbs Down Received
Thumbs Up Given
Thumbs Down Given

just missing the n :)

fixed on version 1.5.2 (+ 1 bug fix) :up:

Scandal 07-19-2012 07:11 PM

Quote:

Originally Posted by Mr_Running (Post 2349573)
Excellent :) will be testing with Albums Pictures and Picture Comments.

In regards to the Ability to turn off "thumbs down" votes


Improvement Request: How about hiding the thumbs down if the it's not enabled.

Count and Thumb would need to be centered once the thumbs down was hiding. ;)

The "down" button is necessary if you have also the thumbs down votes disabled, 'cause it unset the "thumb up". :)
Do you pick up any report to thumbs down votes (for example to Thumbs Up? Center or to the box), when they are disabled?
The only one I have in mind is that the down votes displayed on the "latest" page of Thumbs Up? Center, if you disable them "later" and the members has catch some "down" votes.

Quote:

Originally Posted by Nirjonadda (Post 2349532)
Does it work on 4.1.10? Manually templates Edit do not Like !

I think it works, vB4.2 and 4.1 haven't big differences. About the template edits: a mod can add auto-template changes only if the relative template has the necessary "hooks" on its code. I don't picked up any way to do these changes automatically. The template edits this mod needs are very small (only one "word" per template).

LouiseWilson 07-19-2012 07:40 PM

I'm guessing the
http://forumurl.net/thumbs_center.php is not added automatically onto the navbar ?

Also maybe another bug
Code:

Unknown Location
/thumbs_center.php?do=received

on Who's Online view

something maybe to consider the


Thumbs Up Received x
Thumbs Down Received x
Thumbs Up Given x
Thumbs Down Given x

being in the postbit where
Join Date ,Location is etc

However a very useful and enjoyable mod :)

orangefive 07-19-2012 08:03 PM

Thumbs Up ;)

Gemma 07-19-2012 08:30 PM

Installed and imported previous 'thanks' for Post Hack Hack effortlessly. :)

This looks very promising - some stats for the postbit would be a welcome addition in the future as would integration into the Activity Stream and/or a forum sideblock for latest thumbs up/down.

Alex@bulletin 07-19-2012 08:40 PM

I'm quite confused.
I can't find the "My Thumbs Center" in the User CP although it's enabled in the ACP settings.
Where can I find it? It is there If I enter /thumbs_center.php in the browser. But how can i
retrieve it in vbulletin?
I guess there should be a link in the navbar, but I don't have one... :(

Edit: If I click on the Thumbs-Box I got directed to the CMS Main Page of my vBulletin :confused:

Mr_Running 07-19-2012 09:02 PM

Quote:

Originally Posted by Scandal (Post 2349626)
The "down" button is necessary if you have also the thumbs down votes disabled, 'cause it unset the "thumb up". :)
Do you pick up any report to thumbs down votes (for example to Thumbs Up? Center or to the box), when they are disabled?
The only one I have in mind is that the down votes displayed on the "latest" page of Thumbs Up? Center, if you disable them "later" and the members has catch some "down" votes.

Sorry, I did not realize there were settings for Thumbs Up? Center:..... which may have confused the issue. :o What I was trying to say and most likely still trying to say...

I wish to only use the Thumbs up.
Quote:

Enable "Thumbs Down"?
Do you want thumbs down system enabled?
when it's set to No
I was hoping not to see the faded thumbs down.

The centering I was talking about refers to the result of the images after removing the thumbs down rather than having a big space between the count and the thumbs up.

0 :down::up:

if this happens.
0 -----:up:


my previous post image

Alex@bulletin 07-19-2012 09:30 PM

On your own Screenshot you can see:

https://vborg.vbsupport.ru/attachmen...4&d=1342700517

the font size of "Recent Thumbs received" is not the same as of "Recent Thumbs sent".
I think this is a bug?

Scandal 07-20-2012 04:31 AM

1 Attachment(s)
Quote:

Originally Posted by Alex@bulletin (Post 2349653)
I'm quite confused.
I can't find the "My Thumbs Center" in the User CP although it's enabled in the ACP settings.
Where can I find it? It is there If I enter /thumbs_center.php in the browser. But how can i
retrieve it in vbulletin?
I guess there should be a link in the navbar, but I don't have one... :(

Edit: If I click on the Thumbs-Box I got directed to the CMS Main Page of my vBulletin :confused:

If you're using vB4.2.X+ the Thumbs Up? Center link is on the "What's new" tab:
Attachment 139946
If you're using vB4.0.X-4.1.X should add the link manually. Also a link to the Thumbs Up? Center is on the notifications box when user has new thumbs.
Quote:

Originally Posted by Alex@bulletin (Post 2349671)
On your own Screenshot you can see:

https://vborg.vbsupport.ru/attachmen...4&d=1342700517

the font size of "Recent Thumbs received" is not the same as of "Recent Thumbs sent".
I think this is a bug?

You're right, will fix it on next version!
Quote:

Originally Posted by Mr_Running (Post 2349659)
Sorry, I did not realize there were settings for Thumbs Up? Center:..... which may have confused the issue. :o What I was trying to say and most likely still trying to say...

I wish to only use the Thumbs up.
when it's set to No
I was hoping not to see the faded thumbs down.

The centering I was talking about refers to the result of the images after removing the thumbs down rather than having a big space between the count and the thumbs up.

0 :down::up:

if this happens.
0 -----:up:


my previous post image

I'm not sure I understand, but how about the unset of "thumbs up" votes? You propose to disappear altogether the thumb down (red) button if thumbs down are disabled? Or just to appear only one box (red or green accordingly)?

Mr_Running 07-20-2012 09:59 AM

1 Attachment(s)
Yes,
Ability to turn off "thumbs down" votes = disappear the thumb down (red) when thumbs down is disabled.

Yes, appear only one box.

Ability to turn off "thumbs down" votes
Attachment 139949

Alex@bulletin 07-20-2012 12:07 PM

aah okay found it. I didn't expect that it is on the "What's new" :D

My translation is nearly done, think I will upload it tomorrow :)

Skyrider 07-20-2012 02:57 PM

While it looks great, I was hoping that the Background color can be set per style. Further more, I'm sad to see that each page refresh takes up extra seconds to load the thumbs up / down boxes on each and every single post.

When you load a thread you've never seen before, the thumbs up and down loads instantly. But after you reload the thread, it takes longer to load them every time.

Another suggestion. When you thumb someone up, the thumb up icon will be gray and the red one will stick being red. I suggest making the red gray and the green green.. Reason is that is looks like you've thumbed down the post rather than up.

And is there anyway I can add this within the title icon bar? in postbit_legacy? I try to, but it breaks the title icon page.

Other than that. Awesome plugin!

hubba 07-20-2012 05:29 PM

Problem: In the TCenter I see the old "post Thanks" points. But not in the up/down option in posting. Yes I imported as you described...

Scandal 07-20-2012 06:45 PM

Quote:

Originally Posted by FF|Skyrider (Post 2349855)
While it looks great, I was hoping that the Background color can be set per style. Further more, I'm sad to see that each page refresh takes up extra seconds to load the thumbs up / down boxes on each and every single post.

When you load a thread you've never seen before, the thumbs up and down loads instantly. But after you reload the thread, it takes longer to load them every time.

Another suggestion. When you thumb someone up, the thumb up icon will be gray and the red one will stick being red. I suggest making the red gray and the green green.. Reason is that is looks like you've thumbed down the post rather than up.

And is there anyway I can add this within the title icon bar? in postbit_legacy? I try to, but it breaks the title icon page.

Other than that. Awesome plugin!

The background color is on my plans!
Very strange this about the load, 'cause the mod do only one query per thread page for loading the box with voters.

About the button colors: voters take in directly the vote has given (+1 or -1), 'cause the counter refreshing directly.
The "logic" of changing buttons' color are the same for each thumb type:
- When click thumbs up-> green button takes to grey & red button be the same
- When click thumbs down-> red button takes to grey & green button be the same
- When you have no thumb a post or you have remove your thumb, twice buttons has their colors.
- Grey color means that you cannot push a button.
Quote:

Originally Posted by hubba (Post 2349885)
Problem: In the TCenter I see the old "post Thanks" points. But not in the up/down option in posting. Yes I imported as you described...

Do you mean that the thumbs box doesn't appear in postbit? Do you have done the necessary template edits? (read the Installation document inside the *zip file).

Quote:

Originally Posted by Mr_Running (Post 2349794)
Yes,
Ability to turn off "thumbs down" votes = disappear the thumb down (red) when thumbs down is disabled.

Yes, appear only one box.

Ability to turn off "thumbs down" votes
Attachment 139949

I understand. ;) I'm not sure currently about a change like this, but 'll see as next releases will publising.

(sorry for my bad english)

hubba 07-20-2012 06:54 PM

>Do you mean that the thumbs box

No, its there but i.E. in the Center it shows 200 thx from the old hack, in the postpox is all at 0

Scandal 07-20-2012 07:05 PM

Quote:

Originally Posted by hubba (Post 2349914)
No, its there but i.E. in the Center it shows 200 thx from the old hack, in the postpox is all at 0

The Center shows only the latest 20 thumbs. Do you mean that you import from Post Thanks, but all rating boxes (=included the posts which thanked with Post Thanks), has "0" thumbs?
Very strange!

If you talking about the statistics, after an importing, you should run the recounters (see the documentation of importers). Finally, do a clean install of Thumbs Up? and try to run the importer again.

hubba 07-20-2012 07:15 PM

I did that, but the correct numbers of thanks only shows in the Center not in the postbox.

hubba 07-20-2012 08:03 PM

1 Attachment(s)
>but all rating boxes (=included the posts which thanked with Post Thanks), has "0" thumbs?

exactly, I attach 2 pics

Scandal 07-20-2012 08:26 PM

Quote:

Originally Posted by hubba (Post 2349934)
>but all rating boxes (=included the posts which thanked with Post Thanks), has "0" thumbs?

exactly, I attach 2 pics

I look 3 thumbs to your posts on thread "Danke - Nein Danke". May you have more than one posts to that thread, which has been thumbed with +1 from members chiquitaman and Der Adel? Normally, when you click the link of post in T. Center, you're get to the corresponding post. Look at the urls you're visiting from T. Center. Has the same postid?

hubba 07-20-2012 11:06 PM

Yes, 2 have it, thats it. the popup box does not show the overall number, right? If so:

But what I am missing are 2 things:

A overall number of up and downs, so I could put it in the left postbit, under Avatar and the second, is it possible to add an amount of reputation with every up and minus with down thumb?

SilverBoy 07-21-2012 06:12 AM

Great mod

Could you add this great feature to CMS articles and articles comments?

Skyrider 07-21-2012 06:18 AM

I hope you do the change Scandal:

https://vborg.vbsupport.ru/attachmen...hmentid=139949

There is no need to have the red thumb down to appear when it's completely disabled. It's smaller, compact and I like to have this as well.

Sage Knight 07-21-2012 07:09 AM

This mod looks amazing to me, the visual design is by far the best I've seen so far.

Skyrider 07-21-2012 07:33 AM

Also, suggestion. Can this be split up?

Quote:

Max thumbs a user can give per day
To:

- Max thumbs up a user can give per day
- Max thumbs down a user can give per day.

TheChief 07-21-2012 08:52 AM

installed and in use

Nice one

TheChief 07-21-2012 09:36 AM

noticed a problem already, looks like a positive thumb adds a 1 to the number, get hit with a negative and that goes to zero?

not sure if thats meant to happen or if it should still say 2

does/should a negative cancel out a positive?

Scandal 07-21-2012 09:56 AM

Quote:

Originally Posted by TheChief (Post 2350083)
noticed a problem already, looks like a positive thumb adds a 1 to the number, get hit with a negative and that goes to zero?

not sure if thats meant to happen or if it should still say 2

does/should a negative cancel out a positive?

Members can do only ONE type of thumb to a post.
If push this https://vborg.vbsupport.ru/external/2012/07/25.png, then it goes to https://vborg.vbsupport.ru/external/2012/07/26.png (=you cannot push it again) and the thumbs counter set to "old number +1". The https://vborg.vbsupport.ru/external/2012/07/24.png be the same (=it means that you can push it to undo the https://vborg.vbsupport.ru/external/2012/07/25.png). If undo an https://vborg.vbsupport.ru/external/2012/07/25.png by clicking https://vborg.vbsupport.ru/external/2012/07/24.png, the counter goes to "old number -1".

If push this https://vborg.vbsupport.ru/external/2012/07/24.png, then it goes to https://vborg.vbsupport.ru/external/2012/07/27.png (=you cannot push it again) and the thumbs counter set to "old number -1". The https://vborg.vbsupport.ru/external/2012/07/25.png be the same (=it means that you can push it to undo the https://vborg.vbsupport.ru/external/2012/07/24.png). If undo an https://vborg.vbsupport.ru/external/2012/07/24.png by clicking https://vborg.vbsupport.ru/external/2012/07/25.png, the counter goes to "old number +1".

Finally, if you have not thumb a post or you have undo your thumb (up or down), the two buttons has their colours https://vborg.vbsupport.ru/external/2012/07/24.png https://vborg.vbsupport.ru/external/2012/07/25.png (= it means that you can push everyone, but only one time for one thumb).
A button "with colour" may have two functions: add a new thumb or remove an old (opposite) thumb.

Does my mod works differently on your site? I ask you to check if there is a bug.

Alex@bulletin 07-21-2012 01:31 PM

1 Attachment(s)
Hi there,
as I've told you via PM, I'll give the screenshot to show you more details you've requested:

Screenshot 1: (Thumbs sent)


https://vborg.vbsupport.ru/attachmen...1&d=1342880897


Screenshot 2: (Statistics)

https://vborg.vbsupport.ru/attachmen...1&d=1342880897

Hope this information can help you. As you can see some data seem to be "botchy" :D

qpurser 07-21-2012 01:37 PM

Really like this mod and hope and still playing around with it on my Test site.

I would like to show the number of Thumb up/downs in the users postbit below the avatar but for some reason they don't show up.
I am using the variables I found in the thumbs-center:
{vb:raw received.thumbsup}
{vb:raw received.thumbsdown}

Any help how to make them show would be great
Thamks
Michael

Scandal 07-21-2012 01:43 PM

Quote:

Originally Posted by Alex@bulletin (Post 2350128)
Hi there,
as I've told you via PM, I'll give the screenshot to show you more details you've requested:

Screenshot 1: (Thumbs sent)

Screenshot 2: (Statistics)

Hope this information can help you. As you can see some data seem to be "botchy" :D

Try to run the recounters about SENT thumbs on admicp > Thumbs Up? (left sidebar block).

Very strange!
Hope to understand how this number constructed to your statistics.

Quote:

Originally Posted by qpurser (Post 2350132)
Really like this mod and hope and still playing around with it on my Test site.

I would like to show the number of Thumb up/downs in the users postbit below the avatar but for some reason they don't show up.
I am using the variables I found in the thumbs-center:
{vb:raw received.thumbsup}
{vb:raw received.thumbsdown}

Any help how to make them show would be great
Thamks
Michael

Next release (coming soon!) will have this feature (postbit statistics) :D

Scandal 07-21-2012 02:02 PM

Quote:

Originally Posted by FF|Skyrider (Post 2350035)
I hope you do the change Scandal:

https://vborg.vbsupport.ru/attachmen...hmentid=139949

There is no need to have the red thumb down to appear when it's completely disabled. It's smaller, compact and I like to have this as well.

One question: what about the button of undo "thumbs up" vote?

Your example:
https://vborg.vbsupport.ru/attachmen...hmentid=139949

Can you give me an example screen about the "after" a thumbs up vote given?
Do you want a complete disappearing of https://vborg.vbsupport.ru/external/2012/07/24.png or you have not problem if it appears after a thumbs up vote, to undo it? (I'm talkikg about ONE button each time)

(sorry for my bad english)

Alex@bulletin 07-21-2012 03:27 PM

Quote:

Originally Posted by Scandal (Post 2350134)
Try to run the recounters about SENT thumbs on admicp > Thumbs Up? (left sidebar block).

Yeah did so and it fixed that issue. But it doesn't tell us how this bug has occurred...


All times are GMT. The time now is 05:13 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.01694 seconds
  • Memory Usage 1,871KB
  • 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
  • (1)bbcode_code_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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