![]() |
Specify Avatar on Registration
This plugin just lets users upload their custom avatar on registration.
In the vB Options, you can choose to disable the URL or upload field (if you only want one or the other). The options are under 'User Registration Options'. To Install Install the product, then look in the attached install.txt for the template mod. You need to modify one template (register). Avatar Permissions Permissions (max width/height, filesize, animated etc) are gathered from the regsitered user groups permissions (usergroupid 2). To change them, just do it through the usergroup manager. Updates
Note: If the user chooses an invalid image, the image won't be uploaded but the user won't see any error notices. This is due to the way vB handles registration and the way the uploads are handled, I coudn't find a way to insert error checking. Image errors are only checked on upload, which also binds the image to the user account at the same time. So I couldn't call it and check for errors before the user existed... If you find a way, let me know ;) |
Looks brill-
*installs* :) Thanks |
Wow, VERY nice idea!!
will install tonight! :) |
Its not showing up on the registration page. do i need to change the template?
|
Read his install.txt
"################################################# ####### # Template: register # >> FIND ################################################## ###### <if condition="$show['regimagecheck']"> <fieldset class="fieldset"> ################################################## ###### # >> ABOVE, ADD ################################################## ###### <if condition="$show[avatar_form]"> <fieldset class="fieldset"> <legend>$vbphrase[regava_custom_avatar]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> $vbphrase[regava_upload_custom_avatar] <if condition="$vboptions[regava_show_url]">$vbphrase[regava_enterurl]</if> <if condition="$vboptions[regava_show_upload]">$vbphrase[regava_upload]</if> </td> </tr> <if condition="$vboptions[regava_show_url]"> <tr> <td> $vbphrase[regava_enter_avatar_url]<br /> <input type="text" class="bginput" name="avatarurl" value="http://www." size="50" dir="ltr" /> </td> </tr> </if> <if condition="$vboptions[regava_show_upload]"> <tr> <td> <input type="hidden" name="MAX_FILE_SIZE" value="$inimaxattach" /> $vbphrase[regava_upload_avatar_from_computer]<br /> <input type="file" class="bginput" name="upload" size="50" /> </td> </tr> </if> <if condition="$show['maxnote']"> <tr> <td>$maxnote</td> </tr> </if> </table> </fieldset> </if> |
Nice job Chroder. Going to install it now.
Derek |
for me it looks like it does everything except upload the actual avatar :/
anyone have this working? |
Good job Chroder! :D And thanks for sharing.
|
Thank you, been waiting for something like this. :)
|
Is there any way to do the same thing for profile picture? That would be awesome!
|
All times are GMT. The time now is 12:03 AM. |
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:
|