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
Allow users to see all their reputation in UserCP Details »»
Allow users to see all their reputation in UserCP
Version: 1.00, by The Keeper The Keeper is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

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

This is a remarkably simple hack that takes minutes to install and allows users the option of seeing more than the default 5 repuation entries in their User CP.

First, edit the USERCP template.

Find:
Code:
$vbphrase[latest_reputation_received]
Immediately after it, add:
Code:
<!-- User Rep Options -->

<form name="rep" action="usercp.php" method="post">

<select name="repcount"
onchange="this.form.submit()" 
style="font-size:x-small">

<option>Show how many comments...</option>
<option value="5">5</option>
<option value="10">10</option>

<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
<option value="40">40</option>
</select>

</form>
Then save.

Open usercp.php

Find:

Code:
// ############################### start reputation ###############################
Add below:

Code:
$repcount=$_POST['repcount'];
if ($repcount=="")
{
$repcount=5;
}
At the bottom of the query a few lines down, find:
Code:
ORDER BY reputation.dateline DESC
And replace the line below that with:
Code:
LIMIT 0, $repcount

Show Your Support

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

Comments
  #2  
Old 10-31-2004, 12:13 PM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, thanks for the hack !
Reply With Quote
  #3  
Old 10-31-2004, 12:26 PM
The Keeper The Keeper is offline
 
Join Date: Mar 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a pic of how it looks in the UserCP

It was only knocked up in minutes, but if someone wants to convert it to use phrases and use a bit more error checking/security on the $repcount variable, feel free.
Reply With Quote
  #4  
Old 10-31-2004, 01:48 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can change it from 5 to whatever you like in the reputaion options in the ACP - we use 100
Reply With Quote
  #5  
Old 10-31-2004, 03:40 PM
The Keeper The Keeper is offline
 
Join Date: Mar 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, but that's a static figure all users have to have. This way allows any user to quickly change it themselves without having to ask an admin to change the figure for the whole board.
Reply With Quote
  #6  
Old 10-31-2004, 04:47 PM
Phalynx Phalynx is offline
 
Join Date: Feb 2004
Location: Erlangen, Germany
Posts: 2,747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one, thanks for sharing.
Reply With Quote
  #7  
Old 05-12-2006, 08:35 AM
Amaranth Amaranth is offline
 
Join Date: Jan 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks promising, but following your instructions gives me this error:

Quote:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/2/g/guildwarsnorge/www/forum/usercp.php on line 125
I'm running vB v3.5.3, what modifications would I need to make to get this to work?
Reply With Quote
  #8  
Old 04-01-2007, 08:17 PM
711 711 is offline
 
Join Date: Oct 2006
Location: CT
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this work in 3.6.x?

If not, is there a port of this mod somewhere?
Reply With Quote
  #9  
Old 04-03-2007, 05:38 PM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone upgrade this to work in 3.6.x?
Reply With Quote
  #10  
Old 12-21-2007, 09:12 PM
lhforums lhforums is offline
 
Join Date: Oct 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone done this in 3.6.x yet? This looks like exactly what my users are requesting.
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 03:32 PM.


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.05270 seconds
  • Memory Usage 2,286KB
  • 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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete