Hi! I tried and I have this errorjaviexin wrote:As indicated on first post, only two changes remain unapproved, those scheduled for 3.2.
I have not tested it on 3.1.10 yet, though, but should work.
-javiexin
Code: Select all
Catchable fatal error: Argument 3 passed to phpbb\profilefields\manager::__construct() must be an instance of phpbb\db\tools, instance of phpbb\event\dispatcher given, called in C:\xampp\htdocs\teste\cache\container_64cd73d669dd8f337d8b1b251fc6bd39.php on line 2287 and defined in C:\xampp\htdocs\teste\phpbb\profilefields\manager.php on line 100
Hi! It was the cache, I deleted it and it worked!javiexin wrote:How did you modify manager.php?
Did you copy the contrib version, or applied changes to the 3.1.10 original, or other? How about the rest of the changes? Purged the cache?
Answer is yes. Those are the two tickets that are pending merging, and are required for this to work.Rhino.Freak wrote:Pardon me, didn't read posts above. Answer appears to be yes.
Glad it worked!SalazarAG wrote:Hi! It was the cache, I deleted it and it worked!
1 - I noticed some bugs: I can not increase the dimensions of the image if it is bigger than 200x200, when I put for example 700x450 and saved, the standard dimensions return.
2 - Is it possible to add a profile field with BBcode?
Hi javiexin! God afternoon!javiexin wrote:Glad it worked!SalazarAG wrote:Hi! It was the cache, I deleted it and it worked!
1 - I noticed some bugs: I can not increase the dimensions of the image if it is bigger than 200x200, when I put for example 700x450 and saved, the standard dimensions return.
2 - Is it possible to add a profile field with BBcode?
What version of phpbb are you using? 3.1.10 has a problem with profile fields, and so, I am currently unable to test what you describe (my test forum is on 3.1.10, but I have not applied the hot fixes for these problems yet). But it should work as expected: if you configure a max_width and max_height in the profile field parameters, then it checks that the uploaded image is within those parameters (it never resized the image though). If you continue having issues, let me know the PF configuration parameters you are using.
And regarding the BBcode-enabled profile field... Stay tunedAnswer is YES, but NOT immediately, I need to finalize other things first.
Any other PF types that are worth being defined? Must be general purpose (multiple uses). I am thinking on a "progress bar" CPF type as well, and maybe others...
-javiexin
C:\xampp\htdocs\teste\ext\javiexin\advancedpf\profilefields\type/type_imgupl.php
I found the following code:Code: Select all
/**
* {@inheritDoc}
*/
public function get_default_option_values()
{
return array_merge(parent::get_default_option_values(), array(
'field_minlen' => '20|20',
'field_maxlen' => '200|200',
));
}
'field_maxlen' => '200|200'
to 'field_maxlen' => '800|500'
, I disabled and enabled the extension and it worked, now the images can be sent up to 800x500 px.aviexin\advancedpf/styles/
?template/events/name_of_event.html
and the code of CPF?Assuming that, when you say "saved", you mean going to "Language specific options" and then "Save", this is the correct way to do it.SalazarAG wrote:In a test forum I use version 3.1.10.
I will try to explain in a clearer way with every step up the problem (I use kkk translator).
1 - I enable the extension
2 - I create a new profile field of type "Image upload" with the name 'image'
3 - Mark the "Publicly display profile field:" and "Display in user control panel:"
4 - Under "Profile type specific options":
4.1 - In "Minimum dimensions" by default the value is 20x20 px, and in "Maximum dimensions" the default value is 200x200 px.
4.2 - In Maximum dimensions I put 800x500 px and saved.
I have duplicated the process in my test forum, and it works just fine for me. I tested with images of 800x600 in fields limited to 1000x800, for example.SalazarAG wrote:4.3 - In "Edit profile", when sending the image in dimensions 700x400 px it returns the error stating that the image must have maximum dimensions of 200x200 px.