vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Display who has read a thread - Version 3 (https://vborg.vbsupport.ru/showthread.php?t=112192)

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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by Paul M
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 ;

Code:

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

Code:

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

HTML Code:

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



All times are GMT. The time now is 09:15 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.01180 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)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