The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
so i managed to get the userids so now im converting them to their avatar.
this code is partially working and i have been toying with it for hours with no success. this is the closest i've come in making this work. *side note* im not too good with php* heres the code i came up with after hours of digging (i know... hours, yeah pathetic) ![]() oh and this is on forumbit_display Code:
$lastpname = $lastpostinfo[lastposter]; $getlastpname = $vbulletin->db->query_first("SELECT userid FROM ". TABLE_PREFIX ."user WHERE username = \"$lastpname\""); $lastpid = $getlastpname['userid']; require_once('./includes/functions_user.php'); $lastpavurl = fetch_avatar_url($vbulletin->userinfo['userid']); if (!($lastpav)){ $lastpav = "<img src='http://3.bp.blogspot.com/-mg71OkrgNhY/Uv9zeCV4IsI/AAAAAAAABbc/zqOph-wGgpc/s1600/Batman_avatar-e1263852269689.jpg' />"; } else{ $lastpav = "<a href='member.php?u=$lastpid'><img src='image.php?u=$lastpid' alt='$lastpname Profile'></a>"; } so the batman (default image) is posted where 1. there are no threads and 2. when a user doesn't have an avatar as you can see in the SS (or live on my site, in my sig) the image is not appearing in the user with no avatar, nor the last forum with no post. viewing the source i see Code:
<img src="http://dirtrif.com/avatars/drbot.gif" alt="DrBot" s="" profile="" title="DrBot"> Code:
<img src="http://dirtrif.com/" alt="" s="" profile=""> so im lost and thought id ask for help =) and happy valentines day everyone |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|