PDA

View Full Version : [VB3 RC3] Who viewed this thread?


Kentaurus
02-05-2004, 10:00 PM
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.

Boofo
02-06-2004, 03:32 AM
Looks good. I trust how you support your hacks much more than the other one. ;)

*arie
02-06-2004, 04:14 AM
cool. :)

any way to limit the view only to admins?

gmarik
02-06-2004, 08:44 AM
Great. Could it be that the add-on who downloaded this attachment would be combined with this?

Kentaurus
02-06-2004, 03:45 PM
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.

Kentaurus
02-06-2004, 03:49 PM
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.

Kentaurus
02-06-2004, 04:23 PM
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

if ($threadidcache)
{


replace that with

if ($threadidcache)
{
asort($+++++adarray);


search for this


$+++++adarray[$bbuserinfo['userid']] = $bbuserinfo['username'];


replace that with


$+++++adarray[$bbuserinfo['userid']] = $bbuserinfo['username'];
asort($+++++adarray);


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

Allan
02-06-2004, 04:57 PM
Thank you Kentaurus, very nice hack !

Boofo
02-07-2004, 04:17 AM
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?

Boofo
02-07-2004, 04:57 AM
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. ;)

Kentaurus
02-07-2004, 05:26 AM
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.

Kentaurus
02-07-2004, 06:04 AM
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:
$+++++ad = @implode(", ",$+++++adarray);


Replace it with:
$+++++ad = @implode(", ",$+++++adarray);
$total+++++ad = @count($+++++adarray);


In the SHOWTHREAD template, this:
Users that have seen this thread:


Replace it with:
$total+++++ad users have seen this thread:


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

Boofo
02-07-2004, 08:28 AM
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? ;)

squawell
02-07-2004, 09:18 AM
i got this error when i run scheduled task in my admincp

Warning: asort() expects parameter 1 to be array, boolean given in C:\Apache Group\Apache2\htdocs\forum\includes\cron\threadvie ws.php on line 41


the line 41 is

asort($+++++adarray);

any idea?thankz

edit:delete the line 41 than it works:D

Kentaurus
02-07-2004, 06:51 PM
i got this error when i run scheduled task in my admincp

Warning: asort() expects parameter 1 to be array, boolean given in C:\Apache Group\Apache2\htdocs\forum\includes\cron\threadvie ws.php on line 41


the line 41 is

asort($+++++adarray);

any idea?thankz

edit:delete the line 41 than it works:DDon'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:

if (is_array($+++++adarray)) {
asort($+++++adarray);
}

Boofo
02-07-2004, 07:40 PM
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:
$+++++ad = @implode(", ",$+++++adarray);


Replace it with:
$+++++ad = @implode(", ",$+++++adarray);
$total+++++ad = @count($+++++adarray);


In the SHOWTHREAD template, this:
Users that have seen this thread:


Replace it with:
$total+++++ad users have seen this thread:


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
On guests, maybe just do a guest count?

Kentaurus
02-08-2004, 08:01 PM
Here is another update

As requested by Boofo, to make the users appear with the html markup as they appear in the online users and almost anywhere, at the cost of 1 query.

I'm now attaching a txt since I'm getting tired of that censor.....

For threads before I added the sorting piece, just create a new user and view the unsorted thread, it will be sorted.

Boofo
02-08-2004, 08:08 PM
That's Boofo, not Boofoo. ;)

And thank you, sir. ;)

Boofo
02-08-2004, 08:34 PM
That worked great! Thank you, again. ;)

You forgot to add the space after the comma in this line. The names were all running together. But I fixed it on my site. ;)

$+++++ad = @implode(",", $+++++adnames);

Boofo
02-09-2004, 12:57 AM
Now I'm getting nothing but DB errors with this. I emailed you about it.

Kentaurus
02-09-2004, 01:18 AM
Seems that there we some cases I didn't consider. I fixed it already and uploaded an updated txt. For the people that installed it please change:

(and there we go with this censor...)


$+++++adids = array_keys($+++++adarray);
$+++++sult = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).")");
while ($whodata = $DB_site->fetch_array($+++++sult))
{
$+++++adnames[] = fetch_musername($whodata);
}
$+++++ad = @implode(",", $+++++adnames);

to:


if (!empty($+++++adarray))
{

$+++++adids = array_keys($+++++adarray);
$+++++sult = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).")");
while ($whodata = $DB_site->fetch_array($+++++sult))
{
$+++++adnames[] = fetch_musername($whodata);
}
$+++++ad = @implode(",", $+++++adnames);
$total+++++ad = @count($+++++adarray);
}


it is already in the txt

Boofo
02-11-2004, 08:08 AM
It still isn't sorting the names quite right. In that list of names I sent you in the email, the last name is still showing up out of order. Any way to fix that? ;)

Kentaurus
02-12-2004, 12:19 AM
It still isn't sorting the names quite right. In that list of names I sent you in the email, the last name is still showing up out of order. Any way to fix that? ;)
Then I'll write a small script to sort them, just give me some time :)

WAR
02-12-2004, 12:44 AM
were you planning on releasing an htl compliant version again at some point?
(I was going to wait until then if so)

Kentaurus
02-12-2004, 01:09 AM
were you planning on releasing an htl compliant version again at some point?
(I was going to wait until then if so)
When HTL 1.1 is ready, maybe. It's just that editing both the HTL and the TXT is some time consuming.

Boofo
02-12-2004, 01:32 AM
Then I'll write a small script to sort them, just give me some time :)
Ok, I'll be here waiting. ;)

Kentaurus
02-13-2004, 02:17 PM
Ok, I'll be here waiting. ;)
It only happened with the colors highlight .... it was an "error" in the query (actually the order by was missing).


$+++++sult = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).")");


change it to

$+++++sult = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).") ORDER BY username");


If that doesn't work take a broom and hit the hack... err.. I'll fix it again.

whoviewed_colors.txt updated also

Boofo
02-13-2004, 09:16 PM
You can hold off on the broom. That fixed it. ;)Thank you kindly, sir. ;)

Alas-Digitales
02-14-2004, 03:44 PM
Would be possible that the usersnames had a link to their profile?

Boofo
03-18-2004, 10:26 PM
Yes, would it be possible to have the names linked to their profile? That would be excellent. ;)

Q8vbhacks
03-26-2004, 06:52 AM
tahnks Kentaurus

can we use it to Specified forums .

weaver
03-28-2004, 04:38 PM
I checked the code and I had some likes of ************* without any // in front of them. I got rid of those and there isn't an error, but I don't see any names of who has viewed the thread either.

**Sorry didn't realize it was at the top of the screen. I was looking for it at the bottom.

Catch-22|BL
04-15-2004, 11:27 AM
Good work as always, Kentaurus!

Smooth install and does exactly as described. :)

JaNa
04-26-2004, 07:37 PM
Useful!

/me Clicks Install

tccra
05-12-2004, 01:39 AM
Is this working in 3.0.1? No error messages but the list isn't showing up in my thread view pages.


edit: changed "$bbuserinfo[usergroupid]==6" to "is_member_of($bbuserinfo, 6)" and voila! It worked.

DCX
05-12-2004, 05:12 AM
Is this working in 3.0.1? No error messages but the list isn't showing up in my thread view pages.


edit: changed "$bbuserinfo[usergroupid]==6" to "is_member_of($bbuserinfo, 6)" and voila! It worked.


same thing as me. i even changed the template as stated above and it still doesn't work for me. and i did it for only admins....

DCX
05-12-2004, 06:56 AM
k, it's workin for me now. guess it takes time to load up when the members actually go to those posts AFTER the hack has been installed.....

Carter876
05-12-2004, 01:41 PM
Kentaurus compliments for your nice hack, I have a little question:
Is there the possibility to see the last date and time in which the user has read the post? (It's very important for me to know it)

Tnx in advance :)

Regards

DCX
05-12-2004, 03:30 PM
ok, it is working for me but i have a little problem... for some reason, it's not showing up on ALL threads.... it is showing on a majority of the threads though. any ideas?

Grendel
05-13-2004, 05:56 PM
How is that done, if I want to limit the view to thread-starters only? Any idea?

Kentaurus
05-16-2004, 08:32 AM
Is this working in 3.0.1? No error messages but the list isn't showing up in my thread view pages.


edit: changed "$bbuserinfo[usergroupid]==6" to "is_member_of($bbuserinfo, 6)" and voila! It worked.

Please remember there is a setting in the ACP in the "Server Settings and Optimization" that reads "Update Thread Views Immediately", by default that is set to "no" and the thread views are updated only in an hourly basis, that would mean that also the whoviewed would be updated in an hourly basis :)

Kentaurus compliments for your nice hack, I have a little question:
Is there the possibility to see the last date and time in which the user has read the post? (It's very important for me to know it)


This can be done but it is a little server intensive... if I find a way of doing it without taking a lot of resources I'll add it.

ok, it is working for me but i have a little problem... for some reason, it's not showing up on ALL threads.... it is showing on a majority of the threads though. any ideas?

If a thread hasn't been seen by anyone then it doesn't appear. Of course, at least you have seen the thread, right. Then just wait an hour for it to be updated, or in the ACP change the setting for thread views to be updated immediately.

How is that done, if I want to limit the view to thread-starters only? Any idea?

In the hack, instead of

<if condition="$+++++ad">

use

<if condition="$+++++ad and $threadinfo[postuserid]==$bbuserinfo[userid]">

Kentaurus
05-16-2004, 09:17 AM
You can now find in the first post a second version of this hack, the who viewed thread (with time) will show the last date a user viewed the thread, and also that version adds a link to the memberinfo.

If you were using the first version and you want the new features please uninstall the last version, you will need the following queries (please keep in mind you will loose the "who viewed" list for your threads):

ALTER TABLE thread DROP w h o r e a d;
ALTER TABLE threadviews DROP w h o r e a d i d;
ALTER TABLE threadviews DROP w h o r e a d n a m e;

Undo the file changes of the first version and install the second version of the hack.

If you are installing this version for the first time you should go straight for the most recent version. (who viewed thread with time)

Boofo
05-16-2004, 04:35 PM
How would I go about making it so when you mouseover the name it shows the date and time instead of having it behind the name? If you get enough people viewing the thread, this list would get very long with the date and time behind each name. ;)

Kentaurus
05-17-2004, 04:18 AM
How would I go about making it so when you mouseover the name it shows the date and time instead of having it behind the name? If you get enough people viewing the thread, this list would get very long with the date and time behind each name. ;)
It should be a template.. but right now it is hard-coded. In the hack:


$+++++ad .= "<a href=\"member.php?u=$whodata[userid]\">".fetch_musername($whodata)."</a> (".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, false)." ".vbdate($vboptions['timeformat'], $+++++adarray[$whodata['userid']], true, true, false)."), ";


change it to:


$+++++ad .= "<a href=\"member.php?u=$whodata[userid]\" title=\"(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, false)." ".vbdate($vboptions['timeformat'], $+++++adarray[$whodata['userid']], true, true, false).")\">".fetch_musername($whodata)."</a> , ";

Boofo
05-17-2004, 06:55 AM
Thank you, sir. ;)

Grendel
05-17-2004, 01:04 PM
Thank you for your answer, Kentaurus.

Carter876
05-17-2004, 07:09 PM
Wow really a good hack and a fantastic support :D
I have installed it and I wait the version that show the last time by the mousover the name ;)

Install for me

Carter876
05-29-2004, 09:52 AM
Ehm I have another question :rolleyes: , the hack signals me the time of the server that is different from mine (I have + 3 hours from the time of the server), Is there the possibility to modify the code of the hack to add for example + 10800 seconds?

Tnx in advance

Regards :)

Carter876
05-30-2004, 06:49 AM
Ok i Have modified the code, and now it works but I hope that someone tell me if this change is good or if I have compromised something in VB funtionality :rolleyes:


Before

// update views counter
if ($vboptions['threadviewslive'])
{
if ($bbuserinfo['userid'])
{
$+++++adarray[$bbuserinfo['userid']] = time() ;
$add+++++ad = ",+++++ad='".addslashes(serialize($+++++adarray))."'";
}


After

// update views counter
if ($vboptions['threadviewslive'])
{
if ($bbuserinfo['userid'])
{
$+++++adarray[$bbuserinfo['userid']] = time() + 10800;
$add+++++ad = ",+++++ad='".addslashes(serialize($+++++adarray))."'";
}


As you can see I have added the numbero of seconds to fill the offset from server time and my time :)

Regards

weaver
05-31-2004, 01:43 AM
Anyone know why (December 31st, 1969 07:00 PM) is showing up as the date/time I read the thread?

ETA: Okay now it has the proper date/time. Odd....

SaN-DeeP
06-11-2004, 02:32 AM
Ok i have some serious issues, i wonder if someone else notice about this

My Server is located in US which mite have GMT - 8:00 timings
weras my forum timings and people are of india GMT + 5:30

Currently It is 9:02 AM here.
and i can see this thing when a user last viewed any particular thread
(Yesterday 07:15 PM)

Help me fix this please.

Thank You for nice hack.

Sandy...

Carter876
06-20-2004, 08:08 AM
Is there news about this hack? :rolleyes:

Regards

Jadelit
07-29-2004, 10:32 AM
bump

any help with the server and usertime would be grateful

SaN-DeeP
07-31-2004, 02:25 AM
This hack adds 0 new queries and tries to be "server friendly".
Installation file says this.

But i had 12 queries in my postbit and postbit_leagacy before installing it and now it is 13 :)

Though i find it to be server friendly.

snake-boy
08-08-2004, 12:56 AM
Is this working in V3.0.3 (yet)?

I would VERY much like to install this but don't want to be wasting my time.

Anyone who's running this successfully with 3.0.3, please say 'aye' :) ?

-snake

wi11ie1950
10-23-2004, 02:17 AM
aye :):)

wi11ie1950
10-23-2004, 02:55 AM
The mouseover change doesnt work for me no matter how i do it i get:-

Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$'
in /home/wi11iec/public_html/forum/showthread.php on line 460

Do the $+++++ go in as well cause they are not in the text file ??

wi11ie1950
10-23-2004, 02:56 AM
The mouseover change doesnt work for me no matter how i do it i get:-

Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$'
in /home/wi11iec/public_html/forum/showthread.php on line 460

Do the $+++++ go in as well cause they are not in the text file ??

wi11ie1950
10-23-2004, 02:56 AM
The mouseover change doesnt work for me no matter how i do it i get:-

Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$'
in /home/wi11iec/public_html/forum/showthread.php on line 460

Do the $+++++ go in as well cause they are not in the text file ??

wi11ie1950
10-23-2004, 02:56 AM
The mouseover change doesnt work for me no matter how i do it i get:-

Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$'
in /home/wi11iec/public_html/forum/showthread.php on line 460

Do the $+++++ go in as well cause they are not in the text file ??

trackpads
10-23-2004, 10:32 PM
This is a great hack but would be alot better if you could have the information on a separate page. For example, I have a thread that was 100,000 views and honestly have that on the bottom of every page would make it look horrible. but I would like it on other pages for sure so have a link (option per usergroup) would be perfect.

Thanks again,

-Jason

wi11ie1950
10-27-2004, 08:36 AM
The mouseover change doesnt work for me no matter how i do it i get:-

Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$'
in /home/wi11iec/public_html/forum/showthread.php on line 460

Do the $+++++ go in as well cause they are not in the text file ??

Ok i worked it out.. I guess the +++++ is from VBs censor considering it spells out w h o r e

It all works great now under 3.0.3 :):)

SaN-DeeP
10-27-2004, 10:10 AM
Ok i have some serious issues, i wonder if someone else notice about this

My Server is located in US which mite have GMT - 8:00 timings
weras my forum timings and people are of india GMT + 5:30

Currently It is 9:02 AM here.
and i can see this thing when a user last viewed any particular thread
(Yesterday 07:15 PM)

Help me fix this please.

Thank You for nice hack.

Sandy...
any fix for this :) ?

thanks

wi11ie1950
10-30-2004, 01:32 AM
Hi San from what i can see it doesnt use VB country and time settings so if you correct it for India then it will still be wrong for those outside india.
I used the hack to hide the date and time behind the name and show on mouseover :):)

sv1cec
11-18-2004, 06:21 AM
Hi San from what i can see it doesnt use VB country and time settings so if you correct it for India then it will still be wrong for those outside india.
I used the hack to hide the date and time behind the name and show on mouseover :):)
I have the same problem with San, my server is located in USA, while all times are using Greece time. What puzzled me, was that the way the info is shown, using vbdate function, the time should have been correct.

So, I tried using this code:


$nothing=vbdate($vboptions['dateformat'].' '.$vboptions['timeformat'], time());


and it produces the correct time for my country. However, when it is called from the hack (admitedly with a different syntax, I have no idea what these 'true', and 'false' parameters do) , in showthread, it shows the wrong time.

So, I did some experimentation, and here is what I came up with. If you change the vbdate arguments used in the showthread, a little, you can have it show the proper time.

Change this:


(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, false)


to this:


(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, true)


Or if you do not want to see "Today" or "Yesterday", but just a plain date and time, change the code to:


[php]
(".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']])


Here is a description of the vbdate function. The code is located in includes/functions.php


function vbdate($format, $timestamp = TIMENOW, $doyestoday = false, $locale = true, $adjust = true, $gmdate = false)


Rgds
-----------
John

Morgalis
11-21-2004, 09:05 AM
Hi there

I am installing this with your Mod Management tool, and I am running into a parse error.

vb 3.0.3

parse error - no details given - at the else in the last part of the paste


else
{
// or doing it once an hour
$DB_site->shutdown_query("
INSERT INTO " . TABLE_PREFIX . "threadviews (threadid)
VALUES (" . intval($threadinfo['threadid']) . ')'
);
}


Any suggestions?

VitroX
01-12-2005, 11:24 AM
thanks sv1cec for your fix ...

now, is there a way the user list can get sorted first those who has replied and then those who doesnt?, I'm after a way to detect those who dont reply to threads and are only lurking, this could be a way to detect them and that would be very usefull for me.

Lottis
01-17-2005, 04:22 PM
Anyone like to help me take the time away?

VitroX
01-20-2005, 01:00 PM
Anyone like to help me take the time away?
yes, in modified showthread.php file for this hack, look for:

if (!empty($+++++adarray))
{
$+++++adids = array_keys($+++++adarray);
$+++++sult = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).") ORDER BY username");
$+++++ad = "";
while ($whodata = $DB_site->fetch_array($+++++sult))
{
$+++++ad .= "<a href=\"member.php?u=$whodata[userid]\">".fetch_musername($whodata)."</a> (".vbdate($vboptions['dateformat'], $+++++adarray[$whodata['userid']], true, true, false)." ".vbdate($vboptions['timeformat'], $+++++adarray[$whodata['userid']], true, true, false)."), ";
}
if ($+++++ad)
{
$+++++ad = substr($+++++ad, 0, strlen($+++++ad)-2);
}
$total+++++ad = @count($+++++adarray);
}

and replace it for:

if (!empty($+++++adarray))
{
$+++++adids = array_keys($+++++adarray);
$+++++sult = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user AS user WHERE userid IN (".implode(",",$+++++adids).") ORDER BY username");
$+++++ad = "";
while ($whodata = $DB_site->fetch_array($+++++sult))
{
$+++++ad .= "<a href=\"member.php?u=$whodata[userid]\">".fetch_musername($whodata)."</a>, ";
}
if ($+++++ad)
{
$+++++ad = substr($+++++ad, 0, strlen($+++++ad)-2);
}
$total+++++ad = @count($+++++adarray);
}

that should remove the date time info.

James Collins
01-27-2005, 12:20 AM
Is this working in V3.0.3 (yet)?

I would VERY much like to install this but don't want to be wasting my time.

Anyone who's running this successfully with 3.0.3, please say 'aye' :) ?

-snake

aye :)

in 3.05 as well (with patch)

tractor-beam
02-01-2005, 09:52 PM
Right now I have installed this modification with the code that lets only the Administrator view the new stats. However, I've created a Managers Usergroup (ID=9) that I'd also like to have them see the stats. How would I modify this statement:


$poll

<if condition="$+++++ad and $bbuserinfo[usergroupid]==6">
<table cellpadding="10" cellspacing="0" border="1" width="100%">
<tr valign="top">
<td class="alt1">$total+++++ad users have seen this thread: $+++++ad</td></tr></table><br/>
</if>


Would it be something like:



<if condition="$+++++ad and ($bbuserinfo[usergroupid]==6 or $bbuserinfo[usergroupid==9]">



Thanks!

- Gerry

Pinkie
02-06-2005, 07:38 PM
Thanx
Will try it if it also works for me :)

Spinball
08-03-2005, 05:12 PM
This hack works nicely until you have threads with a couple of thousand member views and it gets really, really slow to view a thread.
Is there any way the viewers of a particular thread could optionally be opened in a new window by clicking a link at the top of SHOWTHREAD?

Mikecp421
10-15-2005, 10:08 PM
nice, worked first time on VB 3.0.8

Mikecp421
10-16-2005, 03:24 PM
hey can someone tell me what to add to this to allow supermods to also be able to view this? Thanks

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

Dreiko
12-04-2005, 06:36 PM
Will this hack be upgraded to 3.5? :)

Z@N@
12-17-2005, 07:36 AM
Yes or for 3.5.2?

Please.

Z@N@
12-17-2005, 07:49 AM
EDIT: Found it, right here -

https://vborg.vbsupport.ru/showthread.php?t=92339&highlight=downloaded

Mikecp421
01-27-2006, 06:32 PM
nice good looking man!

Dj-BuZ
02-10-2006, 07:11 PM
Can someone help me i did every thing ask but i dont see it...i have 3.0.12