Author: Gizmo (James of
VNC Web Design)
Requirements: UBB.Threads 7
About: This will update the standard listing of instant messenger names that a user supplies in their profile with a status indicator (utilizing the detection scripts from
OnlineStatus.org).
Install Instructions:
In templates/default/showprofile.tpl
Find:
<td valign="top">
{$lang.PROF_ICQ}:
</td>
<td valign="top">
{$icq}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_YAHOO}:
</td>
<td valign="top">
{$yahoo}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_MSN}:
</td>
<td valign="top">
{$msn}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_AIM}:
</td>
<td valign="top">
{$aim}
</td>
Replace With (for the default status icons):
<td valign="top">
{$lang.PROF_ICQ}:
</td>
<td valign="top">
{if $icq}
<img src="http://myproxy.tzo.com:8081/icq/{$icq}" alt="-" /> -
{/if}
{$icq}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_YAHOO}:
</td>
<td valign="top">
{if $yahoo}
<img src="http://myproxy.tzo.com:8081/yahoo/{$yahoo}" alt="-" /> -
{/if}
{$yahoo}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_MSN}:
</td>
<td valign="top">
{if $msn}
<img src="http://myproxy.tzo.com:8081/msn/{$msn}" alt="-" /> -
{$msn}
{/if}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_AIM}:
</td>
<td valign="top">
{if $aim}
<img src="http://myproxy.tzo.com:8081/aim/{$aim}" alt="-" /> -
{$aim}
{/if}
</td>
Or, replace with (for custom icons):
<td valign="top">
{if $icq}
<img src="http://myproxy.tzo.com:8081/icq/{$icq}/onurl={$config.BASE_URL}/images/{$style_array.general}/status-online.gif/offurl={$config.BASE_URL}/images/{$style_array.general}/status-offline.gif/unknownurl={$config.BASE_URL}/images/{$style_array.general}/status-unknown.gif" alt="-" /> -
{/if}
{$icq}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_YAHOO}:
</td>
<td valign="top">
{if $yahoo}
<img src="http://myproxy.tzo.com:8081/yahoo/{$yahoo}/onurl={$config.BASE_URL}/images/{$style_array.general}/status-online.gif/offurl={$config.BASE_URL}/images/{$style_array.general}/status-offline.gif/unknownurl={$config.BASE_URL}/images/{$style_array.general}/status-unknown.gif" alt="-" /> -
{/if}
{$yahoo}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_MSN}:
</td>
<td valign="top">
{if $msn}
<img src="http://myproxy.tzo.com:8081/msn/{$msn}/onurl={$config.BASE_URL}/images/{$style_array.general}/status-online.gif/offurl={$config.BASE_URL}/images/{$style_array.general}/status-offline.gif/unknownurl={$config.BASE_URL}/images/{$style_array.general}/status-unknown.gif" alt="-" /> -
{$msn}
{/if}
</td>
</tr>
<tr>
<td valign="top">
{$lang.PROF_AIM}:
</td>
<td valign="top">
{if $aim}
<img src="http://myproxy.tzo.com:8081/aim/{$aim}/onurl={$config.BASE_URL}/images/{$style_array.general}/status-online.gif/offurl={$config.BASE_URL}/images/{$style_array.general}/status-offline.gif/unknownurl={$config.BASE_URL}/images/{$style_array.general}/status-unknown.gif" alt="-" /> -
{$aim}
{/if}
</td>
[b]Note for custom images ONLY[/b}: Please note that I haven't tested the custom images section and am merely providing it here as a courtesy; a possible problem could arise from the base_url including
http://www, so let me know how it works out for you
... You will need to create the following three icons in your general folder for your forum images set (images/general/default):
status-online.gif
status-offline.gif
status-unknown.gif