2019-09-16, 11:53 AM
Hello!
I've installed the [url=https://github.com/amwelles/mybb-threadlog]Threadlog plugin[/url] and it works fine, just as intended.
What I would like to do, however, is have it show up in my profile.
Specifically, if you look at this screenshot:
You can see it isn't pulling the threads that the account has participated in.
But if I go to the link (<a href="{$mybb->settings['bburl']}/misc.php?action=threadlog&uid=UID">Click me!</a>) it has no issue pulling the threads and listing them.
What I've done is:
-> Copied the content from the global template [threadlog_page] and pasted it into a theme-specific [thread_log]
-> Gone to [member_profile] and copied the code to add a tab for [THREAD LOG] as seen in the screenshot above
-> After installing 'PHP in Templates and Template Conditionals' I've called the new template [thread_log] to the [member_profile] template.
The code in [thread_log] is as follows:
If you're able to offer any insight, I would be very appreciative!
Thank you!
I've installed the [url=https://github.com/amwelles/mybb-threadlog]Threadlog plugin[/url] and it works fine, just as intended.
What I would like to do, however, is have it show up in my profile.
Specifically, if you look at this screenshot:
You can see it isn't pulling the threads that the account has participated in.
But if I go to the link (<a href="{$mybb->settings['bburl']}/misc.php?action=threadlog&uid=UID">Click me!</a>) it has no issue pulling the threads and listing them.
What I've done is:
-> Copied the content from the global template [threadlog_page] and pasted it into a theme-specific [thread_log]
-> Gone to [member_profile] and copied the code to add a tab for [THREAD LOG] as seen in the screenshot above
-> After installing 'PHP in Templates and Template Conditionals' I've called the new template [thread_log] to the [member_profile] template.
<div id="tab-3" class="tab-content"><template thread_log></div>
The code in [thread_log] is as follows:
<html>
<body>
<script type="text/javascript" src="{$mybb->settings['bburl']}/inc/plugins/threadlog/threadlog.js"></script>
{$multipage}
<table id="threadlog" class="tborder" border="0" cellpadding="{$theme['tablespace']}" cellspacing="{$theme['borderwidth']}">
<thead>
<tr>
<td class="tcat">Thread</td>
<td class="tcat" align="center">Participants</td>
<td class="tcat" align="center">Posts</td>
<td class="tcat" align="right">Last Post</td>
</tr>
</thead>
<tbody>
{$threadlog_list}
</tbody>
<tfoot>
<tr><td class="tfoot" colspan="4" align="center">
<a href="#" id="active">{$count_active} active</a> ·
<a href="#" id="closed">{$count_closed} closed</a> ·
<a href="#" id="need-replies">{$count_replies} need replies</a> ·
<a href="#" id="show-all">{$count_total} total</a>
</td></tr>
</tfoot>
</table>
<script type="text/javascript" src="{$mybb->settings['bburl']}/inc/plugins/threadlog/threadlog.js"></script>
{$multipage}
</body>
</html>
If you're able to offer any insight, I would be very appreciative!
Thank you!