Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 07-20-2007, 05:04 AM
richTV richTV is offline
 
Join Date: Aug 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
$vbulletin->db->query_write("
 DELETE FROM " . TABLE_PREFIX . "threadrate
 WHERE userid = '" . $_REQUEST['userid'] . "'
 ");
Hi.

i could really use this add-on if the threadid could be added so that it doesn't delete all ratings by a user

i'm not a programmer so i was wondering if someone could be so kind as to tell me if it would look like this? [my additioin is in red]....

Code:
$vbulletin->db->query_write("
 DELETE FROM " . TABLE_PREFIX . "threadrate
 WHERE userid = '" . $_REQUEST['userid'] . "' AND threadid = '" . $_REQUEST['threadid'] . "'
 ");
Reply With Quote
  #13  
Old 07-20-2007, 11:15 AM
Carlos2 Carlos2 is offline
 
Join Date: Sep 2002
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work
Reply With Quote
  #14  
Old 07-24-2007, 01:06 AM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your red code addition looks correctly richTV.
However the ' ' are for both values not necessary.
Reply With Quote
  #15  
Old 07-24-2007, 07:58 AM
Carlos2 Carlos2 is offline
 
Join Date: Sep 2002
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I install Vborg thread ratings and this plugins seems to doesnt work now. Anybody knows why?
Reply With Quote
  #16  
Old 07-25-2007, 02:27 AM
richTV richTV is offline
 
Join Date: Aug 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Muellmann View Post
Your red code addition looks correctly richTV.
However the ' ' are for both values not necessary.
ok, many tnx in looking into this.
Reply With Quote
  #17  
Old 12-29-2007, 06:31 AM
richTV richTV is offline
 
Join Date: Aug 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys, using MS Sharepoint Designer, i incorporated Muellmann's edit [thanks!] into an updated xml and it's working fine in vB 3.6.8 PL1

this will do as Paul described but it won't delete ALL of that member's ratings from ALL threads....only that particular thread.

if u already installed it, then just overwrite the product with this one.

many thanks to Paul for sharing this useful addon.

and apologies if this was wrong of me to share here.
Attached Files
File Type: (21.4 KB, 13 views)
Reply With Quote
  #18  
Old 09-24-2008, 02:43 AM
richTV richTV is offline
 
Join Date: Aug 2006
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

currently using it in vB3.7.3

i didn't like how it looked:

Attachment 87255

so i changed it to look like this:

Attachment 87256

Full Install Notes:

upload delete.gif to your images/misc and then install xml [above post]

In SHOWTHREAD template,

Find:

Code:
</head>

BEFORE IT ADD:

Code:
<script language="JavaScript">
<!--//BEGIN Script

function new_window(url) {

link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=250,left=180,top=180");

}
//END Script-->
</script>
Find:

Code:
<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a>
After it add:

Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"><a href="#" onclick="javascript:new_window('misc.php?do=whorate&threadid=$threadinfo[threadid]')"><center><b><font color=red>$vbphrase[devel_whorate_who]?</font></b></center></a></if>
Find:

Code:
<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a>
change to:

Code:
<td class="thead"><center>$vbphrase[rate_this_thread]</center><a name="goto_threadrating"></a>
cheers and many thanks again to Paul.
Reply With Quote
Reply


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 11:59 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.04200 seconds
  • Memory Usage 2,304KB
  • Queries Executed 23 (?)
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
  • (8)bbcode_code
  • (1)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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