Skip to content

amwelles/mybb-threadlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Setup

By default, this plugin will look in all forums and list out all threads a user has participated in. To narrow it down, you'll need to follow these steps:

  1. Log in to the MyBB Admin CP.
  2. Navigate to the forum you'd like to include.
  3. Click "Edit Forum Settings."
  4. Check off the box below "Display Order" labeled "Include in threadlog?"
  5. Click "Save Forum."

Accessing the threadlog

In case you lose the link for some reason, threadlogs can be accessed with the following link (sub UID with the user ID you'd like to view):

<a href="{$mybb->settings['bburl']}/misc.php?action=threadlog&uid=UID">Click me!</a>

Template Variables

threadlog_page

{$threadlog_list}
outputs either threadlog_row or threadlog_nothreads
<dt>{$multipage}</dt>
<dd>outputs MyBB pager</dd>

<dt>{$count_total}</dt>
<dd>outputs total number of threads</dd>

<dt>{$count_closed}</dt>
<dd>outputs number of closed threads</dd>

<dt>{$count_replies}</dt>
<dd>outputs number of threads awaiting a reply from specified user</dd>

<dt>{$count_active}</dt>
<dd>outputs number of active threads</dd>

<dt>{$uid}</dt>
<dd>outputs user ID</dd>

threadlog_row

{$threadlog_status}
outputs "closed", "needs-reply", or "active"
<dt>{$thread_title}</dt>
<dd>outputs an anchor tag with the thread subject</dd>

<dt>{$thread_participants}</dt>
<dd>outputs comma-separated list of participants, excluding the current user</dd>

<dt>{$thread_date}</dt>
<dd>outputs date thread was started</dd>

<dt>{$thread_latest_poster}</dt>
<dd>outputs link to the user who last posted</dd>

<dt>{$thread_latest_date}</dt>
<dd>outputs date of last post</dd>

<dt>{$thread_prefix}</dt>
<dd>outputs prefix of thread</dd>

<dt>{$thread_posts}</dt>
<dd>outputs number of posts in this thread</dd>

<dt>{$tid}</dt>
<dd>outputs thread ID</dd>

threadlog_nothreads

This template has no variables.

Upgrading

  1. Backup your templates somewhere safe.
  2. Uninstall the old threadlog completely.
  3. Install new threadlog, overwriting all files.
  4. Update templates to your liking.

License

CC BY-NC-SA 3.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published