
Sten
Members-
Posts
68 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Sten's Achievements

Full Member (4/6)
16
Reputation
-
Yes thank you, it is B. I could choose the D so that I may
- 4 replies
-
- formbuider
- hidden input
-
(and 1 more)
Tagged with:
-
The field is InputfieldHidden
- 4 replies
-
- formbuider
- hidden input
-
(and 1 more)
Tagged with:
-
I am building a form for an inscription, so I want to have a token in a link in the mail to the subscriber, on which they click, to validate their email. So I tried to create a hidden field and to feed it through addHookBefore. It did not work, so I tried to create the field and feed it still through addHookBefore I did not work, neither. Here is my function : $forms->addHookBefore('FormBuilderProcessor::renderReady', function($e){ $processor = $e->object; // FormBuilderProcessor instance $form = $e->arguments(0); if($processor->formName == 'inscription') { $field = $this->modules->get('InputfieldHidden'); $field->attr('id+name', 'verif-token'); $field->label = "Token de vérification"; $field->value = bin2hex(random_bytes(32)); $field->required = true; $form->add($field); } }); My field in the link inside the mail is empty or I have the fielname between brackets. Maybe I miss a detail or my strategy is wrong.
- 4 replies
-
- formbuider
- hidden input
-
(and 1 more)
Tagged with:
-
Thank you Richard. I have the last version of FieldtypePDF with PHP8.3. I was able to correct this problem as I deleted the data in the FieldtypePDF row in the modules table in Mariadb. {"-dups":["\/site\/modules\/ProcesswireFieldtypepdf\/FieldtypePDF.module.php","\/site\/modules\/ProcessWire-FieldtypePDF\/FieldtypePDF.module.php","\/site\/modules\/FieldtypePDF\/FieldtypePDF.module"],"-dups-use":"\/site\/modules\/FieldtypePDF\/FieldtypePDF.module"}
-
Similar problem here: Fatal Error: Uncaught Error: Class 'Pagefiles' not found in site/modules/FieldtypePDF/FieldtypePDF/PagePDFs.php:37 ProcessWire 3.0.244
-
Hello @ryan How could I change the labels and descriptions to have them in French? I tried : <?php $loginRegister=$modules->get('LoginRegisterPro'); $loginRegister->setMarkup([ 'InputfieldSubmit' => [ 'class=' => 'bg-red-400 p-2 border-yellow-300 border-2 rounded-lg' ], 'Inputfield_profile_pass' => array( 'item' => "<fieldset {attrs}>{out}</fieldset>", // i.e. InputfieldFieldset.item 'item_label' => "<legend>Entrez un mot de passe</legend>", 'item_label_hidden' => "<legend style='display:none'>{out}</legend>", 'item_content' => "<div class='InputfieldContent'>{out}</div>", 'item_description' => "<p class='description'>Requiert au minimum 6 lettres ou chiffres</p>", 'item_notes' => "<p class='notes'><small>{out}</small></p>", ), ]); echo $loginRegister->execute(); ?> I tried to change label and description into French but failed. How could I do that? Thank you
-
Have a look at Contabo, I am very satisfied and they are cheap.
- 16 replies
-
- 2
-
-
-
- hosting services
- vps
-
(and 1 more)
Tagged with:
-
I have a page events whose template includes a repeater field event that contains a Page auto complete field tags that is fed by a repeater field called event_categories in the page Categories (template: Categories) that contains a text field called event_category (template: Category). In the settings of the Page auto complete field tags I tried as template categories and category with the field event_category. In both cases, I can't load the tag of the right category. Thank you
-
I securised the variable $cat=(string)$event->type;
- 1 reply
-
- inputfield
- select field
-
(and 2 more)
Tagged with:
-
Hi, I can't get the value of the fields of the page whose id comes from the value of the select field. In fact the value I get is the id of the repeater field from an other table with several fields inside. <?php //I get the repeater field value $events= $page->evenement; //I get the different lines foreach ($events as $event){ //I get the value of the select field foreach ($events as $event){ $cat=$event->type; echo $pages->get($cat)->couleur;exit; And then my result is empty. I am now confused with all my trials... thank you
- 1 reply
-
- inputfield
- select field
-
(and 2 more)
Tagged with:
-
[SOLVED] How to get the next monday of the next monday
Sten replied to Sten's topic in General Support
Thank you @netcarver, it works fine, @cwsoft, thank you but next next monday it is not always 14 days. -
Hello, How do I get the next Monday after the next Monday? I have that, that works and then I don't find how to add 7 days to it : $str = datetime('Y-m-d', 'next monday');
-
Impossible to upload bigger files in an Input field Files
Sten replied to Sten's topic in General Support
Thank you BitPoet, you saved me much time on it.- 2 replies
-
- upload field
- upload
-
(and 1 more)
Tagged with:
-
Although my php.ini is upload_max_filesize = 1000M and I reloaded php fpm, I can't upload files above 2M. I looked at every post on this topic in the forum but could not solve the problem. My error line is error] 32540#32540: *1592 client intended to send too large body: 22592569 bytes, [...] request: "POST /exploration/page/edit/?id=1114&InputfieldFileAjax=1 Thank you for any help.
- 2 replies
-
- upload field
- upload
-
(and 1 more)
Tagged with:
-
Hi, How could it be possible to put the "Add new" link at the top of the page administration? Thank you