View Full Version : Display who has read a thread - Version 3
Paul M
04-04-2006, 10:00 PM
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
04-05-2006, 12:56 AM
reserved for later use.. Any screen shots?
Paul M
04-05-2006, 01:02 AM
Reserved ???
Anyway, screenie attached. :)
SaN-DeeP
04-05-2006, 01:03 AM
nice mod with additional features, please post a screenshot for admincp.
thanks.
SaN-DeeP
04-05-2006, 01:09 AM
3. Restrict the IP display to certain usergroups.
does the ip display also counts for guests and serps ?
Paul M
04-05-2006, 01:32 AM
Guests are not recorded.
eNforce
04-05-2006, 01:40 AM
Neat-o mod, installed and working fine on my board :)
rareclownfish
04-05-2006, 03:19 AM
installed
blue6995
04-05-2006, 06:38 AM
For some reason I am getting the list of users that read the thread displayed twice! Any ideas why?
Thanks
Paul M
04-05-2006, 06:58 AM
Did you upgrade from a very old version ? - sounds like you have some old template code in showthread.
Darat
04-05-2006, 08:31 AM
Paul - looks an interesting hack, have you any plans to allow it to be restricted to just certain forums?
dizzy100
04-05-2006, 08:37 AM
great hack, works as described :)
**INSTALLED**
<font color="Red">surely Installed</font>
You rock man
Smiry Kin's
04-05-2006, 09:38 AM
very nice dude installed straight away, soo easy aswell, love it!
keep em coming.
Paul M
04-05-2006, 10:15 AM
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
04-05-2006, 10:17 AM
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
04-05-2006, 10:57 AM
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
04-05-2006, 11:01 AM
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
04-05-2006, 01:24 PM
Thank you Paul :)
Is there anyway to stop the admin names appearing in that box?
Thanks again:cool:
Install
simsimt
04-05-2006, 02:29 PM
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.
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
04-05-2006, 06:28 PM
Check if in SHOWTHREAD you have
<!-- end currently active users -->
Paul M
04-05-2006, 06:38 PM
Are you in a group that has it enabled ?
Paul M
04-05-2006, 06:50 PM
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.
Are you in a group that has it enabled ?
Yes I am. Here are the picture
Paul M
04-05-2006, 07:02 PM
Then I really have no idea without access to your site.
I am sorry. I have to uninstall this mod :(
Paul M
04-05-2006, 07:44 PM
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. :)
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
04-05-2006, 09:31 PM
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. :)
One of your many great hacks. Nice job!
Hi Paul
I just sent you a PM
Thanks
Paul M
04-05-2006, 11:27 PM
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
04-05-2006, 11:49 PM
Awesome hack
<<<<CLICKS INSTALL
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
04-06-2006, 06:17 AM
Installed Great!!!
blue6995
04-06-2006, 10:06 AM
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
04-06-2006, 11:29 AM
Yep this is better, the other system made my 'showthread' page load too slowly.
*installs*
Paul M
04-06-2006, 11:57 AM
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
04-06-2006, 02:15 PM
installed :)
blue6995
04-06-2006, 02:29 PM
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
04-06-2006, 04:59 PM
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
04-06-2006, 05:08 PM
got it installed, and works a treat...
nice addition m8
Paul M
04-06-2006, 05:55 PM
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
04-06-2006, 05:58 PM
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
04-06-2006, 06:01 PM
The file name does not matter, only the contents. :)
aciurczak
04-06-2006, 06:08 PM
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
04-06-2006, 06:16 PM
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. :)
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
04-07-2006, 12:56 AM
Does this use many resources to operate?
brvheart
04-07-2006, 01:53 AM
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
04-07-2006, 03:55 AM
Sorry, no, that will not be added to this.
HaMaDa4eVeR
04-07-2006, 02:22 PM
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
04-07-2006, 03:09 PM
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
04-07-2006, 04:03 PM
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
04-07-2006, 07:14 PM
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
04-07-2006, 07:51 PM
This is nice. I've just installed it on my forums! ;)
counterform
04-07-2006, 09:53 PM
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
04-07-2006, 11:22 PM
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
04-07-2006, 11:55 PM
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
04-08-2006, 12:22 AM
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
04-08-2006, 12:31 AM
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
04-08-2006, 12:36 AM
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
04-08-2006, 12:45 AM
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
04-08-2006, 12:46 AM
sweet plugin, by the way, as is :D
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
04-12-2006, 10:58 PM
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
04-12-2006, 11:16 PM
Options location added to notes.
SCORPION1
04-13-2006, 11:25 PM
installed thanx m8 seems to be running :cool:
COBRAws
04-15-2006, 09:29 PM
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
04-15-2006, 09:53 PM
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
04-15-2006, 09:55 PM
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
04-15-2006, 09:58 PM
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
04-16-2006, 01:37 PM
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
04-16-2006, 03:29 PM
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
04-17-2006, 04:14 AM
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
04-17-2006, 07:06 AM
Go back a few pages in the thread and have a read of post #41, see if that answers your problem. :)
Paul M
04-17-2006, 11:15 AM
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
04-21-2006, 10:18 AM
thanks alot buddy
COBRAws
04-22-2006, 12:48 AM
Works like a charm (as it did before!) once again I upgraded to 3.5.4
Thank you Sir Paul M :D
jilly
04-22-2006, 08:16 PM
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
04-28-2006, 01:04 PM
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
04-28-2006, 01:23 PM
Cool, thanks. I've been wanting to install something like this.
angelo
04-28-2006, 08:44 PM
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
04-28-2006, 11:20 PM
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
04-28-2006, 11:25 PM
ahh, my bad dude...i'm gonna install and fiddle with it. thanks :)
robgeo
04-29-2006, 01:25 AM
Great hack!!!! Thanks!!!!!!!!!!!
Nachtfalke
04-29-2006, 02:36 PM
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
04-29-2006, 04:36 PM
Do you have a custom style ?
Nachtfalke
04-29-2006, 04:50 PM
Yes, I have. Could that be the solution? How to fix that?
Paul M
04-29-2006, 05:09 PM
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
04-29-2006, 07:14 PM
Thank you for the advice. Checked it twice, it is definitely there. But still nothing happens.
Paul M
04-29-2006, 07:28 PM
There is nothing else I can tell you without access to your forum.
jilly
04-30-2006, 04:19 AM
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
04-30-2006, 10:13 AM
It's not possible without adding extra code and options.
SHOBizzy
05-01-2006, 12:10 AM
Installed! Thanks for the flawless hack! :banana:
vktechnology
05-05-2006, 10:12 PM
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
05-06-2006, 02:27 AM
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
05-06-2006, 03:49 AM
BTW, when did I give you permission to remove the copyright notice from my Top Posters hack you have installed ?
vktechnology
05-06-2006, 11:02 PM
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
05-06-2006, 11:53 PM
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
05-11-2006, 12:10 PM
Any chance to put it on top and not bottom of the page ?
Thanks in advance
Paul M
05-11-2006, 07:26 PM
Not without editing the code, and possibly a template.
installed, and working.
nice!
DementedMindz
05-15-2006, 05:26 AM
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
05-15-2006, 05:28 AM
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
05-15-2006, 12:39 PM
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
05-15-2006, 05:06 PM
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
05-15-2006, 05:30 PM
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
05-15-2006, 08:27 PM
Great mod!
click!
arcadian_girl
05-16-2006, 10:47 AM
just installed this and it's great-just what i needed. thank you so much :)
DementedMindz
05-16-2006, 03:03 PM
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
05-16-2006, 06:51 PM
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
05-17-2006, 12:40 AM
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
05-17-2006, 02:58 AM
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
05-17-2006, 03:03 AM
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
05-17-2006, 03:18 AM
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
05-20-2006, 12:41 PM
upgraded to this without any problems....now shows as version 3.13 in the product list....
lasto
05-21-2006, 01:45 AM
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
05-21-2006, 02:35 AM
It attaches itself to the currently viewing box, moving it away from that would involve code and template changes.
Boofo
05-21-2006, 02:36 AM
Is there a way to have the box collapsed when first viewing it instead of open?
Paul M
05-21-2006, 02:41 AM
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
05-21-2006, 02:44 AM
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
05-21-2006, 02:57 AM
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
05-21-2006, 03:41 AM
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
05-21-2006, 09:53 AM
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
05-21-2006, 10:14 AM
so i cant have it at the top of the thread then ??
also i dont have `who`s viewing this thread` enabled.
Paul M
05-21-2006, 10:51 AM
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
05-21-2006, 12:07 PM
cheers paul m will look at that
thanks
havefun
05-30-2006, 02:43 PM
thx for this version :)
xlegends
06-02-2006, 06:18 AM
very nice..
Yorixz
06-02-2006, 07:16 PM
"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
06-03-2006, 04:25 PM
Any idea how to fix this error... See attached
Freesteyelz
06-04-2006, 01:44 AM
Thanks, Paul M. :) *Clicked Install*
I've made subtle changes to the template (used my own):
MegaHertz
06-04-2006, 04:59 PM
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
06-13-2006, 06:53 PM
Thanks ever so much!:banana:
sinaluna
06-18-2006, 06:26 PM
"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
06-18-2006, 07:02 PM
Sorry, it's not possible without altering the code, which I don't have the time for atm.
hotwheels
06-18-2006, 07:26 PM
great idea, can't believe i didn't add this earlier.........thanks
Vogelfreund
07-02-2006, 02:49 PM
"2. Restrict the display to certain usergroups"
Hi,
is there any way to change it to usernumbers instet og groups?
Vogelfreund
07-02-2006, 02:54 PM
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
07-02-2006, 07:33 PM
Where doers this show up in the AdminCP? I'm not seeing where I can administer it.
Paul M
07-02-2006, 07:35 PM
It tells you in the main post.
paul41598
07-24-2006, 11:56 AM
nice! Thanks Paul
I||usi0nz
07-31-2006, 03:59 PM
worsk great, thanks :)
Whiterook
08-02-2006, 12:36 AM
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
09-04-2006, 04:47 PM
reserved for later use.. Any screen shots?
too funny :)
Mikecp421
09-25-2006, 02:17 PM
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
09-28-2006, 06:51 PM
A superior job. Great work and thanks! :)
apokphp
12-11-2006, 08:16 PM
Is this working with 3.6?
Paul M
12-11-2006, 10:52 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=122594" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=122594</a>
Zinzara
09-14-2007, 02:12 PM
installed, fantastic
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.