I like to have the option, I can see at any topic wich users have view the topic.
This is a default option in phpBB. But I want it on my SMF-forum too. :)
Is there a MOD for this option or does sombody know ho to make it possible?
tnx. :)
This should probably be in mod requests. ;)
Do you mean who has viewed the topic at any point or who is currently viewing the topic? If you want the current members viewing the topic, you can enable it in Admin / Current Theme. If you want a history of all members who have ever viewed the topic, you would need a mod.
Lainaus käyttäjältä: akabugeyes - marraskuu 12, 2007, 03:38:19 IP
Do you mean who has viewed the topic at any point or who is currently viewing the topic? If you want the current members viewing the topic, you can enable it in Admin / Current Theme. If you want a history of all members who have ever viewed the topic, you would need a mod.
Yes I know you can see who is actually view a topic.
But yes I want to see who has viewed the topic at any point and any time.
There is this mod that shows the users that have replied to the topic. http://custom.simplemachines.org/mods/index.php?mod=355
I also wrote a quick scrip to do this. It's not a mod though. You just access the file directly.
<?php
// Get SSI.php
require_once('../smf_converters/SSI.php');
is_not_guest();
echo '
<form action="', $_SERVER['PHP_SELF'], '" method="get">
Enter the topic id: <input type="text" name="topic" value="" /><br />
<input type="submit" value="Get Topic Viewers" />
</form>';
// What topic?
if (isset($_GET['topic']) && is_numeric($_GET['topic']))
{
// Get the topic stuff from the database.
$request = db_query("
SELECT mem.ID_MEMBER, mem.realName
FROM {$db_prefix}log_topics AS lt
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lt.ID_MEMBER)
WHERE ID_TOPIC = $_GET[topic]", __FILE__, __LINE__);
$members = array();
while ($row = mysql_fetch_assoc($request))
$members[] = array(
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
);
echo '
<table>';
$open = true;
foreach ($members as $member)
{
if ($open)
echo '
<tr>';
echo '
<td>', $member['link'], '</td>';
if (!$open)
echo '
</tr>';
$open = !$open;
}
if (!$open)
echo '
</tr>';
echo '
</table>';
}
?>
Thank you for your reply but this is not exactly wat I ment.
I also want to see if a user has only view the topic.
You mean you want to specify the user as well not just the topic? Please elaborate on your request.
Lainaus käyttäjältä: JayBachatero - marraskuu 14, 2007, 10:59:44 AP
You mean you want to specify the user as well not just the topic? Please elaborate on your request.
This is what on phpBB:
I start a topic.
After a while, me and all the users can see on top of the topic wich users have allready view (read) the topic.
All there nicknames are listed.
Maybe some of these users have also reply in the topic but this is not necessary.
This option is very handy when you have a important topic and you want to be sure all your users have read it.
I hope now you understand what I ment? ;)
Oh ok. In that case I'll move this to the mod request board.
If it was me, I would display it to admins only and probably have a set height until it begins to scroll - because if you have alot of members, it would take up alot of space ;)