vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Specify Avatar on Registration (https://vborg.vbsupport.ru/showthread.php?t=115488)

Chroder 05-12-2006 10:00 PM

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
  • May 14, 2006
    • Plugin now works for those who are storing avatars in the filesystem. Thanks to chatbum for identifying the issue.


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 ;)

TeaTree 05-13-2006 08:35 PM

Looks brill-

*installs* :)

Thanks

The Chief 05-13-2006 08:46 PM

Wow, VERY nice idea!!

will install tonight! :)

Mr Chad 05-13-2006 09:04 PM

Its not showing up on the registration page. do i need to change the template?

kenji4861 05-14-2006 12:07 AM

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>

derekivey 05-14-2006 02:37 AM

Nice job Chroder. Going to install it now.

Derek

Mr Chad 05-14-2006 07:54 AM

for me it looks like it does everything except upload the actual avatar :/

anyone have this working?

Floris 05-14-2006 09:22 AM

Good job Chroder! :D And thanks for sharing.

Snake 05-14-2006 12:08 PM

Thank you, been waiting for something like this. :)

Sychev_S 05-14-2006 03:34 PM

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
  • Page Generation 0.01046 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete