Avatar on index

Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets

Avatar on index

Post by Stoker »

Avatar on index

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

Re: Avatar on index

Post 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

Post 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

Post by Micromaniac »

Working! Thanks a lot..

Re: Avatar on index

Post 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

Post by Makis »

I I suppose no... :roll:

Re: Avatar on index

Post by Fire-Fox »

How do you mean?

Re: Avatar on index

Post 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

Post 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>
Last edited by Fire-Fox on 01 Apr 2010, 12:54, edited 1 time in total.

Re: Avatar on index

Post by Makis »

If you’re kind enough to write this down for me I’ll mach appreciate that.

Thanks again