The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Proportionally Auto Resize User Avatar Details »» | ||||||||||||||||||||||||||||
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:
Quote:
Quote:
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
|
Comments |
#52
|
||||
|
||||
Hi Chief! Nice to see you here.
I believe it is only coded to work with GD right now but I'll look for php code that may work with imagemagick ------------- Just a note to everyone who hasn't realized that I updated the plugin description: this hack doesn't work EVERYWHERE like previously stated. 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! Thanks. |
#53
|
||||
|
||||
Hey Chief,
I think I found something that may help. I haven't examined the code yet, but this page looks promising: http://www.imagemagick.org/script/convert.php |
#54
|
||||
|
||||
Quote:
Tell me if you need help testing it. |
#55
|
||||
|
||||
Hmm. Well it looks like it would require a lot of research and coding to get imagemagick working lol. There really isn't very much documentation on the resizing function in IM with PHP.
Maybe in the future I'll try and add that in. In the meantime, you need to get GD Library on your server! lol |
#56
|
||||
|
||||
Quote:
|
#57
|
|||
|
|||
hey toolblast,
have you made any progress in how to get the postbit_legacy to resize the image? this is similar to what i've been trying to do. i'm trying to have the profile pic in the memberinfo template, and in postbit_legacy to automatically resize that into an avatar. this would make the profilepic and avatar the same image. i have a whole thread going on on it here: https://vborg.vbsupport.ru/showthread.php?t=122710 |
#58
|
|||
|
|||
i tried this on 3.6 but no go for launch
Any chance on an upgrade please? |
#59
|
||||
|
||||
same question, can you port this for 3.6 Ill even pay you for it! lol
|
#60
|
||||
|
||||
No go on 3.6.5 here either... would love to see an update!
|
#61
|
|||
|
|||
Attached is a new imageresize.php script that should work with 3.6.5. Overwrite the original one. This script came from http://tech.mikelopez.info/2006/03/0...resize-script/ modified to work with this mod.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|