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


All times are GMT. The time now is 01:04 PM.

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.01305 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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