Version: 1.02, by toolblast
Developer Last Online: Mar 2019
Version: 3.5.4
Rating:
Released: 04-17-2006
Last Update: 04-18-2006
Installs: 24
Uses Plugins
Additional Files
No support by the author.
PROPORTIONALLY AUTO RESIZE USER AVATAR PLUGIN
Last updated: April 18th - newest file is 'PluginFiles.zip'
What does this plugin do?
It will allow you to place the logged in user's avatar in your forum header or navbar and then set a predefined maximum width and height that the user's avatar can go in. Then, using PHP, an automatic resize will occur that will NOT stretch the image.
Update:this hack doesn't work everywhere like previously stated in earlier versions. Some templates in vbulletin do not render global variables making the plugin not show the avatar. One of these templates is the postbit template. If you put '$useravatar' in that template nothing will happen. Why? I'm not sure, and if anyone knows how to make it work please share!
What is the point of this plugin?
If you want the user to be able to upload a large avatar that will appear on the postbit, but in the forum login info part in the header you want to show their avatar, but at a smaller size than the original (without editing the original uploaded file and without stretching it). This is for you.
Installation:
Extremely simple. Simply upload plugin from the plugin manager area of your VBulletin Admin (for those who don't know, go to Plugin System > Download/Upload Plugin > Browse for the file and upload it). Then, you simply upload the imageresize.php file into your main forum folder.
Instructions:
To place the user's avatar in the template, edit one of your vbtemplates (header template preferrably), and then insert this code where you want the image to appear:
Quote:
$useravatar
If you want their avatar to link to their profile insert:
To change the max height and width dimentions for the avatar, edit the plugin and change the following line of code:
Quote:
//SET MAX RESTRAINTS
$maxheight=40;
$maxwidth=50;
Note: Upload both photoresize.php and noavatar.gif to your forum HOME directory. You can change the noavatar.gif image to whatever you want. Make sure you have your vbulletin homepage url set in your general vbulletin options area otherwise the script wont know the url of your forum!
Credits:
The "Avatar in Navbar" plugin by sabret00the [click here]
NPL Solution's script from Webmaster-Talk [click here] DONT FORGET TO CLICK INSTALL!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.