View Full Version : similar to vbulletin.org
cyrus
11-06-2001, 03:44 PM
on the forums page, like on this site, I would like the section at the top with the avatar, which Says " >> Welcome Back $username"
How can this be done ??
thank you
cyrus
11-09-2001, 09:42 PM
???
Dalius
11-09-2001, 11:46 PM
Welcome back, $username
!
If you now how to use variables, it shouldnt be to hard...
Admin
11-10-2001, 05:24 AM
Use $bbuserinfo[username] to display the username of the viewer in any template you wish.
Mohamed
11-10-2001, 04:20 PM
dear FireFly
it's didn't work with me :(
cyrus
11-10-2001, 09:00 PM
i dont want only the username, I want it all , avatar etc, liek on this site :p
u can tell me if you dont wanna share this hack :p
Mohamed
11-11-2001, 05:58 AM
yes ..
I want that also
cyrus
11-11-2001, 04:29 PM
FireFly ?? :)
Admin
11-11-2001, 05:19 PM
Sorry, it involves lots of templates and new code to index.php, I can't really release it.
But if you look at the releases forum, you'll see a "Since your last visit" hack, that does the "There have been xx new posts and xx new threads since your last visit", and if you search a bit you'll find the code for the avatar thing. :)
cyrus
11-12-2001, 08:15 AM
damn, i was really looking forward to that ! Looks great on this forum.
not a problem though, thanks for responding
ixian
11-14-2001, 12:53 PM
I've searched more than a bit, but I can't find the "avatar thing". I'm not trying to make my site like like this one, but I would like the users's avatar up top with their name.
I've tried several different options - adding this to forum_welcometext:
<img src="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]" align="left">
Trying "$bbuserinfo[avatarurl]" instead, etc. Nothing works. By not working, I mean nothing shows up, except when I try one of the avatarurl vars - then I get a broken link image.
Can anyone show me the light?
ixian
11-14-2001, 02:52 PM
Firefly,
I finally found the post you were referring to, or at least I think it is - the one where you add the info to index.php for avatarurl, and give alternate images for no avatar and guest users? (I am at work now, so I can't find it).
Anyway, I did that, and here's the weird thing - it does show the image, but only the "No avatar" one. For some reason, even when entering the "avatar.php etc etc" directly for the image link, it does not pull up the avatar. It just shows no image. In the case of using the $avatarurl in the image tag, it apparently can't look up my avatar and goes to the default one. You can see what I mean at my site below.
Any ideas?
Admin
11-14-2001, 02:56 PM
ixian,
I should have mentioned that my code only works for users with custom avatars, like we have set up here.
Making it support regular avatars will be a bit different.
If you want it so bad, I'll do it...?
ixian
11-14-2001, 03:35 PM
Yikes!
Darn. I was hoping I could just take the same code that makes the avatars appear in posts and move it to the front page. Could you give me an idea of what's different?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.