How do you go about displaying the post count for a user other than in public_display_profile and public_topic_page ?
I know its in $Authorextra (well 3 fields are) and that it also refers to user_profile[7]
however putting those variables elsewhere in the template files dont call the post count? Do I need to do a "require" or..?
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
Actually I've tried that, but no success just yet.
Code:
if (!$this_user_number) {
# old post- we need to find user number
$this_user_number = &GetUserNumber($thisline[2]);
if ((&FileExists("$vars_config{MembersPath}/$this_user_number.cgi")) && ($this_user_number ne '')) {
@user_profile = &OpenProfile("$this_user_number");
} else {
$thisline[8] = 'unreg';
if (!$public_name) {
$show_public_name = $thisline[2];
} else {
$show_public_name = $public_name;
}
$user_status = $vars_wordlets{unregistered};
}
} else {
# already have user number
@user_profile = &OpenProfile("$this_user_number");
}
# author info options
undef($post_total_line);
undef($location_line);
undef($regdate_line);
@author_extra = @blank;
$post_total_line = qq( $vars_wordlets{author_posts} <b>$user_profile[7]</b> );
push (@author_extra, $post_total_line);
if ($author_extra[0]) {
$AuthorExtra = join ("|", @author_extra);
} else {
$AuthorExtra = '';
}
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
ubb_forum_summary is where the code should go, Im assuming. Im trying to display total post count somewhere on public_forum_summary and possibly when the user registered.
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Havoq, more specifically, who's post count are you trying to show? The post count of the newest member, the viewers post count, another person's post count?
post count of any user logged in & if they their not logged in, it'll show nothing
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
huh? I know Ian, what do u think I've been using! lol
Im trying to get a variable in there that isnt though.. a.k.a post count
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
but when u sign out and are a guest, ur post count says nothing, its a blank. How can I make it to say 0 or none?
OK then, n/m took some thought but I figured it all out! Thanks havoq!
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind