vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Display members who have recently read a thread (https://vborg.vbsupport.ru/showthread.php?t=92339)

secret1980 10-09-2005 04:45 AM

is it possible to make this option so tht only mods & admins can see who have read the thread ??

havefun 10-09-2005 01:25 PM

[high]* havefun clicks install
[/high]

and working fine :) THX

Basit 10-09-2005 04:13 PM

Thanks

RaceJunkie 10-09-2005 08:59 PM

Racejunkie Clicks install

Lea Verou 10-10-2005 12:19 AM

Quote:

Originally Posted by RaceJunkie
Racejunkie Clicks install

How the heck do I change the phrases displayed????
I've noticed that they are not vbphrases but where are they????

Lea Verou 10-10-2005 12:38 AM

If you have "who is viewing the thread" activated I made a template modification that will "split" the table that contains the users currently viewing the thread in half and make it display the users that have viewed the thread in the last X days in the second column. This way it looks neater I think as if you have those 2 enabled it looks quite terrible :p

TEMPLATE MODIFICATION
(do this instead of the one that's written in the companion txt, not both)

In SHOWTHREAD find:
HTML Code:

<td class="tcat" colspan="2">
                        <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]
                </td>
</tr>

replace with:
HTML Code:

                <td class="tcat" colspan="2">
                        <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
                </td>
                <if condition="$vboptions[threadmarking] AND $bbuserinfo[userid]">
                <td class="tcat" colspan="2" width="50%">
                                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('thread_readers')"><img id="collapseimg_thread_readers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_thread_readers].gif" alt="" border="0" /></a>

                $trtitle</td>
                </if>
        </tr>
        <tbody id="collapseobj_thread_readers" style="$vbcollapse[collapseobj_thread_readers]">

Find:
HTML Code:

<tr>
                <td class="alt1" colspan="2">
                        <span class="smallfont">$activeusers
                </td></tr>

Replace that with:
HTML Code:

<tr>
                <td class="alt1" colspan="2">
                        <span class="smallfont">$activeusers</span>
                </td>
                <if condition="$vboptions[threadmarking] AND $bbuserinfo[userid]">
                <td class="alt1" colspan="2">
                                <span class="smallfont">$treaders</span>
                        </td>
                </if>
        </tr>
        </tbody>

Please inform if this causes any bugs. I tested it in my site and it works well :)

I attach a screenshot too so that you can see what this is about :)

Paul M 10-10-2005 09:29 AM

Quote:

Originally Posted by Loukrhtia
How the heck do I change the phrases displayed????
I've noticed that they are not vbphrases but where are they????

Depends when you downloaded it. Version 2.11 (released earlier in the week) uses phrases, the older 2.01 did not.

Paul M 10-10-2005 09:31 AM

Quote:

Originally Posted by Loukrhtia
If you have "who is viewing the thread" activated I made a template modification that will "split" the table that contains the users currently viewing the thread in half and make it display the users that have viewed the thread in the last X days in the second column. This way it looks neater I think as if you have those 2 enabled it looks quite terrible :p

Please inform if this causes any bugs. I tested it in my site and it works well :)

I attach a screenshot too so that you can see what this is about :)

I would be curious to know what happens when you try and collapse the list ....

gnubittol 10-10-2005 04:53 PM

* installed *
thanks!

Lea Verou 10-10-2005 10:03 PM

Quote:

Originally Posted by Paul M
I would be curious to know what happens when you try and collapse the list ....

It collapses all the tbody, including the members who are currently viewing. That's what I wanted to do with mine in the first place and I posted it in case aomeone else needs it :)

Lea Verou 10-10-2005 10:06 PM

Quote:

Originally Posted by Paul M
Depends when you downloaded it. Version 2.11 (released earlier in the week) uses phrases, the older 2.01 did not.

I downloaded yesterday but just in case I re-downloaded now and took a look at the template modification.
NO phrases. :(

Paul M 10-10-2005 10:16 PM

Quote:

Originally Posted by Loukrhtia
I downloaded yesterday but just in case I re-downloaded now and took a look at the template modification.
NO phrases. :(

The template doesn't need any phrases, the text output is all worked out in the code. I think I know if it uses phrases or not, I did write it. :)

JFYI, it uses the following global phrases - member_has, members_have, no_members_have, no_names & read_this_thread.

Lea Verou 10-10-2005 11:51 PM

Woops, you're right! Sorry!
Well most of the times one can tell by the template! :p

Flow Fusion 10-11-2005 04:00 PM

Quote:

Originally Posted by Paul M
[high]ACP > vBulletin Options > General Settings > Last two options ;[/high]

Thread/Forum Read Marking Type : I use Database (no automatic forum marking)

Database Read Marking Limit : Mine is 14 days - choose your limit.


How do I turn this on.

Lea Verou 10-11-2005 04:10 PM

Quote:

Originally Posted by Flow Fusion
How do I turn this on.

Which part don't you understand??

moonclamp 10-11-2005 10:48 PM

Quote:

Originally Posted by Loki12
I am allergic to any setting that says "server intensive". :ermm:

Installing this slowed my threads down to a crawl ... normally they're very fast

Bubble #5 10-11-2005 11:50 PM

Thank you Loukrhtia for posting your code. Looks very clean :)

Vampyre 10-16-2005 04:27 PM

This is a simpler, but also nice alternative to the other Who Viewed Thread I used for my vB3.0.x , but this will do me for now.

Thanks, Paul. :)

Moosehunter 10-25-2005 04:27 AM

Anyway to have this showing spiders also? Thanks in advance.

Paul M 10-25-2005 12:14 PM

Quote:

Originally Posted by Moosehunter
Anyway to have this showing spiders also? Thanks in advance.

Nope.

folkish 10-25-2005 11:27 PM

Installed. Thanks.

microzott 10-26-2005 01:52 AM

installed Paul, works perfectly.
there is no possibility to display date and time of the last read?

thanks, it seams that i have installed on my board only your hacks :D

Paul M 10-26-2005 01:58 AM

Quote:

Originally Posted by microzott
installed Paul, works perfectly.
there is no possibility to display date and time of the last read?

Sadly not with this version - vB does not store that information in the table.

I have considered an upgrade that stores/displays this in the future, but that won't be for a long while, if ever.

Rickie3 11-12-2005 11:09 AM

clicks *install* nice addition thanx

Paul M 11-13-2005 02:12 PM

Quote:

Originally Posted by microzott
there is no possibility to display date and time of the last read?

Version 2.18 has been uploaded and adds the following;

* A setting in the ACP to turn the display on/off

* A setting in the ACP to restrict which usergroups can view the display.

* The date/time of the last post read by a member - just hover over their name.

Not quite sure if this is what you asked, but it now shows the timestamp of the last post in the thread, at the time the member last read it, so you can work out if they have seen a particular post or not.

havefun 11-13-2005 03:46 PM

THX for update :)

GrendelKhan{TSU 11-13-2005 11:13 PM

is it possible to get some more detailed instructions on what/how to uninstall the old/original version. I installed this so long ago, I couldn't even begin to remember what to look for or where to look. :/

any tips would be greatly appreciated. great and practical hack. :) keep it up!!

Rickie3 11-13-2005 11:21 PM

do you have to redo the showthread template? or just import the xml? for this update.

--------------------------------------------------------------------------

i figured it out just unistalled the old xml and and replaced with the update xml,works great thankyou

GrendelKhan{TSU 11-13-2005 11:38 PM

sorry..pre-question:

WHERE in the admincp do we find this? (the settings)

I hate when I have to spend 30 min just looking for something cause it buried in the vboptions menu or something. :/

Paul M 11-14-2005 12:13 AM

Quote:

Originally Posted by Rickie3
do you have to redo the showthread template? or just import the xml? for this update.

--------------------------------------------------------------------------

i figured it out just unistalled the old xml and and replaced with the update xml,works great thankyou

If you don't re-do the template then the ACP option to restrict access to certain usergroups will not work.

FYI, only one line in the template has actually changed - the IF statement on first line (excluding the comment of course)

Paul M 11-14-2005 12:18 AM

Quote:

Originally Posted by GrendelKhan{TSU
is it possible to get some more detailed instructions on what/how to uninstall the old/original version. I installed this so long ago, I couldn't even begin to remember what to look for or where to look.

It depends on how old - basically uninstall the Product, or Plugins if it was the preProduct version, and remove the template code.

Quote:

Originally Posted by GrendelKhan{TSU
WHERE in the admincp do we find this? (the settings)

As the first post says ;

Quote:

(The ACP settings are in the vb options, thread display options)

GrendelKhan{TSU 11-14-2005 12:35 AM

Quote:

Originally Posted by Paul M
It depends on how old - basically uninstall the Product, or Plugins if it was the preProduct version, and remove the template code.

As the first post says ;

thanks. I'll I installed when you first released it ....way back in vb RC1-2ish time. lol. :banana:

doh!! I'm blind apparently I swear I looked for that like 908234098 times. :cross-eyed: :/ sorry about that. :cry:

Rickie3 11-14-2005 12:50 AM

Quote:

Originally Posted by Paul M
If you don't re-do the template then the ACP option to restrict access to certain usergroups will not work.

FYI, only one line in the template has actually changed - the IF statement on first line (excluding the comment of course)

ok thanx re-done the template :banana:

aciurczak 11-14-2005 04:35 AM

I'm seeing some strange behavior with this hack. It's actually strange behavior with the vb thread marking system rather than the hack, but the hack makes it visible.

If I mark all forums read via the menu link, and then go to a thread, my username never shows up at the bottom as having read the post within the past 30 days no matter how many times I refresh.

It seems that the thread marking requires the thread to be unread, you click on the thread which changes it to read, then bingo it saves that action.

Is everyone else seeing the same thing?

Paul M 11-14-2005 09:43 AM

Quote:

Originally Posted by aciurczak
If I mark all forums read via the menu link, and then go to a thread, my username never shows up at the bottom as having read the post within the past 30 days no matter how many times I refresh.

Yes, in this case you have not actually read the thread(s). The vb thread marking (as opposed to forum marking) requires you to actually visit the thread (not only that, you must view posts beyond where you previously viewed them).

microzott 11-14-2005 11:45 AM

mmm I have to find 10 minutes for an installation and test on my forum,
it seams that i have some problems with it.
hope to work on it asap

thank paul for this new product :D

Paul M 11-14-2005 01:12 PM

What problem ?

brvheart 11-16-2005 02:15 PM

how can I make this only viewable by admins? Great hack btw,

*Clicks Install*

sportsoutlaw 11-16-2005 02:43 PM

Installed

I am beginning to think I have every PaulM "member info" hack available on my board now. Plugins are so nice :)

sportsoutlaw 11-16-2005 02:45 PM

Quote:

Originally Posted by ravenes
how can I make this only viewable by admins? Great hack btw,

*Clsicks Install*

ACP, you can select which usergroups can view this by ID.

vBulletion options-thread display options
toward the bottom, you make the selection. groups 2,5,6,7 are selected by default


All times are GMT. The time now is 04:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01409 seconds
  • Memory Usage 1,842KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete