I want a user's post count to be run through some code (for example, divide by 3) before display, but am confused as to where to do this.
Could someone point me to the right file?
open
./inc/functions_post.php
Find
$post['postnum'] = my_number_format($post['postnum']);
replace
$post['postnum'] = my_number_format($post['postnum'])/3;
in
member.php
find
$memprofile['postnum'] = my_number_format($memprofile['postnum']);
replace with
$memprofile['postnum'] = my_number_format($memprofile['postnum'])/3;
in
memberlist.php
find
eval("\$member .= \"".$templates->get("memberlist_row")."\";");
Above it add
$users['postnum'] = $users['postnum']/3;
Thanks!
What if I want to have a string instead, such as replacing 4 with "four". (just need a location, I can do the rest)
The location of the modification would be the same as above.
Thanks a lot. The first time I tried with a string, I got a t_variable error or something similar. Not sure what I did, as it works great now.