vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Who has read a Thread (https://vborg.vbsupport.ru/showthread.php?t=197487)

Paul M 09-01-2009 08:08 PM

None of my mods will install on Alpha/Beta/RC versions. No one should be running them.

ericgtr 09-01-2009 11:16 PM

Quote:

Originally Posted by Paul M (Post 1877993)
None of my mods will install on Alpha/Beta/RC versions. No one should be running them.

Okay, it does work on 3.8 RC2 though. I know that isn't your point but it does.

Paul M 09-02-2009 09:13 AM

Yes, I expect most of them will, but as you say, thats not the point. No one should be running a live site on a beta/RC version, I wont support them, so I (quite deliberately) restrict them from installing on such. :)

meissenation 09-03-2009 09:00 PM

I'm trying to figure out where the plugin code is where it looks for this showthread_after_activeusers - what plugin is that stored in? My template does not have that hook and as such does not display. I have to edit one or the other, the template or the associated plugin for this mod.

meissenation 09-03-2009 09:10 PM

Quote:

Originally Posted by Whity (Post 1714400)
find in showthread template
PHP Code:

<!-- end currently active users --> 

after add
PHP Code:

$template_hook[showthread_after_activeusers

It is correct?

Thank you for posting that! It's amazing how the developers assume everyone knows what a hook is or how to add a hook to a template. Been using vB since 2005 and never experienced having to manually add a hook to a template before. :)

Paul M 09-04-2009 12:26 AM

Quote:

Originally Posted by meissenation (Post 1879229)
Thank you for posting that! It's amazing how the developers assume everyone knows what a hook is or how to add a hook to a template. Been using vB since 2005 and never experienced having to manually add a hook to a template before. :)

Its already in the default vb template, you must be using an old customised version.

cbiweb 09-09-2009 03:47 PM

Okay, here's an issue that no one else seems to have had, or reported. I could not get this add-on to work, no matter what I tried. Everything looked correct, hooks in place, settings correct, etc. And here's how I fixed it...

In the SHOWTHREAD template, change the code seen here (vBulletin default!) in bold red text:

Code:

<if condition="$show['activeusers']">
<!-- currently active users -->

    <br />
    <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>
<!-- end currently active users -->
</if>


to the code seen here in bold green text:

Code:

<!-- currently active users -->
<if condition="$show['activeusers']">

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


So the HTML comments must be outside of the conditional statement. Otherwise, the following setting in ACP won't be activated:
Quote:

Auto-Template Search Text : Who Read This Thread
Edit the text that the Auto Template Change searches for. Do not alter this unless
you understand what you are doing, otherwise the modification will stop working.
The default text string shown there is: <!-- end currently active users -->

Has no one else run across this problem when trying to get the add-on to work?

Paul M 09-09-2009 05:21 PM

Quote:

Originally Posted by cbiweb (Post 1882118)
Okay, here's an issue that no one else seems to have had, or reported.
.
.

Has no one else run across this problem when trying to get the add-on to work?

No one has come across it, or reported it, for a very simple reason - it doesnt exist in the 3.8 version (which is what this thread is). This version uses a template hook, not previously available.

In previous versions (3.5/6/7) you will find the following clearly stated ;
Quote:

Note: You must have the "Show Users Browsing Threads" option set in your vbulletin options for this to display.
Due to what you found above :)

cbiweb 09-09-2009 06:38 PM

Ah, that explains it. I just checked and see that I have version 3.41, and I was sure I had downloaded 3.8! My bad. Downloading again right now. :)


Edit: Yes, I did have 3.8 downloaded but I also had the older version on my hard drive, and mistakenly installed it on a new site. :rolleyes:

HitmanB2Z 09-10-2009 06:10 AM

Installed. Many thanks !


All times are GMT. The time now is 07:33 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.01578 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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