News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topic View Log

Started by vbgamer45, July 25, 2008, 02:30:24 PM

Previous topic - Next topic

BYUFanatic

Quote from: BYUFanatic on October 20, 2008, 11:15:54 PM
Quote from: [SiNaN] on October 20, 2008, 06:11:25 AM
BYUFanatic:

Just the template files. For example the mod makes a change in Display.template.php file for default theme.

Then you will check your custom theme's files, if it has a Display.template.php file:

- If it has one; then make the same edit in that file too.

- If it doesn't have; that means it will use it from default theme, so nothing you should do.


Well, I have the following in BOTH my custom theme and in my default (original) theme:


// Topic Log button.
if ($context['can_view_topic_log'])
$normal_buttons['view_topic_log'] = array('text' => 'lt_title', 'image' => 'topiclog.gif', 'lang' => true, 'url' => $scripturl . '?action=topiclog;id=' . $context['current_topic'] . ';place=' . $context['current_board']);


But, it STILL only shows up in the default theme, not in the custom theme.

Rob


Bump.

Rob

Cal O'Shaw

Hello,

I'm running 1.1.6 and installed this MOD a day or so ago.  I'm a bit concerned because I started watching a topic already running and the log listed some, but not all of the members who accessed it.  Two members who did post were NOT listed, and two members who did not post WERE listed.  It also appears that it might be losing count data (my count appears to have declined over yesterday).

Now, I also ran the Optimise feature under Forum Management.  Could that result in reduced counts?

But I am concerned that two active participants to the topic have yet to appear in the topic log, even though I can see several posts made by them since I installed the MOD.  And two members who have never visited the topic are listed.

At this time I have to question the validity of the data presented.

Could you look into this, as I really do like the idea of being able to know who has read a topic.  This can be critical if one is trying to make sure of things such as all Moderators have read a Forum Policy Post.

Grazie,

Cal

[SiNaN]

BYUFanatic:

Can the Display.template.php file here and provide a test account which has the View TopicLog permission?

Cal O'Shaw:

I have checked it again, two issues:

1) If topic is moved, then logs will be reset.
2) When mark read feature is used, logs are removed.

It could be made completely stable by just creating a new table for this and only saving the info in the Display.php. But I don't have time for updating this mod, unfortunately.

http://www.simplemachines.org/community/index.php?topic=269092.0
Former SMF Core Developer | My Mods | SimplePortal

Kalina

#103
I am running 1.1.6, just so you know, when I try to upload this package, my forum says "The package you tried to upload either is not a valid package or has become corrupted. "

Ignore me, I just had to change my Packages folder permissions. Works great, thanks!

chriscodes

Quote from: [SiNaN] on October 12, 2008, 08:57:21 AM
chriscodes:

Attach your ../Themes/default/languages/Modifications.english.php file here.

bronxe:

I don't think we have the exactly same mod here. But try the SMF Sitemamp mod.

i deleted it but im seeing the same message ontop of my forum...

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

chriscodes

Quote from: [SiNaN] on November 02, 2008, 10:16:16 AM
You deleted what?

i get the following message in my forum when u enter as a guest:

// Topic Log Mod $txt['lt_title'] = 'Topic Log'; $txt['lt_times'] = 'Times'; $txt['lt_lastView'] = 'Last View'; $txt['tl_no_topic_id'] = 'Topic ID is not set.'; $txt['tl_no_topic'] = 'Topic doesn\'t exist.'; $txt['who_log'] = 'Viewing the topic log of %s.'; $txt['cannot_view_topic_log_own'] = 'You are not, on this board, allowed to view the topic log of your own posts.'; $txt['cannot_view_topic_log_any'] = 'Viewing just any topic log in this board is not allowed.'; $txt['permissionname_view_topic_log'] = 'View Topic Log'; $txt['permissionhelp_view_topic_log'] = 'This permission allows a user to view the topic view log.'; $txt['permissionname_view_topic_log_own'] = 'Own topic'; $txt['permissionname_view_topic_log_any'] = 'Any topic'; // Topic Log Mod // Topic Log Mod $txt['lt_title'] = 'Topic Log'; $txt['lt_times'] = 'Times'; $txt['lt_lastView'] = 'Last View'; $txt['tl_no_topic_id'] = 'Topic ID is not set.'; $txt['tl_no_topic'] = 'Topic doesn\'t exist.'; $txt['who_log'] = 'Viewing the topic log of %s.'; $txt['cannot_view_topic_log_own'] = 'You are not, on this board, allowed to view the topic log of your own posts.'; $txt['cannot_view_topic_log_any'] = 'Viewing just any topic log in this board is not allowed.'; $txt['permissionname_view_topic_log'] = 'View Topic Log'; $txt['permissionhelp_view_topic_log'] = 'This permission allows a user to view the topic view log.'; $txt['permissionname_view_topic_log_own'] = 'Own topic'; $txt['permissionname_view_topic_log_any'] = 'Any topic'; // Topic Log Mod // Topic Log Mod $txt['lt_title'] = 'Topic Log'; $txt['lt_times'] = 'Times'; $txt['lt_lastView'] = 'Last View'; $txt['tl_no_topic_id'] = 'Topic ID is not set.'; $txt['tl_no_topic'] = 'Topic doesn\'t exist.'; $txt['who_log'] = 'Viewing the topic log of %s.'; $txt['cannot_view_topic_log_own'] = 'You are not, on this board, allowed to view the topic log of your own posts.'; $txt['cannot_view_topic_log_any'] = 'Viewing just any topic log in this board is not allowed.'; $txt['permissionname_view_topic_log'] = 'View Topic Log'; $txt['permissionhelp_view_topic_log'] = 'This permission allows a user to view the topic view log.'; $txt['permissionname_view_topic_log_own'] = 'Own topic'; $txt['permissionname_view_topic_log_any'] = 'Any topic'; // Topic Log Mod // Topic Log Mod $txt['lt_title'] = 'Topic Log'; $txt['lt_times'] = 'Times'; $txt['lt_lastView'] = 'Last View'; $txt['tl_no_topic_id'] = 'Topic ID is not set.'; $txt['tl_no_topic'] = 'Topic doesn\'t exist.'; $txt['who_log'] = 'Viewing the topic log of %s.'; $txt['cannot_view_topic_log_own'] = 'You are not, on this board, allowed to view the topic log of your own posts.'; $txt['cannot_view_topic_log_any'] = 'Viewing just any topic log in this board is not allowed.'; $txt['permissionname_view_topic_log'] = 'View Topic Log'; $txt['permissionhelp_view_topic_log'] = 'This permission allows a user to view the topic view log.'; $txt['permissionname_view_topic_log_own'] = 'Own topic'; $txt['permissionname_view_topic_log_any'] = 'Any topic'; // Topic Log Mod



i want to delete it. i went to the modification.english php and took this line out from there but it still appears

[SiNaN]

Check the Modifications.english-utf8.php file.
Former SMF Core Developer | My Mods | SimplePortal

chriscodes

Quote from: [SiNaN] on November 02, 2008, 10:56:45 AM
Check the Modifications.english-utf8.php file.

already did dat, and still nuthing..

[SiNaN]

Can you re-check if you have the files that doesn't include those texts again?

And is it possible to see your forum? Also can you attach both of your files?
Former SMF Core Developer | My Mods | SimplePortal

chriscodes

Quote from: [SiNaN] on November 02, 2008, 11:02:02 AM
Can you re-check if you have the files that doesn't include those texts again?

And is it possible to see your forum? Also can you attach both of your files?

i just noticed i had 3 english files:
Modifications.english-utf8.php
Modifications.english.php
Modifications.english_british-utf8.php

i didnt check the last one, now its fine, thanx for the help

klonico

 the button topiclog  does not work
It( gives me this mistake.

Not Acceptable

An appropriate representation of the requested resource /smf/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

klonico

I´m resolved this problem.
In file display_template.php I change

Quote$normal_buttons['view_topic_log'] = array('text' => 'lt_title', 'image' => 'topiclog.gif', 'lang' => true, 'url' => $scripturl . '?action=topiclog;id=' . $context['current_topic'] .

by

Quote$normal_buttons['view_topic_log'] = array('text' => 'lt_title', 'image' => 'topiclog.gif', 'lang' => true, 'url' => $scripturl . '?action=topiclog&id=' . $context['current_topic'] .

and now work ... !!!

Costa

Thank you for this mod [SiNaN]

Can you update the brazilian Translation?

Modifications.portuguese_brazilian.php

// Topic Log Mod           
$txt['lt_title'] = 'Log do Tópico';
$txt['lt_times'] = 'Vezes';
$txt['lt_lastView'] = 'Última Visita';
$txt['tl_no_topic_id'] = 'O ID do tópico não foi colocado.';
$txt['tl_no_topic'] = 'O tópico não existe.';
$txt['who_log'] = 'Vendo o log do tópico <a href="' . $scripturl . '?action=topiclog;id=%d">%s</a>.';

$txt['cannot_view_topic_log_own'] = 'Neste quadro, você não tem permissão para ver o log do tópico dos seus posts.';
$txt['cannot_view_topic_log_any'] = 'Visualizar o log de tópicos neste quadro não é permitido.';

$txt['permissionname_view_topic_log'] = 'Ver Logs de tópicos';
$txt['permissionhelp_view_topic_log'] = 'Esta permissão permite ao usuário ver logs de tópicos.';
$txt['permissionname_view_topic_log_own'] = 'Próprio Tópico';
$txt['permissionname_view_topic_log_any'] = 'Qualquer Tópico';
// Topic Log Mod   


Modifications.portuguese_brazilian_utf-8.php

// Topic Log Mod           
$txt['lt_title'] = 'Log do T&oacute;pico';
$txt['lt_times'] = 'Vezes';
$txt['lt_lastView'] = '&Uacute;ltima Visita';
$txt['tl_no_topic_id'] = 'O ID do t&oacute;pico não foi colocado.';
$txt['tl_no_topic'] = 'O t&oacute;pico n&atilde;o existe.';
$txt['who_log'] = 'Vendo o log do t&oacute;pico <a href="' . $scripturl . '?action=topiclog;id=%d">%s</a>.';

$txt['cannot_view_topic_log_own'] = 'Neste quadro, voc&ecirc; n&atilde;o tem permiss&atilde;o para ver o log do t&oacute;pico dos seus posts.';
$txt['cannot_view_topic_log_any'] = 'Visualizar o log de t&oacute;picos neste quadro n&atilde;o &eacute; permitido.';

$txt['permissionname_view_topic_log'] = 'Ver Logs de t&oacute;picos';
$txt['permissionhelp_view_topic_log'] = 'Esta permiss&atilde;o permite ao usu&aacute;rio ver logs de t&oacute;picos.';
$txt['permissionname_view_topic_log_own'] = 'Pr&oacute;prio T&oacute;pico';
$txt['permissionname_view_topic_log_any'] = 'Qualquer T&oacute;pico';
// Topic Log Mod   


Farewell
- Costa
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Impsat-1

#114
Wow Sinan... Excelent MOD, I have running in SMF 1.1.7 and So Fine Working... here the translation to Spanish in "Modifications.English" with "LoadStandardLanguage"

// Topic Log Mod
$txt['lt_title'] = 'Log Vistas';
$txt['lt_times'] = 'Veces';
$txt['lt_lastView'] = 'Ultima Vista';
$txt['tl_no_topic_id'] = 'La ID del Tema No esta Seteada.';
$txt['tl_no_topic'] = 'Tema No Existente.';
$txt['who_log'] = 'Ver las Vistas del Tema de <a href="' . $scripturl . '?action=topiclog;id=%d">%s</a>.';

$txt['cannot_view_topic_log_own'] = 'No Tienes Permitido ver El Registro de Las Vistas de Tu Tema.';
$txt['cannot_view_topic_log_any'] = 'No Esta Permitido ver El Registro de Las Vistas del Tema.';

$txt['permissionname_view_topic_log'] = 'Ver Topic Log';
$txt['permissionhelp_view_topic_log'] = 'Este permiso permite a un usuario ver el registro de vistas de un Tema.';
$txt['permissionname_view_topic_log_own'] = 'Tema Propio';
$txt['permissionname_view_topic_log_any'] = 'Cualquier tema';
// Topic Log Mod


Thanks again for this MOD... & Regards  8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Such a wonderful mod for all Admins.

Thanks for the developer, i was waiting for 2.0.4 upgrade since i used this mod on 1.1.6.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

MissyNL

Sorry for my poor English, but i think it's probably better then your Dutch :)

Kimmie

This mod isnt recording views correctly. I have threads that members are actually replying to, and the log doesnt show that they even visited the thread..lol.

Any idea how to fix this?


bros

SMF 2.0 Beta 4

Database Error
Table 'xxxx_smf1.smf_log_topic_view' doesn't exist
File: /home/xxxxx/public_html/boards/Sources/TopicViewLog.php
Line: 233

Advertisement: