I've already done it. There's just exmaples, but not a complete list of them...
1 2012-02-03 14:39
Re: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
2 2012-02-02 12:41
Re: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
Okay, it works !
Thanks, very well !
Oh, a last question : is there a documentation where I can find all the punbb globals ?
Thanks again !
3 2012-02-01 18:48
Re: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
Hum... your script doesn't work...
$avatar_filename is not declared...
There's any $forum_user['---'] variable who contains the avatar filename ?
4 2012-01-30 19:55
Re: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
Well, for simplify, I just want a variable who contains the url of the current user's avatar.
Like this : $avatar_path = 'img/avatars/2.png';
Obviously, I want it work for every file extension...
Thanks everybody for your help !
5 2012-01-29 10:42
Re: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
Hum.... In my .tpl files, I've just html code, not php.
If USERID is a constant, I wanna to konw where she's declared.
Because if I seach "USERID" in my forum directory, I have no results...
So I hope there is a variable which contains the current user's id.
What I want to do is that :
<div id="logbox_avatar" style="bacrground-image : url(AVATAR_PATH);"></div>
AVATAR_PATH is the url of the current user's avatar, so it looks to that : "./img/avatar/USERID.AVATAR_EXT"
USERID is the current user's ID (you had guessed? ^^).
AVATAR_EXT is the file extention of the current user's avatar (.png, .gif or .jpg).
I've learned about punsapi, a tool for make the integration of punbb easier, but this is not compatible with punbb 1.4...
Sorry for my bad spannish (google translator), and my bad english (I'm french ^^).
__________________________________________________________________
Hum .... En mi archivos .tpl, acabo de código html, no php.
Si USERID es una constante, quiero saber dónde está declarado.
Porque si busquo "UserID" en mi directorio del foro, no tengo resultados ...
Así que espero que haya una variable que contiene el id del usuario actual.
Lo que quiero hacer es lo siguiente:
<div id="logbox_avatar" style="bacrground-image: url(AVATAR_PATH);"> </ div>
AVATAR_PATH es la url del avatar del usuario actual, por lo que parece a lo siguiente: "./img/avatar/USERID.AVATAR_EXT"
USERID es el ID del usuario actual (que había adivinado ? ^^).
AVATAR_EXT es la extensión del archivo del avatar del usuario actual (.png, .gif o .jpg).
Que he aprendido sobre punsapi, una herramienta para hacer más fácil la integración de punbb, pero esto no es compatible con punbb 1.4 ...
Lo siento por mi mala spannish (Google translator), y mi mala Inglés (soy francés ^^).
6 2012-01-28 21:20
Re: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
Yes, it looks to be that kind of files.
Is USERID a defined constant ?
7 2012-01-28 20:33
Topic: How get the user's avatar path ? (15 replies, posted in PunBB 1.4 troubleshooting)
Hi everybody, I'm new in Punbb world.
I try to intergrate the forum in my site, but I have some problems.
I search how to get the avatar of the user who is connected. (To show it in the logbox).
Where I can find it ?
PS : I just want the path to the avatar, not a html code like <img src="[...]"/>.
Thanks for answers.
Thaledric