Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Profile.php...

Asked Modified Viewed 868 times
H
hipotion
H
hipotion 10
hi-potion.NET
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

In Members profiles, where it lists statistics, I want to change a few things.

I don't care for showing comments /shoutbox posted. I want to change one of those to articles posted.
i tried tweaking the profile.php here:
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u041']."</b></td>
<td class='tbl1'>".number_format(dbcount("(shout_id)", "shoutbox", "shout_name='".$data['user_id']."'"))."</td>
</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>".$locale['u042']."</b></td>
<td class='tbl2'>".number_format($data['user_articles'])."</td>
</tr>


but i think i would have to add 'user_articles' to my db, and put...

$result = dbquery("UPDATE ".$db_prefix."users SET user_articles=user_articles+1 WHERE user_id='".$userdata['user_id']."'");


somewhere...i just dont know where. i think i would put it in admin -> articles.php

but even then, i dont know exactly what line to put it on.
Edited by hipotion on 21-09-2007 10:06,
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet