vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - SAPR: Advanced Post Rating system (ajax) (https://vborg.vbsupport.ru/showthread.php?t=170419)

waza 02-12-2008 10:00 PM

SAPR: Advanced Post Rating system (ajax)
 
Seba's Advanced Post Rating (SAPR) system with ajax- beta 2.

What is it?
In short: this is the wet dream of every vb board owner

In big: This is much more!
This adds a thumbs up/down post rating system: youtube style.

But wait there's more!
It not only adds a post rating system that works with and without ajax, but it also adds options to filter posts (on-the-flow with javascript) based on that rating.

That way your users will be able to browse easier trough threads by setting a filter, which collapses posts under a certain rating.
It also will prevent users of flooding you're site with 3 word posts.

AND THERE'S STILL MORE! It also adds a system of 'good posts', you can set a value of what is considered as a good post, and if a post reaches this value, the author gets +1 on his good post score.
So you get to see: this user has 500 posts and 150 good posts.

AND IF THAT ISN'T ENOUGH: it's also completely configurable through the admincp.

And if you download it now you also get a very nice installation guide!!

Reminder / read this
This product is still in beta stage and it can contain bugs, backup every thing you change.

Currently the rating only works with vb 3.7, in the future 3.5 and 3.6 will also be supported, but they will not have ajax rating.

This mod works best if you use the postbit template, for postbit_legacy the filtering has few effect as collapsing still leaves a lot of the post

The good posts system still needs further development, which will be done after this beta testing

This is not a supported product, I'll fix the bugs and continue to work on it, but I'll don't answer questions, never.

Copyright
All heil to seba

Instructions
It's good if you got some basic html knowledge to install this mod
See manual

Show your support!

Release notes
-13/02/2008: initial version 1.0.0 beta released
-15/02/2008: version 1.0.0 beta 2 released
NEW: option for the rating of first posts in a thread
NEW: option for the rating of own posts
NEW: admincp menu for the postrating with the option to rebuild, prune, reset the system
NEW: a class to prune, rebuild, reset the system
NEW: should work with vb 3.5 and 3.6 (not tested)
SEC FIX: fixed the bypass check bug
BUG FIX: some javascript errors
BUG FIX: some wrong phrases
Known Issues:
As stated: the good posts don't really work as expected in some cases.

Javascript error at some values (reported by stoebi): temporary fix: disable plugin postrate - save at location postdata_postsave.

Mike-D 02-13-2008 07:57 PM

Hell, that what I've been searched for a long time. Congrats in coding such a nice hack. Gonna install it right now. Definately well deserved and nominated for MOTM!!! :up: Installed Thank you very much, Sir :) -Mike

youradhere4222 02-13-2008 08:01 PM

Although I have no personal use for this, this is a great idea!

Nominated for MOTM!

Edit: One question, why on the ACP does it say "Ja" or "Nee" for options?

waza 02-13-2008 08:04 PM

Quote:

Originally Posted by youradhere4222 (Post 1442478)
Although I have no personal use for this, this is a great idea!

Nominated for MOTM!

Edit: One question, why on the ACP does it say "Ja" or "Nee" for options?

Thanks,
the 'ja' / 'nee' is because i'm dutch and I have the dutch language pack installed, but with you it should show as 'yes' / 'no'

TWTCommish 02-13-2008 09:12 PM

Nicely done. I wrote a custom hack for my site which does this; I've been pleased with the results, and suspect others will be, too. :)

FleaBag 02-13-2008 09:15 PM

Wow, looks neat. Thanks a bunch!

On a side note: TWTCommish, wow, it's been so long! I remember beta testing your first vB2 hacks. :D

Stoebi 02-13-2008 09:56 PM

Hi,

thank you very much for this nice hack. :)

The bypass checks are not working for me. My registered user has the option 'bypass checks' off and they can rating multiple times.

The option 'Posts with a rating below this will be collapsed by default' is set to -3:
If i rate a post negative (-1), the post will be collapsed. And also a value higher as -1, for example 0, 1, or 2 etc., has no effect. :(

The phrase for negative and positive needs to be exchanged. ;)
For example:
thumb_down -> Geef positieve rating should be Geef negatieve rating
thumb_up -> Geef negatieve rating should be Geef positieve rating

Collapse/Expand is only possible if this option enabeld for a group:
Can filter posts in a thread

If i rate my own post more then 8 times, the good post counter for my post increases to 1. If i rate other people posts more then 8 times, the good posts counter displays 0. Is this a correct behaviour?


Regards, Stoebi

waza 02-13-2008 10:13 PM

Quote:

Originally Posted by Stoebi (Post 1442545)
Hi,

thank you very much for this nice hack. :)

The bypass checks are not working for me. My registered user has the option 'bypass checks' off and they can rating multiple times.

I really can't reproduce this.
Try it for yourself: set the bypass check permission off and see if you can vote twice on the same post.

Quote:

Originally Posted by Stoebi (Post 1442545)
The option 'Posts with a rating below this will be collapsed by default' is set to -3:
If i rate a post negative (-1), the post will be collapsed. And also a value higher as -1, for example 0, 1, or 2 etc., has no effect. :(

what is the value in the filter dropdown menu (in the showthread)?
The system uses that value, normally it is the option, but if your usergroup can set a default value, it is the value you've set in your usercp (by default: 0, however in the next update, i'll change this to be the value of the option).
Quote:

Originally Posted by Stoebi (Post 1442545)
The phrase for negative and positive needs to be exchanged. ;)
For example:
thumb_down -> Geef positieve rating should be Geef negatieve rating
thumb_up -> Geef negatieve rating should be Geef positieve rating

thanks, something i forgot

Quote:

Originally Posted by Stoebi (Post 1442545)
Collapse/Expand is only possible if this option enabeld for a group:
Can filter posts in a thread

that's normal behaviour, filtering posts is collapsing or expanding posts.

Quote:

Originally Posted by Stoebi (Post 1442545)
If i rate my own post more then 8 times, the good post counter for my post increases to 1. If i rate other people posts more then 8 times, the good posts counter displays 0. Is this a correct behaviour?

no it isn't, but the good post system is made up very quickly, and needs more work (also for the next beta which will be soon)

Stoebi 02-13-2008 10:52 PM

Quote:

Originally Posted by waza (Post 1442553)
I really can't reproduce this.
Try it for yourself: set the bypass check permission off and see if you can vote twice on the same post.

Hm, it works sometimes, but not continuously. If it works, then only for the first post in the thread.

Perhaps this is due to this error during load/refresh the site:
Attachment 75985 Attachment 75986



Quote:

Originally Posted by waza (Post 1442553)
what is the value in the filter dropdown menu (in the showthread)?
The system uses that value, normally it is the option, but if your usergroup can set a default value, it is the value you've set in your usercp (by default: 0, however in the next update, i'll change this to be the value of the option).

0. Perhaps a value higher as -1 (0, 1 etc.) should not be allowed.

Quote:

Originally Posted by waza (Post 1442553)
that's normal behaviour, filtering posts is collapsing or expanding posts.

Thank you :)

Quote:

Originally Posted by waza (Post 1442553)
no it isn't, but the good post system is made up very quickly, and needs more work (also for the next beta which will be soon)

Okay, thank you very much for your answer(s). :)

Now i have -> Good posts: 4294967294 <- and I can't reproduce this at the moment :(


Regards, Stoebi

Lea Verou 02-14-2008 12:40 AM

Lol I had written a very similar mod for my own board but never had the time to prepare it for public release. I guess I won't need to find that time at all :P

Brent H 02-14-2008 03:14 AM

Getting the same "bypass checks" error where a user can rate multiple times...

kafi 02-14-2008 10:13 AM

Great Hack !!!!

Can you integrate it with post thank you hack?

Each thumbs up will trigger "thank you"???

And mayb integrate with reputation system?
3+ thumbs up will add reputation? (or whatever setting will be),

Thank you for good job!

waza 02-14-2008 10:23 AM

@kafi: thanks. I won't integrate it with other hacks, but as I've made it with the use of datamanagers, it can be easily done something like:

PHP Code:

if($vbulletin->options['postrate_active']){
$postman =& datamanager_init('Post'$this->registryERRTYPE_SILENT'threadpost');
        
$postman->set_existing($postinfo);
        
$postman->set('postrating',"postrating + 1",false);
        
$postman->save(); 

btw, beta 2 is coming tomorrow

KURTZ 02-14-2008 10:40 AM

cool hack, but i hate the template edits :)

anyway good job dude ;)

waza 02-14-2008 10:45 AM

I tried to minimize the template edits, i could in fact make you don't have to do any template edit, but then you wouldn't have the freedom of moving and changing things of the hack.

Stifmeister2 02-14-2008 01:25 PM

Will this work for 3.6.x ?

Nikke 02-15-2008 09:25 AM

This has huge potential, but it isn't there yet.

For example, I can vote multiple times even though I shouldn't be permitted.

waza 02-15-2008 01:25 PM

@Nikke:
Beta 2 is here, this has some bug fixes and some nice new features

@sitfmeister2:
haven't tested it on 3.6, but I think it should work fine, well, maybe the rating won't be done by ajax.

edenx 02-15-2008 05:34 PM

excellent!

Stoebi 02-16-2008 04:39 AM

Thank you very much for this nice update :)

I can't increase to +2 and decrease to +1. With IE7 i get a JavaScript error. See attachment, please.


Good Posts feature problem I have. The 'Good posts system active?' is active and the value for this system is set to 2.
The user Webmaster and the user Tester rated my post, but the Good Posts counter is not increased.


Edit:
I've uploaded an animated sapr.gif and the result was sapr.jpg. :(
Try this mirror, please: http://s5.directupload.net/images/080216/ptczdr7b.gif


Regards, Stoebi

waza 02-16-2008 09:15 AM

@stoebi:
disable the plugin: postrate_save at location postdata_postsave.
This will fix (temporary) your first and last problem, but the good posts will not be updated. However, I will finish the good post thing in beta 3.

Mike-D 02-16-2008 12:13 PM

Quote:

Originally Posted by KURTZ (Post 1442811)
cool hack, but i hate the template edits :)

Then it's time to install TMS :up:

Ranger375 02-16-2008 12:19 PM

For some reason when I click the thumbs up or down, it takes me to a not found page

Mike-D 02-16-2008 12:32 PM

Quote:

Originally Posted by waza (Post 1443663)
@sitfmeister2:
haven't tested it on 3.6, but I think it should work fine, well, maybe the rating won't be done by ajax.

Exactly :)

Stoebi 02-17-2008 02:54 AM

Quote:

Originally Posted by waza (Post 1444334)
@stoebi:
disable the plugin: postrate_save at location postdata_postsave.
This will fix (temporary) your first and last problem, but the good posts will not be updated. However, I will finish the good post thing in beta 3.

Thanks. :)

Regards, Stoebi

edenx 02-17-2008 02:31 PM

waza:

Would be extremely nice if you create like a "portal page" with the top threads from different forums... similar to digg.com or keegy.com

This could work updated every XX hours (admin defines) and could be used like for a "magazine"

option 1: different blocks to grab from different forums
option 2: frequency
option 3: grab rating from: all, last month, last week, last day

ETC

waza 02-17-2008 03:18 PM

Quote:

Originally Posted by Ranger375 (Post 1444399)
For some reason when I click the thumbs up or down, it takes me to a not found page

Have you uploaded all the files??
be sure postrate.php and the other files are uploaded.

Hornstar 02-18-2008 05:29 AM

Sounds awesome, cant wait to install 3.7 when it goes gold to install this as well :)

pcoskat 02-18-2008 08:58 PM

What an exciting mod! Can't wait till it comes out of beta (the mod and 3.7)...

ZiG 02-19-2008 09:04 AM

Quote:

Originally Posted by kafi (Post 1442796)
Great Hack !!!!

Can you integrate it with post thank you hack?

Each thumbs up will trigger "thank you"???


And mayb integrate with reputation system?
3+ thumbs up will add reputation? (or whatever setting will be),

Thank you for good job!

I would like to second the reputation integration idea!

Great hack!

Stoebi 02-23-2008 12:59 PM

Hi

In moderated posts rate should not be possible (with InternetExplorer I've a javascript error - systax error).

Regards, Stoebi

Brew 02-26-2008 05:02 PM

This is a good system but I think it's not placed in the right area in postbit.

To have a better effect it should be placed either last in the list of post info on the right or on the right side of the post title.

If this were aligned-right to the post title, within the message, it would stand out more and make it easier to use I think.

You can see what I am talking about in the following link where the mod is not listed last on the right hand side....

http://www.oldhouseforums.com/forums/showthread.php?t=3
(this link may not last a long time, it's a test post)

Cheers!

waza 03-01-2008 09:05 PM

I finally found some time to continue work on this, the final version will be done soon.

Brew 03-02-2008 04:52 PM

Quote:

Originally Posted by waza (Post 1454727)
I finally found some time to continue work on this, the final version will be done soon.

Great news man.

Please include instructions on how to place the thumbs somewhere else in postbit?

Cheers!

flapjack 03-03-2008 03:00 AM

Quote:

Originally Posted by waza (Post 1454727)
I finally found some time to continue work on this, the final version will be done soon.

I'm really looking forward to this mod. :)

Thank you so much for all the work you put in on this.

MR-2ZZ 03-04-2008 02:10 AM

I would love the reputation integration as well!

MR-2ZZ 03-04-2008 02:30 AM

How do I move the Number of Posts Next to the Thumbs with Parenthaseis around it?

Lionel 03-04-2008 03:50 PM

the div at $template_hook[postbit_controls] is pushing all other hacks using that location at botton. I tried changing the execution order with no luck. How can I fix that please?

Lionel 03-04-2008 04:04 PM

I solved my problem by splitting the plugin in 2 and by putting the $template_hook[postbit_controls] at postbit_displaycomplete. There you can control the execution order. When you put it at start, it will disrupt all other hacks using that plugin

waza 03-04-2008 09:29 PM

working on those bugs right now :)


All times are GMT. The time now is 06:01 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.01468 seconds
  • Memory Usage 1,839KB
  • 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_php_printable
  • (17)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