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 |
#22
|
||||
|
||||
Don't forget, the variable is now '$useravatar' if you just downloaded the latest zip file (which I uploaded a second ago). Then $useravatar is the variable you can use in any template to show your resized avatar of the current logged in user.
|
#23
|
|||
|
|||
Quote:
|
#24
|
|||
|
|||
Quote:
I uploaded the php file into the forum root, imported the plugin in the acp and I than went to my header template and addedd:
WHo knows. |
#25
|
||||
|
||||
Ok, right-click on the red x'd image and look at the properties of the image. Copy and paste that into this thread. Thanks
As for the 'no avatar image' hack, I'm not sure exactly what will happen because I dont have it installed on my test board. I would assume that the no avatar image hack either a) gives all users a default avatar, so they have an avatar at all times, just the one they get is your default one. This case, this plugin would just shrink and display the default avatar. b) it dynamically places a 'noavatar' image everywhere that the user's avatar is displayed and dynamically does it. Thus, the user sees 'do not use avatar' checked off in their usercp, but it shows the default image anyways. In this case Im not sure what would happen. Is the 'no avatar image' hack, that is separate to this one, a plugin? If so, try turning that plugin off and seeing if this one works. |
#26
|
|||
|
|||
RED X url:
Code:
http://www.MYSITEHERE.com/forums/imageresize.php?image_name=http://www.MYSITEHERE.com/forums/image.php?u=4&dateline=1139443346&image_height=40&image_width=50 |
#27
|
||||
|
||||
Check with your host, you might not have the GD graphics library enabled on your server. Maybe if you want i'll put together a php file that will do a test to see if you have the requirements that php needs to generate the thumbnail.
|
#28
|
|||
|
|||
Quote:
Running Linux Fedora ...this server also has GD 2 installed |
#29
|
||||
|
||||
Hmm. Well Kihon, I really dont know what to say lol. If you're running vb 3.5.4 and you're logged in as a user who has uploaded a custom avatar, and you are still seeing an X or nothing in firefox, then something is setup incorrectly on your server or your vbulletin forum.
If you'd like i'll PM you the URL to a test board I have running the plugin with nothing else installed and it works just fine. Have you tried taking off the 'default avatar' hack you had installed? |
#30
|
|||
|
|||
Yep, running a pretty successfull 3.5.4 with almost 400,000 posts
What if I let you come in as an admin and you can fool with it? PM me if interested |
#31
|
|||
|
|||
hi toolblast, do you know how I might use the imageresize.php to remove exif data from attachments as they are uploaded. I was told that if I can reduce the uploaded files color depth that it would remove the exif data. I was also told that if I resize it was also remove exif data, but I don't really want to resize attachments.
thanks for your time |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|