07-01-03 at 01:40 AM BigJohnson said this in Post #15 Thanks so much lesane. But one thing. I am just looking at the code for a second and I don't notice this feature.
Say i have 20 points. And i make a new thread. I cannot set the number to be 21 or above or a get an error. The maximum points i can use is only the ammount i have.
It does already do that, look at this code in newthread.php:
PHP Code:
// if points needed to reply higher is then the user's amount of points then display template 'thread_nopoints_ask'
if ($points > $usermoney) {
eval("standarderror(\"".gettemplate('thread_nopoints_ask')."\");");
exit();
}
Quote:
07-01-03 at 01:40 AM BigJohnson said this in Post #15 But I was thinking u just type the number of points in a field. because the points is bound to go over even 2000.
Open template: forum_coolpoint
And change all the content to the following:
PHP Code:
<tr bgcolor="#1C5780">
<td bgcolor="#1C5780"><normalfont><b>Points Needed To Reply: </b></normalfont></td>
<td bgcolor="#13486D"><normalfont><input type="text" class="bginput" name="points" value="0" size="40" maxlength="85" tabindex="1"></normalfont><b> Put the amount of points also in your message to let us know!</b></normalfont></td>
</tr>