- UID
 - 382
 
- 注册
 - 2019/06/17
 
- 消息
 - 60
 
- 反馈评分
 - 14
 
- 黄金
 - 34,014G
 
@死了算了
刚好需要这个插件,去XF官方翻了一下。
给我找到,不过只适用于 XF 1.X 的版本。
官方原版的使用说明如下:
This script is useful when you have any HTML web page needing to show a user's avatar, and the user's username or userid is available to you. An HTML img tag will be the typical usage:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Installation:
- upload this script to your forum root.
You have 3 GET parameters you can set:
userid - the userid number of the user.
username - the username of the user. Can be used instead of userid.
size - can be s, m, or l. The default is m if not specified.
Example usage:
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
If the user is not found then it will output the default "no gender" avatar:
		
		
	
	
		
	
This script supports all three types of avatars... default, custom, and gravatars.
Note that calling avatars like this doesn't have the usual cache-buster timestamp in the URL. So a hard refresh might be necessary to see a user's new avatar after they have changed it.
插件上传到附件了。
把后缀的.zip改成.php就可以了。
因为论坛不给上传.php文件。
				
			刚好需要这个插件,去XF官方翻了一下。
给我找到,不过只适用于 XF 1.X 的版本。
官方原版的使用说明如下:
This script is useful when you have any HTML web page needing to show a user's avatar, and the user's username or userid is available to you. An HTML img tag will be the typical usage:
			
				代码:
			
		
		
		<img src="avatar.php?userid=3" />
	Installation:
- upload this script to your forum root.
You have 3 GET parameters you can set:
userid - the userid number of the user.
username - the username of the user. Can be used instead of userid.
size - can be s, m, or l. The default is m if not specified.
Example usage:
			
				代码:
			
		
		
		<img src="avatar.php?userid=3" />
<img src="avatar.php?userid=3&size=s" />
<img src="avatar.php?username=admin" />
<img src="avatar.php?username=admin&size=l" />
	If the user is not found then it will output the default "no gender" avatar:
	This script supports all three types of avatars... default, custom, and gravatars.
Note that calling avatars like this doesn't have the usual cache-buster timestamp in the URL. So a hard refresh might be necessary to see a user's new avatar after they have changed it.
插件上传到附件了。
把后缀的.zip改成.php就可以了。
因为论坛不给上传.php文件。