MyBB Community Forums

Full Version: Last Active field and Mark forums read
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How would I go about adding a "Last Active" field to a user's profile to show when they were last online.

I also have another question, how would I be able to make a "Mark Forums Read" link in the footer?
Therer is already a "Last Visit" section on a profile. But if you dont have it.

<tr>
<td><strong>{$lang->lastvisit}</strong></td>
<td>{$memlastvisitdate} {$memlastvisittime}</td>
</tr>

Mark forums read:
<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a>
(2014-04-02, 02:26 AM)thexshadow Wrote: [ -> ]Therer is already a "Last Visit" section on a profile. But if you dont have it.

<tr>
<td><strong>{$lang->lastvisit}</strong></td>
<td>{$memlastvisitdate} {$memlastvisittime}</td>
</tr>

Mark forums read:
<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a>

The last visit worked, but where do I put the "mark forums read" ? I tried putting into the footer, but it doesn't show?
I have mine in "index_stats"
(2014-04-02, 04:16 AM)thexshadow Wrote: [ -> ]I have mine in "index_stats"

I get this error:

Authorization code mismatch. Are you accessing this function correctly? Please go back and try again.
If you put it in index_stats, post index_stats.
(2014-04-03, 02:40 AM)thexshadow Wrote: [ -> ]If you put it in index_stats, post index_stats.

Quote:<tr>
<td class="trow1">
<span class="mehwhat">Board Statistics</span><br>

<span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span></td>
</tr>

Where would I put it?
Here you go.

<tr>
<td class="trow1">
<span class="mehwhat"><strong>{$lang->boardstats}</strong></span><span style="float: right"><a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a></span></td></tr>

<span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span></td>
</tr>
(2014-04-04, 05:32 AM)thexshadow Wrote: [ -> ]Here you go.

<tr>
<td class="trow1">
<span class="mehwhat"><strong>{$lang->boardstats}</strong></span><span style="float: right"><a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a></span></td></tr>

<span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span></td>
</tr>


I still get this:

Authorization code mismatch. Are you accessing this function correctly? Please go back and try again.
Try this.

misc.php?action=markread&my_post_key={$mybb->post_code}
Pages: 1 2