Page 1 of 5

Avatar on index

Posted: 10 Mar 2010, 18:02
by Stoker
Avatar on index

Moved here: viewtopic.php?f=45&t=1251

Re: Avatar on index

Posted: 18 Mar 2010, 10:39
by Micromaniac
Great Snipper!

But I use eTech as a style, any tips how to use this snippet in eTech?

I think the part below is the part that needs a modding:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

    {$CA_BLOCK_START}
	{$CA_CAP2_START}<!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF -->{$CA_CAP2_END}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->

Re: Avatar on index

Posted: 21 Mar 2010, 09:00
by Stoker
Find:

Code: Select all

<img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" />
Replace with:

Code: Select all

<!-- IF S_USER_LOGGED_IN and USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /><!-- ENDIF -->
Find:

Code: Select all

<img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" />
Replace with:

Code: Select all

<!-- IF S_USER_LOGGED_IN and USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /><!-- ENDIF -->
Yes, you have to do the same twice :)

Re: Avatar on index

Posted: 21 Mar 2010, 14:05
by Micromaniac
Working! Thanks a lot..

Re: Avatar on index

Posted: 27 Mar 2010, 22:44
by Makis
Mr Stoker, I like it very much.
I chose as you said another place to put it, and a want to ask you if is it possible to get the 50% of the avatar image size?

Thank you

Re: Avatar on index

Posted: 31 Mar 2010, 23:37
by Makis
I I suppose no... :roll:

Re: Avatar on index

Posted: 31 Mar 2010, 23:38
by Fire-Fox
How do you mean?

Re: Avatar on index

Posted: 01 Apr 2010, 14:35
by Makis
I mean to get users avatar in index exactly as Stoker wrote, but I want the avatar in its half size.
Thanks

Re: Avatar on index

Posted: 01 Apr 2010, 14:53
by Fire-Fox
Set the width and height in the code

Code: Select all

<!-- IF S_USER_LOGGED_IN and USER_AVATAR --><td valign="top" style="padding-right:6px;" width="xx" height="xx">{USER_AVATAR}</td><!-- ENDIF --><td>

Re: Avatar on index

Posted: 01 Apr 2010, 14:59
by Makis
If you’re kind enough to write this down for me I’ll mach appreciate that.

Thanks again