PDA

View Full Version : Display who has read a thread - Version 3


Paul M
05 Apr 2006, 01:49
This modification is no longer available or supported.

This is a completely new version, based on the idea of my "Display who recently read a thread" hack.

It has a few differences that some people may prefer to the other system. However, those differences may not suit everyone so both versions will continue to be available. Note however that they both have the same product id, it is not possible (or sensible !) to use both at the same time. You can upgrade Version 2 to Version 3 simply by importing the new product with overwrite set to 'yes'.

This version uses it's own table and does not rely on the database thread marking system being active, this also means that old data is not lost when the display limit is passed. The problem of people not being recorded when reading old threads is also removed.

The hack is a vb product and is installed in the normal manner via the product manager - the installation does a small amount of processing so be patient.

Hovering over a name in the displayed list will show when the member last visited the thread, and (optionally) what IP address they last visited it from.

There are settings for the following (in vBulletin Options - Thread Display Options) ;

1. Turn the system on/off.
2. Restrict the display to certain usergroups
3. Restrict the IP display to certain usergroups.
4. Restrict the display to a set number of days.

Note: When using option 4, the data is still kept beyond this limit, so it can be changed at any time.


History:

v3.12 : First Release.
v3.13 : Minor changes, no update necessary.

bada_bing
05 Apr 2006, 01:56
reserved for later use.. Any screen shots?

Paul M
05 Apr 2006, 02:02
Reserved ???

Anyway, screenie attached. :)

SaN-DeeP
05 Apr 2006, 02:03
nice mod with additional features, please post a screenshot for admincp.

thanks.

SaN-DeeP
05 Apr 2006, 02:09
3. Restrict the IP display to certain usergroups.
does the ip display also counts for guests and serps ?

Paul M
05 Apr 2006, 02:32
Guests are not recorded.

eNforce
05 Apr 2006, 02:40
Neat-o mod, installed and working fine on my board :)

SMO
05 Apr 2006, 03:56
nice paul..installed

rareclownfish
05 Apr 2006, 04:19
installed

blue6995
05 Apr 2006, 07:38
For some reason I am getting the list of users that read the thread displayed twice! Any ideas why?

Thanks

Paul M
05 Apr 2006, 07:58
Did you upgrade from a very old version ? - sounds like you have some old template code in showthread.

Darat
05 Apr 2006, 09:31
Paul - looks an interesting hack, have you any plans to allow it to be restricted to just certain forums?

dizzy100
05 Apr 2006, 09:37
great hack, works as described :)

**INSTALLED**

Stop
05 Apr 2006, 10:32
surely Installed

You rock man

Smiry Kin's
05 Apr 2006, 10:38
very nice dude installed straight away, soo easy aswell, love it!

keep em coming.

Paul M
05 Apr 2006, 11:15
Paul - looks an interesting hack, have you any plans to allow it to be restricted to just certain forums?Not really considered it tbh, why would you want to ?

Darat
05 Apr 2006, 11:17
Not really considered it tbh, why would you want to ?

There are some threads in some forums that my members probably don't want their names appearing on a "public" record.

klaush
05 Apr 2006, 11:57
There are some threads in some forums that my members probably don't want their names appearing on a "public" record.

Thanks, Darat! We have the same issue, Paul. It would be charming, if this very useful hack could be configurable for each forum as well.

blue6995
05 Apr 2006, 12:01
Did you upgrade from a very old version ? - sounds like you have some old template code in showthread.

I expect it is, but I cannot recall which version it was. Can you give me an idea of what the template code changes would have been?

Nathan2006
05 Apr 2006, 14:24
Thank you Paul :)

Is there anyway to stop the admin names appearing in that box?

Thanks again:cool:

Install

simsimt
05 Apr 2006, 15:29
Thank you for the new version.

I second Nathan2006's suggestion about restricting the display for admins & smods/mods usergropus from showing on the list. It happend quite often in my board that members where bashing me for not reading their threads! And I would never set myself as an admin for invisible browsing.

Also, the IP address show feature should certianly restricted only to admins or otherwise it would be useless & no one will use it.

Moya
05 Apr 2006, 19:01
Hi Paul

I install this mod and nothing show up for me

1) I turn on database marking (auto)
2) I set it available to all user by (0)
3) I turn the option on

...and No Show.

Did I miss something?

Thanks

pauloo
05 Apr 2006, 19:28
Check if in SHOWTHREAD you have
<!-- end currently active users -->

Moya
05 Apr 2006, 19:37
Yes! I have it.

Paul M
05 Apr 2006, 19:38
Are you in a group that has it enabled ?

Paul M
05 Apr 2006, 19:50
Is there anyway to stop the admin names appearing in that box?Other than make yourself invisible, no, there is no way to do that.

Also, the IP address show feature should certianly restricted only to admins or otherwise it would be useless & no one will use it.It is already restricted to only specified usergroups (5,6,7 by default).


At the moment the ip is for information only, in the future I plan to allow searching of it, since (in default vb) you can only track peoples ip if they post, not when they browse.

Secondly, this currently does not track how far a person has read in a multipage thread, that will be added in the future - and possibly other bits I may find useful. You will be able to click on a persons name in the list to display a little window showing this extra information (ip, last post read etc ...).

I'll also consider adding an option to exclude a list of forums from displaying the list.

Moya
05 Apr 2006, 19:54
Are you in a group that has it enabled ?

Yes I am. Here are the picture

Paul M
05 Apr 2006, 20:02
Then I really have no idea without access to your site.

Moya
05 Apr 2006, 20:36
I am sorry. I have to uninstall this mod :(

Paul M
05 Apr 2006, 20:44
I am sorry. I have to uninstall this mod :(You give up easily ;) BTW, your screenshots didn't actually show that you were in an enabled group, only that it was enabled for groups 2,5,6 & 7. The other shot is not relevant as this isn't linked to database marking. :)

Moya
05 Apr 2006, 22:27
You give up easily ;) BTW, your screenshots didn't actually show that you were in an enabled group, only that it was enabled for groups 2,5,6 & 7. The other shot is not relevant as this isn't linked to database marking. :)

I love all of your hacks, ranging from who visit..., who has read, and others. For some reasons, none of them works on my board. I have been trying all them without success. Since there is a lot of good feedback on your hacks, I think there might something wrong on my end. I am currently using php5 and mysql 5 (I think). This might be a potential problem (I think :( )

Paul M
05 Apr 2006, 22:31
If none of them work then you have a serious issue with your board, and I really cannot imagine what (do you have plugins disabled ?). I can't really see why php5 or mysql5 would affect any of them, they must be in use elsewhere. Why not PM me an admin login and I can have a look. :)

.Tim
05 Apr 2006, 22:41
One of your many great hacks. Nice job!

Moya
05 Apr 2006, 22:42
Hi Paul

I just sent you a PM

Thanks

Paul M
06 Apr 2006, 00:27
Moya,

You have a faulty hack installed called "ATMM Forum Column" - it has broken code in the 'cache_templates' hook, which means any further hacks that use this hook will not actually get their code run. A number of my hacks run code in that hook and hence they will fail. If you disable "ATMM Forum Column" then you should see the thread readers working.

pseudocode
06 Apr 2006, 00:49
Awesome hack

<<<<CLICKS INSTALL

Moya
06 Apr 2006, 00:50
Oh I C

Thanks so much Paul. I will look into that hack again. :D This means that I will be able to use all of your hacks.

foulplay
06 Apr 2006, 07:17
Installed Great!!!

blue6995
06 Apr 2006, 11:06
I expect it is, but I cannot recall which version it was. Can you give me an idea of what the template code changes would have been?

Cannot find the template changes I need to rectify this problem of seeing those that have read the thread appearing in 2 identical dialogue boxes...uninstalled, reluctantly

moonclamp
06 Apr 2006, 12:29
Yep this is better, the other system made my 'showthread' page load too slowly.

*installs*

Paul M
06 Apr 2006, 12:57
Cannot find the template changes I need to rectify this problem of seeing those that have read the thread appearing in 2 identical dialogue boxes...uninstalled, reluctantlyIf you used an old version of this then look for a block of code in SHOWTHREAD labelled "<!-- Thread Readers -->" or something similar - also try looking for "thread_readers" or "$treaders".

If you have non of those then perhaps you have this line in your template twice for some reason ?
<!-- end currently active users -->

OndaReal
06 Apr 2006, 15:15
installed :)

blue6995
06 Apr 2006, 15:29
If you used an old version of this then look for a block of code in SHOWTHREAD labelled "<!-- Thread Readers -->" or something similar - also try looking for "thread_readers" or "$treaders".

Excellent - yes, it was the block of code under "<!-- Thread Readers -->"

Many thanks - Installed

HaMaDa4eVeR
06 Apr 2006, 17:59
good jop

I've question !
what do u meant by "Restrict the display to a set number of days" ??

can u add more information about the member who has read thread like how many times , last read date ...

Thank u
Installed :)

Gizmo5h1t3
06 Apr 2006, 18:08
got it installed, and works a treat...
nice addition m8

Paul M
06 Apr 2006, 18:55
what do u meant by "Restrict the display to a set number of days" ??If you set it to "X" days it will only list members who have read the thread in the last X days.

The last read time is already shown, read the notes. :)

firstrebel
06 Apr 2006, 18:58
Does the v3 xml file name need to be changed to upgrade from v2.23 as it is a slightly different name, or will it still overwrite?

Bob

Paul M
06 Apr 2006, 19:01
The file name does not matter, only the contents. :)

aciurczak
06 Apr 2006, 19:08
Works perfectly! Paul - your hacks are such a refreshing change from many of the other items sprinkled throughout this board. They are useful, they are cake to install, the instructions are great, and almost all of them are useful enough that I wonder why vB doesn't just include them in the base code.

I never have to go in and "fix" these hacks to work on my board; I just have to go in sometimes and "tweak" them to make them just a bit better for my purposes.

The one change I made on this one (same as I did on your prior version) was to sort the thread readers by "dateline" instead of username. I think the display is much more useful when sorted by when they visited rather than by their usernames, but that's perhaps because we have a small board with a few hundred users rather than a mega-board of tens of thousands where username might make more sense. I'm not clear if embedding this choice as an admin option would be easy/hard/impossible, but it may be useful for other folks who would want a choice in how the usernames were sorted in that display.

Paul M
06 Apr 2006, 19:16
The one change I made on this one (same as I did on your prior version) was to sort the thread readers by "+++++ad.dateline" instead of username. I think the display is much more useful when sorted by when they visited rather than by their usernames, but that's perhaps because we have a small board with a few hundred users rather than a mega-board of tens of thousands where username might make more sense. I'm not clear if embedding this choice as an admin option would be easy/hard/impossible, but it may be usefulActually, none used be sorted by name, I changed it due to numerous requests. :)

Reef
06 Apr 2006, 23:02
This is now exactly what I have wanted and the upgrade from previous version went fine..

Thanks Paul, I really hated the databased threadmarking before

john1744
07 Apr 2006, 01:56
Does this use many resources to operate?

brvheart
07 Apr 2006, 02:53
Installed :) - Thanks for all the hacks you put time into....greatly appreciated :)

Is there any way to have a reset like in the 3.0.x version so that you as an admin can reset the counter, and track who viewed, then who viewed after the reset counter?

Paul M
07 Apr 2006, 04:55
Sorry, no, that will not be added to this.

HaMaDa4eVeR
07 Apr 2006, 15:22
If you set it to "X" days it will only list members who have read the thread in the last X days.

The last read time is already shown, read the notes. :)

:)

yeah I saw it ....
your code is smart ,,,:rolleyes: (search_text)
thank you again

Gizmo5h1t3
07 Apr 2006, 16:09
Installed :) - Thanks for all the hacks you put time into....greatly appreciated :)

Is there any way to have a reset like in the 3.0.x version so that you as an admin can reset the counter, and track who viewed, then who viewed after the reset counter?

shame that wont be added, as it was a great addition...
yoiu could track that way who had read stuff after a certain time etc.....

shame

Paul M
07 Apr 2006, 17:03
yoiu could track that way who had read stuff after a certain time etc.....You can do that anyway, so i don't really see your problem. :cross-eyed:
Hovering over a name in the displayed list will show when the member last visited the thread

Gizmo5h1t3
07 Apr 2006, 20:14
You can do that anyway, so i don't really see your problem. :cross-eyed:

wasnt aware i had one chum...lol

btw...hovering over the names on my board doesnt work..mebbe thats the problem u think i have?

chill bro.....lose the aggressiveness in the posts...and prepare to accept constructive criticizm.....lololol

sheesh....all i said was, its a shame you werent going to develop it any further in the way that poster suggested.......

step away from the keyboard...lol

Snake
07 Apr 2006, 20:51
This is nice. I've just installed it on my forums! ;)

counterform
07 Apr 2006, 22:53
Does this use many resources to operate?

This is plugin is genius. I too am interested in overhead. With 200+ users active at a given time and surfing like crazy, is there a chance of significant slowdown with an average box (3GHZ, 1GB RAM, Linux)?

Paul M
08 Apr 2006, 00:22
Does this use many resources to operate?Nope - you shouldn't be able to notice any difference. It uses one select query, and one update query, per displayed page - on a medium sized forum these will run in less than 1/100th of a second.

The pages themselves will be slightly larger due to the list of names - roughly 1k per 10/12 names.

counterform
08 Apr 2006, 00:55
How difficult would it be to limit the reader log to only those users who have posted to the particular thread? I am not asking you to mod the plugin, just wondering how monumental it would be for me to augment, and (if it is not a breach of etiquette to ask) where I should start if it is not a performance-draining epic?

Paul M
08 Apr 2006, 01:22
Not too difficult - you would need another sql query to extract a list of all posters in the thread, and then some php to disable the display if the viewer is not in that list.

counterform
08 Apr 2006, 01:31
Could it be done at the point in which the readers are logged into the +++++ad table (ie. if user has posted before then update reader log for the post when the user enters the thread). Well, I know it can be done, but which would be more efficient from a resource/storage standpoint: pre-log analysis, or filtering the results as mentioned above?

Sorry if I am getting to involved. I have decent php/mysql chops, but I am pretty new to vBulletin. You seem to be a plugin guru so I want to know if I am way off base or if I will run into massive troubles if I try to tackle a pre-log evaluation scenario with the initial INSERT.

Paul M
08 Apr 2006, 01:36
You wouldn't want to do it when updating the readtime, otherwise you would lose/miss data - someone viewing the thread, who hasn't posted in it yet, wouldn't get recorded as having read it.

counterform
08 Apr 2006, 01:45
Hmm, that sounds like what I might want it to do. Basically, when a user who has previously posted to the thread enters the thread, I want it to log their most recent visit - anyone who has not posted to the thread should be ignored.

That said, I am not concerned if a person posting to the thread is logged as a person who 'read' the post right after their post - I would be happy if it simply logged subsequent visits to the thread (basically to see if a poster ever revisted the thread).

Make sense?

counterform
08 Apr 2006, 01:46
sweet plugin, by the way, as is :D

x_5
09 Apr 2006, 18:57
thanx for the hack
what about add opition in this setting allow to show the table up or down like the previous hack
up = under the code

$polls if that show


down = same place Currently

thnhan
12 Apr 2006, 23:58
Installed it. Works nicely! :-)

BTW, there is no instruction on how to configure this or where the control panel is. It took me a while to search for it until I found the configuration in VBulletin Options - Thread Display Options (showthread).

For other novice like me, a little guidance on configuration/CP would be helpful.

Thanks

NT

Paul M
13 Apr 2006, 00:16
Options location added to notes.

SCORPION1
14 Apr 2006, 00:25
installed thanx m8 seems to be running :cool:

COBRAws
15 Apr 2006, 22:29
Paul - looks an interesting hack, have you any plans to allow it to be restricted to just certain forums?
This would be great. It would be cool just to have this installed on my Staff forums, so when someone posts something I want to know who read it and who didnt.

If this is not going to be included in a future release, I dont mind either, but it would be great!

ShadowOne
15 Apr 2006, 22:53
great hack... not sure if someone posted this, but after install hack, it starts who has read from that point, not previous....*installed*....it should be a default setting...

Paul M
15 Apr 2006, 22:55
great hack... not sure if someone posted this, but after install hack, it starts who has read from that point, not previous....*installed*....it should be a default setting...That's not entirely true. If you have the database thread marking system turned on it copies the data from that when installed.

ShadowOne
15 Apr 2006, 22:58
That's not entirely true. If you have the database thread marking system turned on it copies the data from that when installed.

Oh, Okay...:D...

Paul M
16 Apr 2006, 14:37
No idea really, if it got to 1000 then theres no reason it should not get to 2349 - maybe your connection to the server was lost. Just close the page and login to your acp again, it may have installed okay (those dots are a local thing vb put in, they don't rely on a server connection).

Paul M
16 Apr 2006, 16:29
Sorry, I can't help you without an admin login, something in your threadread table is breaking a pretty simple record copy operation and I really can't imagine what. Does the product show as installed when you re-login ? if so then you should be able to just import it again - and this would bypass the copy code.

slim cutty
17 Apr 2006, 05:14
I've read this post through and through and I just can't seem to get this working to where it doesn't show double who has read this thread...

On my default template it shows once (who has viewed the thread) when I go to the child template it shows twice. any suggestions??? I've searched both showthread templates and I do not see anything that duplicates. I've even reverted them and it still shows twice???

Help! ..lol

What Template is created that shows this??? SHOWTHREAD didn't seem to be changed at all or I can't find where it is changed atleast???

Paul M
17 Apr 2006, 08:06
Go back a few pages in the thread and have a read of post #41, see if that answers your problem. :)

Paul M
17 Apr 2006, 12:15
LMK ? what's that ?

Send me a PM with details, if you do it in the next 10 mins I can look now, otherwise it will be a few hours as I'm off out soon.

csidlernet
21 Apr 2006, 11:18
thanks alot buddy

COBRAws
22 Apr 2006, 01:48
Works like a charm (as it did before!) once again I upgraded to 3.5.4

Thank you Sir Paul M :D

jilly
22 Apr 2006, 21:16
Could it be possible that this could be restricted to certain forums, so you could just add the forumid of the forums to use this?

I ask because I have certain areas, like tech support, announcements, and back end moderator areas where I want to know or my helpers need to know if someone has read a thread for admin /tech support reasons - but I dont want to use it out on the general boards because I think it might cause some issues. Mainly in some areas on my site, a member's feelings may be hurt if they see so and so read their thread but didnt respond, etc. So I want to use ot more for admin purposes..

gravesend46
28 Apr 2006, 14:04
Installed, cheers!

I have one nasty ex-member who siphons off posts from our forum and uses them selectively on his blog to attack us. He's banned, but he has some cronies, so at least I can now pin down where his info might be coming from!

MustangLisa
28 Apr 2006, 14:23
Cool, thanks. I've been wanting to install something like this.

angelo
28 Apr 2006, 21:44
Thanks, I might install this..but a few suggestions...

Before when I was on phpbb we had a hack like this and it recorded every user who viewed a thread, but each time they viewed the thread it would bump their username back to the beginning of the list of names...this way you could tell when they re-viewed a thread...for example, maybe you made a post and u would really like to know if a certain person has read the thread since the last time, you would know they have because their username is back up towards the beginning.

The second feature that would be nice to have with this is for the list to be collapsable, if you have 5,000 people view a thread it's not gonna be very cool seeing a list of 5,000 usernames...it should only show to users if they select it from a collapsable thing or something.

I would actually pay to have these features added if that's possible..thanks.

Paul M
29 Apr 2006, 00:20
Perhaps you should have actually installed it first - the list is already collapsable :cool: - Changing the display order of the names is achieved by changing the SQL WHERE clause to use dateline.

Feel free to send me your payment for the above ;)

angelo
29 Apr 2006, 00:25
ahh, my bad dude...i'm gonna install and fiddle with it. thanks :)

robgeo
29 Apr 2006, 02:25
Great hack!!!! Thanks!!!!!!!!!!!

Nachtfalke
29 Apr 2006, 15:36
Don't know, what i am doing wrong, but the list is not showing up. Seems that the Display_Readers template is never included, wether I am in the right usergroup or not. I entered 6 for the usergroup, as i am the board admin. But nothing happens. And yes, I have activated it :-) Any Idea about that?
THX 4 help!

Paul M
29 Apr 2006, 17:36
Do you have a custom style ?

Nachtfalke
29 Apr 2006, 17:50
Yes, I have. Could that be the solution? How to fix that?

Paul M
29 Apr 2006, 18:09
To work, this comment must be present in the showthread template (in the appropiate place).

<!-- end currently active users -->

Obviously it's in the default vb style, but it maybe missing from your custom style so you will need to add it.

Nachtfalke
29 Apr 2006, 20:14
Thank you for the advice. Checked it twice, it is definitely there. But still nothing happens.

Paul M
29 Apr 2006, 20:28
There is nothing else I can tell you without access to your forum.

jilly
30 Apr 2006, 05:19
Just checking in on my idea again - possible? not possible?
Thanks!!

Could it be possible that this could be restricted to certain forums, so you could just add the forumid of the forums to use this?

I ask because I have certain areas, like tech support, announcements, and back end moderator areas where I want to know or my helpers need to know if someone has read a thread for admin /tech support reasons - but I dont want to use it out on the general boards because I think it might cause some issues. Mainly in some areas on my site, a member's feelings may be hurt if they see so and so read their thread but didnt respond, etc. So I want to use ot more for admin purposes..

Paul M
30 Apr 2006, 11:13
It's not possible without adding extra code and options.

SHOBizzy
01 May 2006, 01:10
Installed! Thanks for the flawless hack! :banana:

vktechnology
05 May 2006, 23:12
I have error when import old data
------------------------------
Importing Product, Please Wait...


Installing Table
Copying Data - 986864 Records to Process

Fatal error: Maximum execution time of 30 seconds exceeded in /home/palungjit/board/includes/class_core.php on line 369

Paul M
06 May 2006, 03:27
Installing Table
Copying Data - 986864 Records to Process
That's an insane number of records in your threadread table. You either have an incredibly busy forum, or a ridiculously high value for the database marking days, or your cron job to clear the db marking table is not doing it's job.

Paul M
06 May 2006, 04:49
BTW, when did I give you permission to remove the copyright notice from my Top Posters hack you have installed ?

vktechnology
07 May 2006, 00:02
BTW, when did I give you permission to remove the copyright notice from my Top Posters hack you have installed ?
Apology about this.. my new staff tested and installed it...
I just Click install and reinstall..

vktechnology
07 May 2006, 00:53
That's an insane number of records in your threadread table. You either have an incredibly busy forum, or a ridiculously high value for the database marking days, or your cron job to clear the db marking table is not doing it's job.
yes..
something about treadread table to big to import..

I reinstall again.
I go to phpmyadmin

1. copy Threadread table to threadread2
2. emtry threadread table
3. upload "who has read a thread - Version 3" & import datbase very fast..
4. delete table name +++++ad
5 copy threadread2 to +++++ad and make structure same as +++++ad table..

now it work...

thank you for making this script...

sensimilla
11 May 2006, 13:10
Any chance to put it on top and not bottom of the page ?

Thanks in advance

Paul M
11 May 2006, 20:26
Not without editing the code, and possibly a template.

m52
14 May 2006, 07:17
installed, and working.

nice!

DementedMindz
15 May 2006, 06:26
wow i went to uninstall this and got a nice database error i guess ill keep it installed until i can figure out why.. i dont think it removes everything when uninstalled

DementedMindz
15 May 2006, 06:28
Database error in vBulletin 3.5.4:

Invalid SQL:

REPLACE INTO +++++ad
(userid, threadid, dateline, ipaddress)
VALUES
(1, 1335, 1147674434, 'xx.xxx.xxx.xxx');

Paul M
15 May 2006, 13:39
Not sure what the +++++ is for but that code is from one of the plugins so it hasn't been uninstalled, try again, or just disable it.

Yorixz
15 May 2006, 18:06
Very nice addon, just got one little feature request, could you add an option to make it possible to limit this hack to a few categories (and subforums of these), this could remove the query on the forums where it isn't requred (or that are too often requested).
Thanks for your work so far!

DementedMindz
15 May 2006, 18:30
Not sure what the +++++ is for but that code is from one of the plugins so it hasn't been uninstalled, try again, or just disable it.


nah its your plugin just vbulletin is filtering who read cause i think its picking it up as a curse word(put who read together and look at the first 5 letters)... look at others post too it does the same... just lookin to get rid of the product but once i do i get a sql error...

RemiAlone
15 May 2006, 21:27
Great mod!

click!

arcadian_girl
16 May 2006, 11:47
just installed this and it's great-just what i needed. thank you so much :)

DementedMindz
16 May 2006, 16:03
Pual any word why it wont let me remove it? like i said if i do i get a nice sql error... i never had a problem on any of your other mods just this one

Paul M
16 May 2006, 19:51
Pual any word why it wont let me remove it? like i said if i do i get a nice sql error... i never had a problem on any of your other mods just this one
I have no idea, the uninstall feature for products is a standard part of vbulletin. If all else fails you could manually delete the plugins and the table.

DementedMindz
17 May 2006, 01:40
TRUELY SUCKS... cause i cant get it to work nor can i get it to uninstall... i tried removing the table i get a sql error i tried removing the table and plugin same thing... wish i never installed it now...

Paul M
17 May 2006, 03:58
You seem to have got your hooks system into a mess - but deleting products/plugins is standard vb functionality, not specific to individual plugins/products.

Have you actually tried installing it again (with overwrite set to yes) and then uninstalling it ?

There is not much else I can do unless you want to e-mail me access details with admin access to the plugin system.

DementedMindz
17 May 2006, 04:03
i dont seem to see why my hooks system would be a mess... every other mod installs and removes just fine... i have other mods of yours installed fine and they work great and uninstall great its just this one giving trouble... i remove it and get a sql error... the tables are there i see it in the products but when i remove it poof sql error... also yes i have tried installing it again (with overwrite set to yes) and then uninstalling it but same error....

Paul M
17 May 2006, 04:18
The code that generates that sql is part of one of the plugins (specifically "Display Thread Readers (2)" which is attached to the "showthread_complete" hook). When you uninstall it, vb should remove that plugin, clearly it isn't - but that's standard functionality, not plugin code. Becasue it's removing the table, but not that piece of code - you get the error.

Do you have a duplicate of that plugin for some reason, and one somehow detached itself from the product ?

Like I said, without you sending me access details there is nothing else I can say or do as I am just guessing / stabbing in the dark - I cannot see what your plugin system is actually doing wrong.

Gizmo5h1t3
20 May 2006, 13:41
upgraded to this without any problems....now shows as version 3.13 in the product list....

lasto
21 May 2006, 02:45
quick question to Paul M

installs perfect and works fine - but one thing

it shows at the bottom of my threads - i would like to be at the top and cant find where to change it - any help m8 ?

Paul M
21 May 2006, 03:35
It attaches itself to the currently viewing box, moving it away from that would involve code and template changes.

Boofo
21 May 2006, 03:36
Is there a way to have the box collapsed when first viewing it instead of open?

Paul M
21 May 2006, 03:41
Is there a way to have the box collapsed when first viewing it instead of open?You can edit the template so it's collapsed by default when the page is loaded, and you have to manually expand it. But it won't remember it's state, it will always be collapsed when you load the page.

(I did this on our forum and the peasants revolted, I had to change it back).

Boofo
21 May 2006, 03:44
You can edit the template so it's collapsed by default when the page is loaded, and you have to manually expand it. But it won't remember it's state, it will always be collapsed when you load the page.

(I did this on our forum and the peasants revolted, I had to change it back).

I would like it that way as the only time I would open it up is when I wanted to know who has read that aprticular thread. How and where would I change that?

Paul M
21 May 2006, 03:57
Replace the Display_Readers template with this ;

<!-- Thread Readers -->
<if condition="$show[whohasread]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('thread_readers')"><img id="collapseimg_thread_readers" src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" alt="" border="0" /></a>
$trtitle
</td>
</tr>
<tbody id="collapseobj_thread_readers" style="display:none;">
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$treaders</span>
</td>
</tr>
</tbody>
</table>
</if>
<!-- End Thread Readers -->

Boofo
21 May 2006, 04:41
Excellent, that works great! Thank you, sir. ;)

So, what gets changed to make it like that? I have another one that I want the last line of it to display when it is collasped.

Paul M
21 May 2006, 10:53
Basically, two lines have changed, shown in bold.

<!-- Thread Readers -->
<if condition="$show[whohasread]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('thread_readers')"><img id="collapseimg_thread_readers" src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" alt="" border="0" /></a>
$trtitle
</td>
</tr>
<tbody id="collapseobj_thread_readers" style="display:none;"> <tr>
<td class="alt1" colspan="2">
<span class="smallfont">$treaders</span>
</td>
</tr>
</tbody>
</table>
</if>
<!-- End Thread Readers -->

lasto
21 May 2006, 11:14
so i cant have it at the top of the thread then ??

also i dont have `who`s viewing this thread` enabled.

Paul M
21 May 2006, 11:51
If you move the whole block of "who's viewing" (shown below) to the top of your threads by editing SHOWTHREAD then it will move with it.

<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- end currently active users -->

lasto
21 May 2006, 13:07
cheers paul m will look at that

thanks

havefun
30 May 2006, 15:43
thx for this version :)

xlegends
02 Jun 2006, 07:18
very nice..

Yorixz
02 Jun 2006, 20:16
"2. Restrict the display to certain usergroups"
I'm wondering if it's also possible to configure it in a way that it'll only show these stats to moderators of that subforum? Thanks for your support and great work so far!

Dave-G
03 Jun 2006, 17:25
Any idea how to fix this error... See attached

Freesteyelz
04 Jun 2006, 02:44
Thanks, Paul M. :) *Clicked Install*

I've made subtle changes to the template (used my own):

MegaHertz
04 Jun 2006, 17:59
Paul,

Thanks for a great mod. This is so close to what I was looking for. The only thing I would like to see added as an option if at all possible, is the ability to insert the collected information as a user note. This is not an option I would want to use all the time, but on occasion I have had a need for something that would help me track exactly when a thread was viewed by each user.

Belisario
13 Jun 2006, 19:53
Thanks ever so much!:banana:

sinaluna
18 Jun 2006, 19:26
"2. Restrict the display to certain usergroups"
I'm wondering if it's also possible to configure it in a way that it'll only show these stats to moderators of that subforum? Thanks for your support and great work so far!I would also be interested in this. Thanks - great hack!

Paul M
18 Jun 2006, 20:02
Sorry, it's not possible without altering the code, which I don't have the time for atm.

hotwheels
18 Jun 2006, 20:26
great idea, can't believe i didn't add this earlier.........thanks

Vogelfreund
02 Jul 2006, 15:49
"2. Restrict the display to certain usergroups"

Hi,

is there any way to change it to usernumbers instet og groups?

Vogelfreund
02 Jul 2006, 15:54
i mean...

change:

$groups = explode(',',$vbulletin->options['whohasreadgrps']);
if (is_member_of($vbulletin->userinfo,$groups) OR $groups[0] == 0)
Into somthing like this:

$members = explode(',',$vbulletin->options['whohasreadgrps']);
if ($vbulletin->userid,$members)
Can someone help with the correct variables ?

Montana
02 Jul 2006, 20:33
Where doers this show up in the AdminCP? I'm not seeing where I can administer it.

Paul M
02 Jul 2006, 20:35
It tells you in the main post.

paul41598
24 Jul 2006, 12:56
nice! Thanks Paul

I||usi0nz
31 Jul 2006, 16:59
worsk great, thanks :)

Whiterook
02 Aug 2006, 01:36
Thank You Paul, I hope to get this installed tonight.



Edited to Read as follows:

Got it to install just fine!, works great too, but.........

I had another one installed, deleted it via the plugin manager. My problem is, for some reason the other plugin did not completely uninstall (only a guess). I have attached the two variations shown in the jpg.

Here is the code I find in the "SHOWTHREAD". Am I seeing two instances below? If so, could you tell me which one to remove?
I see no other "who viewed this thread" in the document. If this code is correct, could someone possibly tell me which template the other was coded?

The other mod was called "who_has_viewed_this_thread.xml" 4KB. I will search for the author, I am unprepared as usual.


<!-- who viewed this thread -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
$vbphrase[already_viewed_this_thread]
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$thread[viewers]</span>
</td>
</tr>
</table>
<!-- who viewed this thread -->



Many Thanks to any who can help,
WhiteRook



Edit 1 more time!

Before anyone tells me the above syntax is not apart of Pauls mod.... I just found that out. I love finding my own errors... :D

So, if anyone has installed the above named Mod, and you have tried to uninstall it. You will need to find the above code in the Showthread template, and Remove it as well. That code was manually placed in the template, and needs to be manually removed of course... *whistles as he looks to the sky :D

Thanks again for the mod Paul.... great work man!

grazianno
04 Sep 2006, 17:47
reserved for later use.. Any screen shots?
too funny :)

Mikecp421
25 Sep 2006, 15:17
To work, this comment must be present in the showthread template (in the appropiate place).

<!-- end currently active users -->

Obviously it's in the default vb style, but it maybe missing from your custom style so you will need to add it.
nice ! good info right there, got it reworking in my custom template

snyperj
28 Sep 2006, 19:51
A superior job. Great work and thanks! :)

apokphp
11 Dec 2006, 21:16
Is this working with 3.6?

Paul M
11 Dec 2006, 23:52
http://www.vbulletin.org/forum/showthread.php?t=122594

Zinzara
14 Sep 2007, 15:12
installed, fantastic