[tl] Thread Custom Fields Links

Description: Make a connection between threads.

Options:

  • Thread field IDs: Custom fields IDs which contain thread links for parsing

Permissions:
How it’s work?

Example a threadA you have put links to threadB, threadC and threadD. Then in the threadB, threadC, and threadC will display a link to threadA.

.

2013 – How to create multiple fields with their datatypes using REST API?

According to MSDN, we can create field like below..

$.ajax({
  url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741')
    /fields",
  type: "POST",
  data: "{ '__metadata': { 'type': 'SP.Field' }, 'Title': 'Comments', 'FieldTypeKind': 3 }",
  headers: { 
    "X-RequestDigest": <form digest value>,
    "accept": "application/json; odata=verbose",
    "content-type": "application/json;odata=verbose",
    "content-length": <length of body data>
  },
  success: successHandler,
  error: errorHandler
});

But question is how to create multiple fields with their datatypes. Like I want to create fields EmpName as Single line of text, Department as lookup, Profile as Hyperlink. How I can create metadata for all these fields?

how to load random related posts with specific custom fields?

I want to load 3 posts that have the same custom field value as the current post.
for example:
The current post has 3 custom fields:
color: black
background: red
lastname: doe
Now I want to load three posts with these custom fields:
first post: color:black
second post: background:red
third post: lastname:doe
these are my codes:

$page_id = get_the_ID();
$color= get_field( "color", $page_id );
$background= get_field( "background", $page_id );
$lastname= get_field( "lastname", $page_id );
$color_array = array ("the_color"=>$color);
$background_array = array ("the_background"=>$background);
$lastname_array = array ("the_lastname"=>$lastname);
$related_args = array($color_array ,$background_array ,$lastname_array );
foreach($related_args as $args) {
 foreach($args as $key => $value){
   $args = array(
                'post_type' => 'posttype',
                'orderby'   => 'rand',
                'meta_key'      => $key,
                'meta_value'    => $value,
                'posts_per_page' => 1,
                );
  .
  .
  .
  }
}

as you can see in codes, I’ve retrieved the current post custom fields value then I’ve created arrays that have the meta_key and meta_value. then created an array of that arrays. then I’ve created two loops to find 3 posts that each one of them has the same custom field as the current post.
The Problem:
It loads one post with the first custom field, two posts with the second custom field, and three posts with the third custom field.
But I want it to load one post with the first custom field, one post with the second custom field, one post with the third custom field.
Please tell me how can I achieve this.
Thanks

finance – Is there any academic fields that went into bottleneck and is waiting for mathematical solutions?

Thanks everyone for viewing my question!

Currently I can think of the mathematical interpretation of Deep Learning, to give some real intelligence to “AI” instead of being a “Black Box” model that only depends on large datasets and strong computing power (am I correct?).

Use custom fields in checkout to asign membership to another new user

Go ahead that at best I want to invent the wheel and there is some solution that has not yet occurred to me.

I am trying with every possible combination and I am certainly very clumsy because I am not able to move forward.

The thing is simple:

This is a club where members pay an annual fee. There are only quotas:

  • Senior Partner
  • Family Member 1
  • Family Member 2
  • Alevín partner
  • Student Partner – you can only have one subscription-

Any of the dues should entitle you to be a ‘Club Member’.

Any user can openly subscribe as a Senior Partner or Student Partner. But only a Senior Partner can subscribe to:

  • Only a Family Partner 1 – Partner your partner
  • Various Family Member 2 – make the child (ren) between 16 and 25 years old a partner
  • Various Socio Alevín – to become a partner (s) to the child (ren) under 16 years old

The Senior Member, after completing his paid subscription can now log in and buy – one by one – the subscriptions he needs – the club is fundamentally familiar, so we seek to make it easier for people to bring their loved ones.

And so far everything is falling apart, recurring payment. Everything perfect.

That one subscription can be made at a time is somewhat restrictive. Worse with that I manage to get the details of each of the relatives – as added checkout fields. There the Senior Partner identifies in front of the payment platform with his data and also includes the data of the relative.

And here comes the mess:

The alternative that seemed most appropriate to me – Woocommerce Subscriptions + Woocommerce Memberships – gives the Senior Partner the opportunity to send an invitation link to the family member to subscribe. But this does not work for me: the invitation link comes again – especially in the case of minors – to the Senior Partner who enters the system to end up paying his child’s fee fill., With which we are back as before.

This way the subscriber ends up being the person who pays. The Senior Partner will end up having multiple subscriptions to your name.

The rest of the plugins – and I looked at a few – follow a similar pattern.

Nor is it necessary for the family member to be listed as a subscriber – that would be fine, although it may end up being confusing. It would be enough to be able to assign a specific role to the relative mentioned in the subscription (it could create a specific role, eg: sociodoclub). The thing is, it shows up. But how do I get that data I get at checkout to for example a membership plugin ??

Or that at the end of the payment of the subscription the Senior Member had to obligatorily register the relative in a certain membership. ??

I keep going around, to see if I get somewhere.

Any comments, different approach, suggestion, advice,… therapist ;p

order details with the dates I need to translate to... a member plan?

forms – Does displaying fields only after selection reduce conversion?

I’m designing a checkout flow, and it needs to ask the user for registration fields at 3 different times (this is necessary by the rule of the third party we are using). I know that this many fields is bad for the experience, so I thought of hiding the last field section at first, so that it is displayed only after the user selects the offer that will be available to him. The question is whether this is good practice or should I show the fields as soon as the screen loads.

sharepoint online – Is it possible to have multiple rows in a list where some fields are duplicate to save user from having to complete a common field?

Sharepoint in Office 365

ISSUE
Form has 10 fields a user needs to complete before they can submit. 8 of the 10 form fields are unique whereas the remaining 2 are just their userID and dueDate (NOTE: userID is not the submitter’s userID). In some cases a user may have 20 records to submit. When the user has one record to enter, it’s not a big deal but when there are 20 records to enter, the time it takes waiting for the page to load as well as repeating the userID and dueDate is a long time to the user.

REQUEST
I’m looking for a more efficient way for a user to submit data such as implementing a “duplicate” button so the user only needs open the form once, enter the data for the 10 form fields, click duplicate and the row is duplicated but only the userID and the dueDate is copied from the source row, the other fields should be blank).

REQUIREMENTS
A user has 5 records they need to submit, all with the same userID and dueDate. The user should be able to enter the record for the first item, click a “duplicate” button. The button would duplicate the form fields (not the data, just the form field for the first 8 form fields but should include the userID and the dueDate of the last two form fields). Our form runs horizontally rather than vertically for reference so the concept of rows is accurate.

SCENARIO
There are real-world scenarios in which the user may have to enter 20+ items and this duplicate button would help the users A) not have to enter every field every time, B) accuracy for userID and dueDates, and B) would save the user time not having to wait for the page to load for every record they need to submit the data.

EXPERIENCE
I have zero experience with Sharepoint but I do have experience with JavaScript, jQuery, JSON, etc, and various other web development technologies which is why I was asked to assist with this endeavor.

8 – How to organize the display of product variation fields?

This is a known difficulty in Commerce 2.x. You can review the options in this issue https://www.drupal.org/project/commerce/issues/2928139

The best solution I have found is clicking show row weights in manage display for the product, the product variation, and the order item type – add to cart form – form display. You can then manually set the weights rather than drag and drop. For example set the weight of the field you want to be first to -50, and the field you want to be last to be 50. Then adjust the fields in the middle.

You will have to jump back and forth between the 3 displays I mentioned, and this won’t fix all your problems, but it will help.

You can overwrite the twig template in your theme as seen here: https://www.drupal.org/project/commerce/issues/2928139#comment-13444854

You could also hack and hide all the fields, and build custom view of fields, and use display suite to add the block view to your product display.

It really depends on what exactly you want to do.

fastboot – Boot image header fields are invalid

I want to install TWRP on Redmi 5 (Rosy), during installation everything works normally. But when I want to boot into TWRP,

fastboot boot TWRP.img

a failure message appears on the ADB command line.

FAILED (remote: bootimage header fields are invalid)

Previously I was on the EU MIUI Custom ROM. All happened after I tried to flash the MIUI 11 Global firmware

9 – Using jQuery to hide fields in a view

I have several parent and child taxonomy vocabulary terms in a content view. I would like to hide all of the unrelated child terms when a certain parent is selected. Is there a way I can do this via a jQuery script? Here’s what I have so far.

<script>
(function ($, Drupal, drupalSettings) {

  'use strict';

  Drupal.behaviors.hideFields = {
   attach: function (context, settings) {
         if ($('.views-exposed-form-page-1#edit-tid--TID').attr("selected, selected")) {
                    $('#NID(value=" + City + ")').hide();
        }
    }
 }
}(jQuery));
</script>