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 |
#42
|
||||
|
||||
Quote:
Clearly you would need to restrict file size for image uploads so users cant upload unlimited 3MP images. Thats pretty obvious. This script does dynamic resizing like the title of this thread states. It isn't a script that resizes and then resaves the image, overwriting the original. Though, im sure you could find a php script that does that by searching Google. Thanks. |
#43
|
|||
|
|||
My posting probably was not clear enough: I know HOW to resize a image with PHP and GDlib. I just don't find the place in the VB code WHERE to pick up the image date after upload and manipulate it. Any hints where in the code I have to look for that? I suppose it's in the class_upload, but I can't find the exact position ...
Thanks Franz |
#44
|
||||
|
||||
I really dont know where it is, I'd have to go hunting.
Does any expert vb coder know where this bit of code is? |
#45
|
|||
|
|||
I know that vb strips the exif data when it makes thumbnails, so is it possible to resize the attachments as they are being uploaded to say 99% of their original size, thereby stripping the exif data. Perhaps someone reading this can help. Thanks for your help toolblast but unfortunately resizing on the fly will slow down our server considerably.
|
#46
|
|||
|
|||
hi , I tried to test it
it didn't work with my member's avatar in the threads pages !! it still big images!! whats the problem ? |
#47
|
|||
|
|||
how to use it in postbit ^ ^ I mean how to resize avatar of a user in postbit if he/she uploads an avatar that exceeds the limit of forum? thx
|
#48
|
||||
|
||||
Quote:
|
#49
|
||||
|
||||
Quote:
Right now I had to fix a few bugs and this plugin now only works in the forum header and navbar (and a few other templates). Unfortunately it doesnt work in the postbit template (it just shows a blank space instead of the avatar). I am working on a new version of this plugin that will allow admins to easily add restraints to ANY image attachments/uploads which has been a huge request here on vb.org and I'll keep everyone updated, so stay tooned! Thanks |
#50
|
||||
|
||||
Can you get this to work without Apache? (without GD Library installed)
|
#51
|
||||
|
||||
Can anybody get this to work with ImageMagick??
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|