showPosts

Description

Loads up all posts made by a user for the "Show Posts" section of their profile.

Syntax

void showPosts (int $memID)



Parameter $memID

Expected type: Integer
Description: The ID of the member whose posts/topics we want to view


Notes

  • Accessed at ?action=profile;sa=showPosts or ?action=profile;u={user_id};sa=showPosts
  • Shows the member's topics instead if "topics" is in the querystring
  • Determines how many posts to show based on $_REQUEST['viewcount'] (will show 10 if this isn't set or isn't numeric)
  • If post moderation is enabled, will only show approved posts or topics unless you're viewing your own posts/topics
  • Allows the person viewing the posts to delete or reply to the posts if they have permission to do so
  • Allows other users to request notifications for these posts if they have permission to do so
  • Post information is loaded into $context['posts'] array
Advertisement: