The Keeper
10-30-2004, 10:00 PM
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:
$vbphrase[latest_reputation_received]
Immediately after it, add:
<!-- 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:
// ############################### start reputation ###############################
Add below:
$repcount=$_POST['repcount'];
if ($repcount=="")
{
$repcount=5;
}
At the bottom of the query a few lines down, find:
ORDER BY reputation.dateline DESC
And replace the line below that with:
LIMIT 0, $repcount
First, edit the USERCP template.
Find:
$vbphrase[latest_reputation_received]
Immediately after it, add:
<!-- 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:
// ############################### start reputation ###############################
Add below:
$repcount=$_POST['repcount'];
if ($repcount=="")
{
$repcount=5;
}
At the bottom of the query a few lines down, find:
ORDER BY reputation.dateline DESC
And replace the line below that with:
LIMIT 0, $repcount