![]() |
Remotely Hosted Avatars
Adapted from here
**NO SUPPORT GIVEN** **USE AT YOUR OWN RISK** ======= This has been tested, and works on VB3 RC4 not sure about other browsers. This checks the image dimensions and if its a real image, but does NOT check the file size as the image is not being uploaded to the server, it is eing linked remotely. Dimension checking is so that it can't screw up layouts. ======= If A user already has an avatar that is NOTremotely hosted - it will be displayed, else the remotely hsoted avatar will be displayed. to include the avatar in other places on your site, add an if statement: PHP Code:
PHP Code:
======= Requires: File Modifications: 6 File Uploads: 0 SQL Queries: 1 Template additions: 0 Template Changes: 0 ======= Enjoy -DF Edit: Attatched ;) Edit: Fixed Small bugs - Incomplete lines from editing in pico - if avatar2 was "http://www." for some reason - it displayed no avatar, rather than the old avatar. Edit: Added Ability for users to still use predefined avatars or no avatar (In last 2 If statements made it set avatar2 to http://www.) if user enters NONE in the customavatar URL field - it also sets their avatar to no avatar. (Its up to you to change the phrase if you want your members to know - else they can use the "no avatar" setting above as normal) Works in member.php aswell now Edit: Fixed more Pico erros and added example of getting avatar url direclty from DB |
thx!
|
I really could use something like this. Thanks for the hack and nice job!
|
finally!! thanks alot
|
I'm pretty ignorant on this query stuff. Is this something I have to run with something like phpadmin? We're setting up a new site and it's going to have a very large membership. We'd kinda like to set this up but I'm unknowing when it comes to mysql and playing around with it. If I could receive a little better explanation on how to do this query at the end of the text file that would be great. Thanks much.
|
after i run this my users cant upload or use custom avatars at all..when u press upload it resets to Use no avatar option
|
Quote:
It's really usefull... please |
Quote:
|
Quote:
I would like to use it, since I do not like my members to upload avatars to my server (so if the problem is that they can no longer upload, it's not a great loss for me), but I want them to be able to select either one of the server's avatars or an external one. Is this hack doing this? Many thanks and kind regards ------ John |
this should be a default feature in vBulletin, especially with large boards. Is there no working hack for this? Invision has this feature for heaven's sake :(
|
ALTER TABLE `df_forum`.`PREFIX_user` ADD `avatar2` TEXT NOT NULL;
Replace df_forum with the name of the database where your user table is stored Replace PREFIX_ with the prefix of your tables, (or just remove it) Can someone translate this into English for me????? Not sure what I am supposed to do here??? |
Quote:
In phpMyAdmin if you look on the left side of your screen you will see a whole bunch of menut titles which are the names of your tables. What this tells you to do is replace df_forum with the name of your database. The name of your database will be at the very top of the left side of your screen in the list that shows all your tables in phpMyAdmin. If your tables all look like this: vb_user vb_postbit vb_header vb_footer etc. etc. then you're prefix is vb. Replace PREFIX_ with vb_ (or whatever your prefix might be), if you have no prefix to your tables then just remove the word PREFIX_ and drive on soldier. ;) |
Very useful modification, has anyone upgraded it to vBulletin 3.6.3?
|
Quote:
I need this plugin also for 3.6.x ..... |
All times are GMT. The time now is 07:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|