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