Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Given Reputations Trackback Details »»
Given Reputations Trackback
Version: 1.00, by Jing Jing is offline
Developer Last Online: Apr 2008 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-29-2004 Last Update: Never Installs: 15
 
No support by the author.

Hello, this if my first mini-hack, and I hope it could help out somebody. I did not do a thorough search if anyone has posted something exactly like this (which is quite likely since this is a fairly simple hack), so please forgive me if it already exists. I just thought I could share my codes for those who need it.


Introduction:
I was originally trying the hack at https://vborg.vbsupport.ru/showthread.php?t=61518 , which was released by vbmechanic. Ran into some weird looping problems like how someone mentioned at the second page, but manage to fix it anyway. While fixing the error, and thinking of adding more info to the trackback, I came out with my own version.

This is completely independent of vbmechanic's hack however.


What it does
This hack adds another list for the Latest Reputation Given to other members by yourself that is identical to the original Latest Reputation Received table. You can have a look at the screenshot included and it will explain everything much better.


Changes to your vBulletin:
1 extra query on usercp.php
1 template change
1 new small template
1 new phrase

This would take only a maximum of 5 mins to finish installing.


Installation:
Instruction is included as a text attachment.


Changes Log:
05-11-2004 Found a bug in the link that points to the profiles of the recipients of the given points. Fixed with instructions posted below. The existing instruction text file has also been replaced with an updated version.

01-11-2004 Changed the header of "Posted By" to "Posted To" under template USERCP for the Latest Reputation Given table. It's located at step 4, line 139 of the textfile included.

31-10-2004 I have completely re-done this hack to separate the listing of reputations received and given as requested

30-10-2004 Added the simple hack here.

Show Your Support

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

Comments
  #12  
Old 11-02-2004, 12:30 AM
rex_b rex_b is offline
 
Join Date: Jul 2004
Location: LA
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*installed
Reply With Quote
  #13  
Old 11-02-2004, 02:04 AM
Jing Jing is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you rex_b.

sorry wordforge, I don't think I am going to change my hack to extend the list. Maybe someone else can help you.
Reply With Quote
  #14  
Old 11-02-2004, 03:56 AM
Loxias Loxias is offline
 
Join Date: Dec 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jing

Loxias: You can see the reputations given to other members, as well as reputations received from other members.
I don't suppose there's a condition I could add to have who you've given rep to visible to only yourself and not others? I have my forum setup to hide who gives reputation from members to avoid conflict and this hack would negate that setting, but my members would really like to be able to see who they've last given rep to.
Reply With Quote
  #15  
Old 11-02-2004, 04:31 AM
Jing Jing is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, this would not negate that setting. It would not change any of your current settings because this hack adds additional lines to the script for its own function and do not borrow the current codes or interfere with the existings codes, and thus will not mess up the original settings.
Reply With Quote
  #16  
Old 11-02-2004, 08:41 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wordforge.net
^ ^
nah, I'm interested in more complete listings with comments, not just the last 10 of them...
In this version, or my version (see above), just change the LIMIT part of the SQL statement to LIMIT 0, nn where nn is the number of comments you want to see. Jing's currently uses the ACP option as it's limit, mine is hard coded to 10.
Reply With Quote
  #17  
Old 11-04-2004, 12:23 AM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<i>*installed</i>
Reply With Quote
  #18  
Old 11-04-2004, 02:36 AM
Jing Jing is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you infantrymen.

wordforge: yup, you can do it like Paul M suggested. Or you can just change from ACP to include a large number so it would show up every one of them. Just that I do not think that vBulletin included a "page" feature for reputations, so I don't think it's a good idea.
Reply With Quote
  #19  
Old 11-04-2004, 03:25 PM
Jing Jing is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have found a bug with the link of the nicknames not pointing at members' profile, but to self's profile instead. Here's a fix. Only two words are changed here, so it shouldn't be hard. This is not a security fix so you can skip it if you do not wish to go thru the tiny bit of hassle. I apologize for any inconvenience caused.



At usercp.php, look up for...

Code:
	// START REPUTATION HACK
	$reputations2 = $DB_site->query("
		SELECT
			user.username, reputation.whoadded,
			reputation.postid as postid,
			reputation.reputation, reputation.reason,
			post.threadid as threadid,
.
.
.


change the bolded and underlined text to the following

Code:
	// START REPUTATION HACK
	$reputations2 = $DB_site->query("
		SELECT
			user.username, reputation.userid,
			reputation.postid as postid,
			reputation.reputation, reputation.reason,
			post.threadid as threadid,


At template usercp_reputationbits2, look up for

Code:
<tr>
	<td class="alt2"><img src="$stylevar[imgdir_reputation]/reputation_$posneg2.gif" border="0" alt="" /></td>
	<td class="alt1Active" id="p$reputation2[postid]" width="50%"><a class="smallfont" href="showthread.php?$session[sessionurl]p=$reputation2[postid]#post$reputation2[postid]">$reputation2[title]</a></td>
	<td class="alt2" nowrap="nowrap"><span class="smallfont">$reputation2[dateline] <span class="time">$reputation2[timeline]</span></span></td>
	<if condition="$vboptions['showuserraters']">
	<td class="alt1" nowrap="nowrap"><a class="smallfont" href="member.php?$session[sessionurl]u=$reputation2[whoadded]">$reputation2[username]</a></td>
	</if>
	<td class="$reputationbgclass2" width="50%"><span class="smallfont">$reputation2[reason]</span></td>
</tr>



and change to the following...

Code:
<tr>
	<td class="alt2"><img src="$stylevar[imgdir_reputation]/reputation_$posneg2.gif" border="0" alt="" /></td>
	<td class="alt1Active" id="p$reputation2[postid]" width="50%"><a class="smallfont" href="showthread.php?$session[sessionurl]p=$reputation2[postid]#post$reputation2[postid]">$reputation2[title]</a></td>
	<td class="alt2" nowrap="nowrap"><span class="smallfont">$reputation2[dateline] <span class="time">$reputation2[timeline]</span></span></td>
	<if condition="$vboptions['showuserraters']">
	<td class="alt1" nowrap="nowrap"><a class="smallfont" href="member.php?$session[sessionurl]u=$reputation2[userid]">$reputation2[username]</a></td>
	</if>
	<td class="$reputationbgclass2" width="50%"><span class="smallfont">$reputation2[reason]</span></td>
</tr>

That's all. An updated text file has been uploaded to replace the current one, so new users will not be affected.
Reply With Quote
  #20  
Old 11-08-2004, 07:30 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this - works a treat. One of my members was looking for it as well
Reply With Quote
  #21  
Old 11-08-2004, 09:41 PM
Jing Jing is offline
 
Join Date: Jun 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

welcome
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 05:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05357 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete