add your own avatar along side login/out button - نوشته شده در (2295 Views)
Junior Member
GarethMoore1979
مطلب: 220
220
I already have the avatar mod on my forums, but what I want to do is at the top of the forum where you have the login/out button and it says "You are logged on as xxx", alongside that I wanted it to display the users own avatar. Has anyone done this before or know what code I should use?<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Support Moderator
Shaggy
مطلب: 6780
6780
Easiest way to to it would be to dim a new variable in config.asp or inc_header.asp to hold the URI of the members' avatar. You would then need to edit the chkUser function in inc_func_common.asp to retrieve the URI from the MEMBERS table and assign it as the value of this new variable. Finally, you would need to edit the section of inc_header.asp that displays that line and use your new vraible to display the image.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
نوشته شده در
Average Member
cripto9t
مطلب: 881
881
Snitzbitz - Scroll down the page and look for Avatar add-ons by Cripto9t. There are four separate mods in the zip and requires Avatars 3.4 by Hamlin.
It uses a separate query in inc_header.asp to the get url. I should update the mod to grab it in the chkUser function as Shaggy suggested.<
    _-/Cripto9t\-_
 
شما باید یک متن وارد کنید