Page 3 of 5

Re: Avatar on index

Posted: 07 Apr 2010, 16:46
by Stoker
Please post up the code of index_body.html
I just need the last part.

Re: Avatar on index

Posted: 07 Apr 2010, 17:00
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 -->

Re: Avatar on index

Posted: 07 Apr 2010, 17:04
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 -->

Re: Avatar on index

Posted: 07 Apr 2010, 17:29
by Makis
The Results

Image

When you start getting bored, say it

Re: Avatar on index

Posted: 07 Apr 2010, 18:04
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 -->

Re: Avatar on index

Posted: 07 Apr 2010, 18:29
by Makis
All correct and in place!!

Words aren’t enough just …

[pre]-------\|||/
(o o)
+-oooO--(_)-------+
| |
| Thank you! |
| |
+------------Ooo--+[/pre]

Re: Avatar on index

Posted: 07 Apr 2010, 19:30
by Fire-Fox
Nice Acsii :)

Re: Avatar on index

Posted: 10 Apr 2010, 06:34
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 -->
;)

Re: Avatar on index

Posted: 10 Apr 2010, 06:51
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!

Re: Avatar on index

Posted: 10 Apr 2010, 07:16
by wvmetaldedication
When the user is not logged in you get the whosonline image, when logged in you get the user avatar :)