Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

How show the User Avatar in the login page?

Quote Reply
How show the User Avatar in the login page?
Hi

I'm doing many templates modifications, and one of that is change the user and password fields, by a welcome message with the name, user icon, and user title, when the user is logged. I have not problems to do this, except that the template login.html (where i'm working) cant read tags like <%user_icon%> and <%user_title%>

I copy this code from the include_post_display.html :


<%GForum::User::icon_dimensions($user_icon)%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><img src="<%image_url%>/<%user_icon%>" width="<%icon_width%>" height="<%icon_height%>" border=0></div></td>
</tr>
</table>

But it dont work in login.html template. Can somebody give an idea about how use <%user_icon%> and <%user_title%> tags in the login.html template?

Thanx in advance.




http://www.webconferencia.net/
Quote Reply
Re: [acidoinmetal] How show the User Avatar in the login page? In reply to
Umm... if they have to be on the Login page that probably means they're not logged in as a user. No?


Realiiity.com Forums
Quote Reply
Re: [ellipsiiis] How show the User Avatar in the login page? In reply to
Correct. Then the fields for user and password disappear and the welcome message is displayed. I wish show the user avatar and user title too, qhe user is logged. Check this test url to understand what i'm trying to do (spanish) http://acido.d2g.com/comunidad/gforum.cgi

Thanx




http://www.webconferencia.net/
Quote Reply
Re: [acidoinmetal] How show the User Avatar in the login page? In reply to
Nobody have a tip to use the <%user_title%> and <%user_icon%> in the login.html template? Or this is not posible in GF 1.1.8 ? All what i want is show a welcome message in the login page (that i'm using as main page for my forum) also displaying the user name, title and avatar.

Excuse my insistence Blush




http://www.webconferencia.net/
Quote Reply
Re: [acidoinmetal] How show the User Avatar in the login page? In reply to
If a user is not logged in then it is not possible to display the user_icon and user_title, because, well, the user is not logged in....

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] How show the User Avatar in the login page? In reply to
but when the user is logged? One point.... I have change the gforum.cgi to point to the login.html template. So, if the user is NOT loged, then he is able to see the user and passwords field. But when he is loged, then this fields disapear and then a welcome message is diplayed:

<%if current_user_id%>
<%cuerpo_font%>
<b>WELCOME
<%nbsp current_user_username%>
<%/cuerpo_font%>
</b>
</table>
<%else%>
login form etc etc.........

It works perfectly, and i like this tip for add content to a main page, based in the login.html template. But, my problem, or my wish, is show the user title and user avatar in that welcome message. I believe this can be possible, but i don know how make works the correct tags for that, in this template.

Sorry for my english, but please log in this url http://acido.d2g.com/...nidad/cgi/gforum.cgi and log a cachaka , pass 1234 (no problem is just a test forum) to understand what happen whe a user log in my forum.




http://www.webconferencia.net/

Last edited by:

acidoinmetal: Sep 11, 2002, 12:41 PM
Quote Reply
Re: [acidoinmetal] How show the User Avatar in the login page? In reply to
Try

<%current_user_icon%>

and

<%current_user_title%>

If this doesn't work, use

<%GT::Template::dump%> to see what tags are available.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] How show the User Avatar in the login page? In reply to
It Works !!!!!!!!!!!Cool Thanx Iván !!!!!!!!!!




http://www.webconferencia.net/