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 |
#12
|
||||
|
||||
Quote:
Go to your vbulletin admincp and tell me what you find here: VBULLETIN OPTIONS > VBULLETIN OPTIONS > SITE NAME / URL / CONTACT DETAILS >> The variable called "FORUM URL" (2nd input box). You should have the url to your forum in there with no trailing slash. |
#13
|
|||
|
|||
I have that filled up with "http://www.MYSITENAME.com/forums" with no quotes and my real forum name.
|
#14
|
||||
|
||||
Ok, and tell me:
1) Try putting the avatar code into the header template of your forum. 2) Then, login to your forum and make sure you have an avatar selected for the username you logged in with. 3) Make sure you've downloaded and are using the recent files I put in the zip file attached here. It should work fine if you're using VB3.5. There must be a setting somewhere that is not set correctly on your forum if it doesnt work. I can show you a demo forum with this running if you'd like. |
#15
|
|||
|
|||
I did the top 2 already. Did you update #3 today?
EDIT: I am using 3.5.4 |
#16
|
||||
|
||||
Hi Kihon,
I just did some checking and I see the problem you are seeing now. It only seems to happen in FireFox. If you use IE the plugin works fine. I wonder why it doesnt work in firefox. I'll look into it. |
#17
|
||||
|
||||
Quote:
Yes. I just uploaded a new zip file. It seems that the image isnt displaying in firefox (though its common php thats creating the image, so Im not sure sure why). |
#18
|
|||
|
|||
Oh ok, even though I have a busy forum with 99.99% women, many many use Firefox. I'll wait until you update it w/ firefox. :-)
|
#19
|
||||
|
||||
Hi Kihon.
Ok, I have gotten it to work with FireFox now. I will upload a new zip file to this thread in about 4 minutes and it will be called 'PluginFiles.zip' ok? |
#20
|
|||
|
|||
woot! nice support toolblast! update the version and I'll reinstall it
|
#21
|
||||
|
||||
Ok Kihon. It should be all done.
Works in both Firefox and IE6. Ive checked both. Also, i've included an image called 'noavatar.jpg' which will show up if the user has no avatar. Tell me if you have any problems! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|