Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Who Rated This Thread / Delete Who Rated Details »»
Who Rated This Thread / Delete Who Rated
Version: 1.00, by paul41598 paul41598 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 12-02-2006 Last Update: 02-27-2007 Installs: 38
Uses Plugins Template Edits
 
No support by the author.

Who Rated This Thread / Delete Who Rated


Credits to Developer for this hack, as he is the original creator.
His original hack located here. More notably called "Who Rated This Thread"


What I did with this hack, is I extended the functionality of it. Normally when a user rates a thread, you never know who rated it. With Developers original hack, you can find out who rated each thread and what they rated it at.

The difference that I put into it, is now you can actually delete individual user ratings! No more needing to go into phpmyadmin and running queries. The best part about this hack is it actually alters all tables necessary so that when you delete a users rating, the thread rating average changes properly with it!!




This is now a premium hack only, available through myself

Download Now

File Type: (21.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-03-2006, 12:12 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone see this or just admins?
Reply With Quote
  #3  
Old 12-03-2006, 12:59 AM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone u set the permissions for.
Look for this part in the "whorate" template

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">

Probably best if you just set it for admins. I havnt wrote my hack yet so that the delete permissions are only for admins. Just thought about that....
Reply With Quote
  #4  
Old 12-03-2006, 01:49 AM
MorrisMcD's Avatar
MorrisMcD MorrisMcD is offline
 
Join Date: Nov 2003
Location: Cincinnati, Ohio
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598 View Post
anyone u set the permissions for.
Look for this part in the "whorate" template

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">

Probably best if you just set it for admins. I havnt wrote my hack yet so that the delete permissions are only for admins. Just thought about that....
Cool.. Simple enough.. Yea.. Even if deleting was not an option, I like the ratings to stay anonymous... Except to me of course..

So in my template edit, I just made it

<if condition="in_array($bbuserinfo[usergroupid], array(6))">

Thanks for the response.. :Clicks Install:
Reply With Quote
  #5  
Old 12-03-2006, 07:25 AM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing.
Reply With Quote
  #6  
Old 01-24-2007, 03:41 AM
HeloHi's Avatar
HeloHi HeloHi is offline
 
Join Date: Feb 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works great!

edit: wait... after testing:

I have a rouge member who decided to rate every thread 1. After I installed this, and deleted his rating from one thread, he no longer appears on any of the other rating lists, but his rating of 1 is still there on every thread except the one that I deleted. Anyone have any idea why this would only work once per member, then not show the member's rating on any other threads after the first deletion?

Also I am running 3.6.4, could that be the reason?
Reply With Quote
  #7  
Old 03-17-2007, 05:41 PM
jazde86's Avatar
jazde86 jazde86 is offline
 
Join Date: Mar 2006
Location: Deutschland
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance to show that on FORUMDISPLAY?
Reply With Quote
  #8  
Old 04-09-2007, 12:05 AM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
$vbulletin->db->query_write("
 DELETE FROM " . TABLE_PREFIX . "threadrate
 WHERE userid = '" . $_REQUEST['userid'] . "'
 ");
I had to uninstall it again.
As you see on the query in your product it deletes
all ratings of an user on all threads
You forgot to add the threadid in the WHERE-clause of the query.
Reply With Quote
  #9  
Old 04-21-2007, 02:21 PM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooh..my bad luck, this Mod is "Not supported".
Wish it is a supported one.
I don't install not supported mods.
Reply With Quote
  #10  
Old 06-28-2007, 07:53 AM
richTV richTV is offline
 
Join Date: Aug 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Muellmann View Post
Code:
$vbulletin->db->query_write("
 DELETE FROM " . TABLE_PREFIX . "threadrate
 WHERE userid = '" . $_REQUEST['userid'] . "'
 ");
I had to uninstall it again.
As you see on the query in your product it deletes
all ratings of an user on all threads
You forgot to add the threadid in the WHERE-clause of the query.
my board could really use this add-on.

has what Muellmann posted been fixed?

is this add-on you are sharing different than that premium one you are selling, Paul?

*Clicks Install for later use*

tnx, Rich.

btw, we are using 3.6.7PL1
Reply With Quote
Reply

Thread Tools

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 12:34 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.04476 seconds
  • Memory Usage 2,302KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete