Topic View Log

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

Previous topic - Next topic

Arantor

Given that http://custom.simplemachines.org/mods/index.php?mod=1300 doesn't say RC2 on it, it isn't RC2 compatible right now.

As for if/when... that's up to the author.
Holder of controversial views, all of which my own.


rjckE

Quote from: Arantor on November 26, 2009, 09:34:00 AM
Given that http://custom.simplemachines.org/mods/index.php?mod=1300 doesn't say RC2 on it, it isn't RC2 compatible right now.

As for if/when... that's up to the author.

hehe, i was just asking if someone tried to install it into RC2... hehe :)

Robbo_

This mod installs fine in RC2. However after installation there will be a table missing in the datbase (well appear missing... it's actually just named wrong). To fix this in your package just change log_topic_view to {db_prefix}log_topic_view in the create table function. I think recent changes to RC2 now require you to add the prefix or you have disabled the prefix with one of your later options, I can't remember which of that is true.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Sudhakar Arjunan

Quote from: Robbo_ on December 03, 2009, 11:50:27 PM
This mod installs fine in RC2. However after installation there will be a table missing in the datbase (well appear missing... it's actually just named wrong). To fix this in your package just change log_topic_view to {db_prefix}log_topic_view in the create table function. I think recent changes to RC2 now require you to add the prefix or you have disabled the prefix with one of your later options, I can't remember which of that is true.

So do we have to install or not.

Any idea.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

gastan

Using this mod with ver. 1.1.11 and the default theme.  Love it.  Thanks to the writer.

Would there be any (relatively?) easy way to mod the mod so that post views by the administrator do not register? 

I have welcome posts and privacy posts stickied in all my boards.  Plus there is a board readable (but not postable) for anyone that explains who the forum in intended for, why some personal info is asked for and what happens to it (for possible registrants that hesitate to provide that info), the registration process, etc..  I like to check these posts from time to time to see who's reading them; but I just think it looks odd to see the log with a count of 15 or 30 or 40 for the administrator and 1 or 2 for everyone else. 

gastan

bump.  and will re-word my question.

What code would you use (and where would it go) to exclude the administrator from being counted in the topic view log?

Arantor

Without knowing the code, I'd have to venture that you'd be checking for !$context['user']['is_admin'] (i.e. user is not an admin) before adding to the log.
Holder of controversial views, all of which my own.


[SiNaN]

Sources/TopicLog.php

Code (Find) Select
if (empty($topic) || $user_info['is_guest'])

Code (Replace) Select
if (empty($topic) || $user_info['is_guest'] || $user_info['is_admin'])
Former SMF Core Developer | My Mods | SimplePortal

gastan


Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

Costa

I've this error in SMF 2.0RC

Database Error
Table 'smf2.smf2_log_topic_view' don't exist
File: ***\smf2\Sources\TopicViewLog.php
Line: 234

Can you help with this?
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."

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."

gastan

I love this mod but really am only interested in who has read a topic and the last time they did.  I really don't care about how many times one individual has read a topic.  Would there be any way to eliminate the mod from keeping count of how many times a user read a topic?

madman71

Please make this mod compatible for 2.0 RC 3.  Plz, pretty plz  ;D

bros


dekay

I implemented it more or less manually and it works in RC3.
No big deal.

madman71

humm... I also did it manually and it caused errors when i went to load any post in my browser.

Care to share the code that you manipulated?

dekay

I don't really remember what I did to make it work ;)

TVL was installed on my RC1.2, so all changes to the database had been made before I updated to RC3 and re-implemented TVL.

Did you upload the additional files? Or has the Package Manager?

Quote from: madman71 on April 06, 2010, 12:24:53 PM
it caused errors when i went to load any post in my browser.
Could be helpful if you'd post it :)

madman71

i went from 1.1.8 to  2.0 RC3


The forum loads fine, but when i go and try to view a topic, i get this error:

Table 'celebri_ios.smf_log_topic_view' doesn't exist
File: /home/celebri/public_html/forum/Sources/TopicViewLog.php
Line: 234



What additional files are you referring to?

dekay

looks like the install script didn't make the database changes.

if you know what you're doing you can try to enhance the database directly.
if not, you can try to re-run the install script, regardless of the warnings the package manager gives you, if you stopped him last time and coded the whole thing manually, the database part of installation is missing.

I'm no expert in this, just guessing. Backup first before trying. Or wait until someone comes up with a better idea  ::)

Advertisement: