MyBB Community Forums

Full Version: Thread Log -> Show in profile?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:

[Image: ad6baf242a44eb69dbdde89556abb777.png]

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.

[Image: 44c34e4fffea46c096bae9ca185ca323.png]


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> &middot;
                <a href="#" id="closed">{$count_closed} closed</a> &middot;
                <a href="#" id="need-replies">{$count_replies} need replies</a> &middot;
                <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!
Bumping this as I'm hoping to learn the answer to this as well. Thank you!
Hi!

Still hoping for help on this one, if anyone is able to do so Smile
You shouldn't use this plugin....it is obsolete and has some bugs.
Simply copying content from one place to another won't suffice. You need to tell that code what to do if necessary (which in this case is). I would recommend to try different plugins to achieve what you want:
http://mybbhacks.zingaburga.com/showthread.php?tid=780