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:

Re: Avatar on index

Post by Stoker »

Please post up the code of index_body.html
I just need the last part.
Board rules! No PM support
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 »

Here it is

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	   <table><tr><!-- IF S_USER_LOGGED_IN and USER_AVATAR --><td valign="top" style="padding-right:6px;">{USER_AVATAR}</td><!-- ENDIF --><td>
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><!-- IF TOTAL_GUESTS_ONLINE -->{GUESTS_PAST_24}<br /><!-- ENDIF --></td></tr></table>{LOGGED_IN_USER_LIST}
		<!-- IF not S_IS_BOT --><br />
	<br />{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->

	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
		<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->

<!-- 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 »

Try this instead:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
      <table><tr><!-- IF S_USER_LOGGED_IN and USER_AVATAR --><td valign="top" style="padding-right:6px;">{USER_AVATAR}</td><!-- ENDIF --><td>
   <p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><!-- IF TOTAL_GUESTS_ONLINE -->{GUESTS_PAST_24}<br /><!-- ENDIF --></p></td></tr></table>{LOGGED_IN_USER_LIST}
      <!-- IF not S_IS_BOT -->
      <p>{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit --></p>
   <!-- ENDIF -->
Board rules! No PM support
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 »

The Results

Image

When you start getting bored, say it
Last edited by Makis on 07 Apr 2010, 17:33, edited 1 time in total.
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 »

I forgot something, try this instead:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
      <table><tr><!-- IF S_USER_LOGGED_IN and USER_AVATAR --><td valign="top" style="padding-right:6px;">{USER_AVATAR}</td><!-- ENDIF --><td>
   <p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><!-- IF TOTAL_GUESTS_ONLINE -->{GUESTS_PAST_24}<br /><!-- ENDIF --></p></td></tr></table><p>{LOGGED_IN_USER_LIST}</p>
      <!-- IF not S_IS_BOT -->
      <p>{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit --></p>
   <!-- ENDIF -->
Board rules! No PM support
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 »

All correct and in place!!

Words aren’t enough just …

[pre]-------\|||/
(o o)
+-oooO--(_)-------+
| |
| Thank you! |
| |
+------------Ooo--+[/pre]
Last edited by Makis on 07 Apr 2010, 21:35, edited 1 time in total.
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 »

Nice Acsii :)
wvmetaldedication
BBCoder II
BBCoder II
Posts: 9
Joined: 03 Apr 2010, 12:39
Location: West Virginia
Contact:

Re: Avatar on index

Post by wvmetaldedication »

Another suggestion for subsiler2, don't mind me

Code: Select all

<!-- IF LEGEND -->
      <td class="row1" rowspan="2" align="center" valign="middle"><!-- IF S_USER_LOGGED_IN and USER_AVATAR --><br /><br />{USER_AVATAR}</td><!-- ENDIF --></span></td>
   <!-- ELSE -->
Replace with this

Code: Select all

	<!-- IF LEGEND -->
                <td class="row1" rowspan="2" align="center" valign="middle"><!-- IF S_USER_LOGGED_IN and USER_AVATAR --><br /><br />{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/whosonline.gif"/></td><!-- ENDIF --></span></td>
        <!-- ELSE -->
;)
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Avatar on index

Post by cisco007 »

why is it that you want to show the whosonline gif? it's supposed to be an avatar image, don't really see the point in using that particular image, but hey it's your site I guess you can put which ever image you want!
wvmetaldedication
BBCoder II
BBCoder II
Posts: 9
Joined: 03 Apr 2010, 12:39
Location: West Virginia
Contact:

Re: Avatar on index

Post by wvmetaldedication »

When the user is not logged in you get the whosonline image, when logged in you get the user avatar :)
Image
Locked