MyBB Community Forums
MyBB Community Forums
>
Community Archive
>
Archived Forums
>
Archived Development and Support
>
MyBB 1.6
>
1.6 General Support
> Variable again
Full Version:
Variable again
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
effone
2012-08-08, 03:25 PM
This variable:
{$mybb->user['posts']}
Works fine in 'usercp' template.
I want it to be working for 'header' template.
Any help?
Nathan Malcolm
2012-08-08, 03:35 PM
Assuming you want the number of posts the user has made:
{$mybb->user['postnum']}
effone
2012-08-08, 03:40 PM
Exactly.
Thank you so much
MyBB Community Forums
>
Community Archive
>
Archived Forums
>
Archived Development and Support
>
MyBB 1.6
>
1.6 General Support
> Variable again