The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#32
|
|||
|
|||
You mean the product from this thread, don't you? I just downloaded it again and it is the same file as I have installed. Therefore I think I have the latest product.
When you look at this thread people seem to have problems since version 3.65. I think that it is only a minor problem which keeps the product from working correctly, but non-coders are not able to see it. You don' t seem to have changed the plugin. Since the install instructions are not correct any more, I assume that the problem lies here. Could you please post the code you added to register template and where you have placed it? |
#33
|
||||
|
||||
1.
The registration form: HTML Code:
<form action="register.php?do=addmember" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);" ENCTYPE="multipart/form-data">
HTML Code:
<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> </table> </fieldset> </if> Plugins: register_addmember_process PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#34
|
||||
|
||||
btw, i did work on the code and wanted to rewrite it, but then I noticed that the registration form did not have the right encoding so I believe I just reinstalled the original product and then it worked.
I also changed the register_addmember_process plugin a bit, but I believe those changes were in the end the same as it was. |
#35
|
|||
|
|||
Ok, it is working now! Thank you very much! It was really nice of you to spend so much time on this issue!
I think in the end you only have to add ENCTYPE="multipart/form-data". I am not sure about the effect of reinstalling the product. I think this is part of the solution, too, but I don' t know what kind of difference that makes and I also had an imagemagick problem. This mod did not work for you on first install as well, did it? After reading your last post I have reinstalled the plugin, but the avatar still has not been uploaded. I then replaced everything with your code. This was the first time I could see an impact. Instead of just promping a success without uploading the avatar, it said "invalid file". Soon I noticed that the standard avatar feature did not work, too. The reason was a misconfigured imagemagick path. After correction everything worked perfectly, besides that instead of the success message I received a blank box. Therefore I reinstalled the original mod again. Now everything works perfect. Not quite, there are two more issues left. 1. I still don' t know why I get Could not find phrase 'note_maximum_size_x_y_or_z'. error. The phrase manager displays it as User Tools (global) and the phrase works perfect in the user control panel. It is also referenced in register.php ($phrasegroups = array('timezone', 'user', 'register', 'cprofilefield');). You have not used the $maxnote variable in your html form code. Did you have the same problem or did you just think that it was not necessary? If I don' t get it to work, I will delete it from the form, too. Avatars are resized anyway, so that this information is a little bit misleading. 2. Then there is one more goal I like to achieve - making the avatar mandatory. I tried adding code to the check for missing fields section of register.php, but I was not able to submit the form. I added 'upload' => TYPE_FILE, to clean_array_gpc and OR empty($vbulletin->GPC['upload']) to the if clause. I also thought about adding code to the javascript verify_passwords function. This would be not as good as php validation, but still better than no validation at all. Unfortunately I have never dealt with javascript and the variables used in vbulletin look so much different than the ones used in code examples on other sites. If anyone knows how to change the files in order to make avatars mandatory, please reply. Edit: The reason for the first problem is that the language variable calls have been changed. The register_form_complete plugin should look like this: Code:
//register_form_complete if($avatar_form) { $reg_perms['avatarmaxsize'] = vb_number_format($reg_perms['avatarmaxsize'], 1, true); $maxnote = ''; if($reg_perms['avatarmaxsize'] AND ($reg_perms['avatarmaxwidth'] OR $reg_perms['avatarmaxheight'])) { $maxnote = construct_phrase($vbphrase['note_maximum_size_x_y_or_z'], $reg_perms['avatarmaxwidth'], $reg_perms['avatarmaxheight'], $reg_perms['avatarmaxsize']); } else if ($reg_perms['avatarmaxsize']) { $maxnote = construct_phrase($vbphrase['note_maximum_size_x'], $reg_perms['avatarmaxsize']); } else if ($reg_perms['avatarmaxwidth'] OR $reg_perms['avatarmaxheight']) { $maxnote = construct_phrase($vbphrase['note_maximum_size_x_y_pixels'], $reg_perms['avatarmaxwidth'], $reg_perms['avatarmaxheight']); } $show['maxnote'] = (!empty($maxnote)) ? true : false; } |
#36
|
|||
|
|||
does this work on the latest 3.8.x ?
|
#37
|
|||
|
|||
can anyone help i cant get this to work on 384
|
#38
|
|||
|
|||
will there be an update for vB4?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|