Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[VB3 RC3] Who viewed this thread? Details »»
[VB3 RC3] Who viewed this thread?
Mod Version: 1.00, by Kentaurus (Coder) Kentaurus is offline
Developer Last Online: Apr 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (1 vote - 4.00 average) Installs: 49
Released: 06 Feb 2004 Last Update: Never Downloads: 22
Not Supported  

I know there is already one version of this by Gary W but I already made (and documented) my own so I thought I would post it.

Advantages of my hack:

My hack adds only 1 query to showthread, and it only queries the user table, so it is less server intensive. That is important to any busy board or anyone that wants to save some resources. It integrates with the "thread views" system to update the people that have seen the thread.

Disadvantages:

Well.. with mine even if you browse the forum as "invisible" you would end up showing in the "who read" list.


Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	shot1.jpg
Views:	729
Size:	113.6 KB
ID:	18656Click image for larger version

Name:	shot2.jpg
Views:	551
Size:	115.6 KB
ID:	18657

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 06 Feb 2004, 04:32
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Looks good. I trust how you support your hacks much more than the other one.
Reply With Quote
  #3  
Old 06 Feb 2004, 05:14
*arie's Avatar
*arie *arie is offline
 
Join Date: Jan 2004
Real name: areyelle
cool.

any way to limit the view only to admins?
Reply With Quote
  #4  
Old 06 Feb 2004, 09:44
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
Great. Could it be that the add-on who downloaded this attachment would be combined with this?
Reply With Quote
  #5  
Old 06 Feb 2004, 16:45
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Originally Posted by *arie
cool.

any way to limit the view only to admins?
in the template showthread, this:

<if condition="$+++++ad">
<table cellpadding="10" cellspacing="0" border="1" width="100%">
<tr valign="top">
<td class="alt1">Users that have seen this thread: <b>$+++++ad</b></td></tr></table><br/>
</if>
replace it white:

<if condition="$+++++ad and $bbuserinfo[usergroupid]==6">
<table cellpadding="10" cellspacing="0" border="1" width="100%">
<tr valign="top">
<td class="alt1">Users that have seen this thread: <b>$+++++ad</b></td></tr></table><br/>
</if>
Then only admins would be able to view it



those '+' are a w h o r e a d, seems that the forum is censoring it.
__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums
Reply With Quote
  #6  
Old 06 Feb 2004, 16:49
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Originally Posted by gmarik
Great. Could it be that the add-on who downloaded this attachment would be combined with this?
Do you mean Rein's Who Downloaded? It shouldn't be any problem if both hacks are installed.
__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums
Reply With Quote
  #7  
Old 06 Feb 2004, 17:23
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
An update for this hack:

With this modification the "who viewed" list will be ordered alfabetically, the original behaviour was to order the users as they saw the thread, but that's not very reliable. Apply this modification only if you would like to see the list ordered.

search for this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace that with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

search for this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace that with


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

TXT and HTL updated of course

And... all the +++++ are the word: w h o r e

the complete word is w h o r e a d
being censored
__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums
Reply With Quote
  #8  
Old 06 Feb 2004, 17:57
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Real name: allan
Thank you Kentaurus, very nice hack !
__________________
-------------------------------------------------------------------------------------------
Administrator vBulletin-Ressources.com, French vBulletin Resources.
Reply With Quote
  #9  
Old 07 Feb 2004, 05:17
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Hey, buddy, I have a request. Is there a way to have the names follow the color and intensity (html mark-up, I think it is called) like Admins and Supermods and users and such? It would make it easier to identify with a quick glance as the list grows.

And maybe the total numbers of members and guests (if they are allowe to read the threads like mine are) who have read the thread so far?

Last edited by Boofo : 07 Feb 2004 at 05:19.
Reply With Quote
  #10  
Old 07 Feb 2004, 05:57
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
The sorting feature doesn't seem to be working for me. I have me (Boofo) in the list, the next one strats with an M and the next one strats with an A. They are not going alphabetically.
Reply With Quote
  #11  
Old 07 Feb 2004, 06:26
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Originally Posted by Boofo
The sorting feature doesn't seem to be working for me. I have me (Boofo) in the list, the next one strats with an M and the next one strats with an A. They are not going alphabetically.
The sort will only work in new threads or threads where the list needs to be updated, if the who viewed is already stored for a thread then it won't be sorted. Call it an insertion sort It only sorts when something is added.

I'll check for that username markup, shouldn't be that hard to modify, but keep in mind that a query is needed for that. It is not an update query so it shouldn't hurt a lot the performance but still for people that are trying to mantain queries to a minimum (like me) an extra query might not sound practical.
__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums
Reply With Quote
  #12  
Old 07 Feb 2004, 07:04
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Here is the first one. For people that already installed the hack and want to add how many users have seen the thread:

In the showthread.php file, this:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In the SHOWTHREAD template, this:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Guests are a little more difficult because it means storing ip addreses as well instead of userid's. I'l check if there is an easy way to do it.

Those +++ are the word w h o r e that even if its a substring it is still being censored (/me makes a note on not using variable names that might be censored).

TXT file updated
__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums

Last edited by Kentaurus : 07 Feb 2004 at 07:17.
Reply With Quote
  #13  
Old 07 Feb 2004, 09:28
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Is there any way to run a query to sort the users who have already seen a thread so it can strat off alphabetically from now on?

Can you just use the code in vBulletin for who is browsing this thread now to get the html markup that it is using already?
Reply With Quote
  #14  
Old 07 Feb 2004, 10:18
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
i got this error when i run scheduled task in my admincp

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the line 41 is

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

any idea?thankz

edit:delete the line 41 than it works

Last edited by squawell : 07 Feb 2004 at 11:32.
Reply With Quote
  #15  
Old 07 Feb 2004, 19:51
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Originally Posted by squawell
i got this error when i run scheduled task in my admincp

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the line 41 is

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

any idea?thankz

edit:delete the line 41 than it works
Don't worry about it, it's a warning (it doesn't stop the code from executing), that's because some threads might not have any data to sort. If you really don't want to see the warning change it to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 19:38.

Layout Options | Width: Wide Color: