Avatar on index

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Avatar on index

Post by Stoker »

Avatar on index

Moved here: viewtopic.php?f=45&t=1251
Board rules! No PM support
Micromaniac
BBCoder I
BBCoder I
Posts: 3
Joined: 18 Mar 2010, 10:08
Contact:

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 -->
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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 :)
Board rules! No PM support
Micromaniac
BBCoder I
BBCoder I
Posts: 3
Joined: 18 Mar 2010, 10:08
Contact:

Re: Avatar on index

Post by Micromaniac »

Working! Thanks a lot..
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

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
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Re: Avatar on index

Post by Makis »

I I suppose no... :roll:
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: Avatar on index

Post by Fire-Fox »

How do you mean?
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

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
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

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, 14:54, edited 1 time in total.
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

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
Locked