The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Avatar Thumbnails in the filesystem
I'm currently running AV Chat and driving myself a little mad here. I would love to go to them for support, but their support is very much lacking.
So, I've moved my forums avatars into the filesystem, which caused my avatars to not be displayed anymore in AVChat. I've added the following to the integration, which pulls SOME of the thumbnails. Others don't display at all and some show red X's. I can't find any correlation between any of them and it's driving me nuts. lol Any ideas? Appreciate any help very much. Anyways, the code that was added is: PHP Code:
Ok, so I found out that the code is correct and IS pulling the thumbnails appropriately. My issue is that if the user has no avatar, therefore no thumbnail, I get a red x. Any solutions to this? --------------- Added [DATE]1360159669[/DATE] at [TIME]1360159669[/TIME] --------------- Just wanted to post what I used to make this work. If the user doesn't have a thumbnail, it will grab the unknown.gif from your template. Remember to add this to the top of your file. For AVChat, this was all in integration.php (for those who use it.) Code:
require_once(DIR .'/includes/functions_user.php'); Code:
// Grab avatar URL $avatar = fetch_avatar_url($vbulletin->userinfo['userid'],true); if (!is_array($avatar)) { $avatar[] = "images/misc/unknown.gif"; } { $avatarurl = $avatar[0]; } var_dump($avatarurl); var_dump ($avconfig['thumbnailUrl']); //Setup avatar if available $avconfig['usersListType'] = 'thumbnail'; $avconfig['thumbnailUrl'] = '../'.$avatarurl.''; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|