How to remove multiple size images from custom RSS Feed

I want to remove unnecessary size images link from my custom feed, only need 1st full resolution image.

<figure id="attachment_23" aria-describedby="caption-attachment-23" style="width: 800px" class="wp-caption aligncenter">
<img loading="lazy" class="size-full wp-image-23" src="https://demo.com/wp-content/uploads/2021/01/77643-800.jpg" alt="T Natarajan, Zaheer Khan" width="800" height="533" srcset="https://demo.com/wp-content/uploads/2021/01/77643-800.jpg 800w, https://demo.com/wp-content/uploads/2021/01/77643-800-300x200.jpg 300w, https://demo.com/wp-content/uploads/2021/01/77643-800-768x512.jpg 768w, https://demo.com/wp-content/uploads/2021/01/77643-800-720x480.jpg 720w, https://demo.com/wp-content/uploads/2021/01/77643-800-480x320.jpg 480w" sizes="(max-width: 800px) 100vw, 800px" title="demo test">
<figcaption id="caption-attachment-23" class="wp-caption-text">demo text </figcaption></figure>

nodes – Change max length of title in a custom block added via a template file

A drupal 7 website has a custom block added via a template file. The block displays previews of article content type belonging to a certain rubric. It uses the following line to do so:

$block = module_invoke('views', 'block_view', 'given-block-name'); echo render($block('content'));

The articles displayed have their titles truncated at the length of 50 characters. I could not find the number 50 in the files on the hosting, so it should be somewhere in the database, and so somehow changeable via the admin panel. Yet I am having a very hard time finding where to change this number. I have changed the length of the teaser for the article content, but that apparently bears no influence on what is displayed in the given block.

categories – How to print total of some posts custom field value

I was trying to print total of some posts custom field value. In the below code there has an error I am unable to figure out.

I have a couple of posts that have custom field named as Number and their values are (For Example) 25, 70, 15, etc.

Now I want to print total of Custom Field Values for the recent 10 posts that are common from Tag (ID = 5) and Category (ID = 6).

My shortcode is (Totalpost category=”6″ tag=”5″ posts_per_page=”10″)

Anybody can fix this code? I will be thankful to you.

function get_total_post($query_args) {
     'category__and' => $att('category'),
        'tag__in' => $att('tag'),
        'post_status' => 'publish',
        'posts_per_page' => $att('posts_per_page'));  
      $total = 0;
    $posts = get_posts($query_args);
    foreach ($posts as $post) {
        $total += get_field('Number', $post->ID);
    }
    return $total;
}
 function show_total_post() {
    print get_total_post(array());
}
add_shortcode('Totalpost', 'show_total_post');

Custom vibration patterns for notification types

I’d like to set different vibration patters for different notification types.

For example something like: 2 short buzzes for a private Whatsapp message, 2 long ones for a group message, long and short for calendar, etc. I can set custom sounds for each of these in settings, but vibrations can only be turned on or off. Is there some way to add custom vibration functionality to this?

To be clear I’m not looking for contact specific vibrations, though it would be a nice addition.

I’m using a rooted device running lineage 17.1 btw.

amazon web services – I have a AWS cognito JWT token which has custom claim role.How to secure my APIs using springboot based on the roles at backend

I have an application where I get JWT token after login from the cognito pool.The JWt token has user claims.It has a custom claim called ROle.Based on role I want to secure my APIS.For example If I have a user he needs to access only /user APIS and admin needs to access all the APIS.I am using Springboot at backend.So How to secure using Spring Security

Admin Description editor on Custom pages will not accept rel=”***” calls.

Admin Description editor on Custom pages will not accept rel=”***” calls.

Example:
<img class=”youtube” rel=”123456789″ src=”poster.jpg”>

The moment I close the editor, rel=”123456789″ gets removed.

Note: this is only happening in custom pages. On category descriptions it works just fine..
I haven’t checked product pages yet, I’ll update when I cross that bridge.

Cheers.

PS, I’ve experienced other bugs with the editor in general, like the Formats tab / heading text sizes 1 & 2 swapped. Getting two different results by clicking a particular action first time & a second time.

FEATURE REQUEST.
I’d love to see a Bootstrap based admin editor in the future.
The existing is AWESOME but, can’t use the table system do to it’s not responsive.
Just an idea…..:)

 

How To make A Custom Backend Service for Unity Addressables to send bundles to the clients?

There are lots of cloud services on which you can host your addressable bundles, but I need to resolve the bundles on my own backend service (like ASP, .NET Core, etc).

There is a request scheme for Unity request in addressable settings:
enter image description here

Unity generates 3 files for each bundle build:

enter image description here

I use this functions to resolve remote dependencies on bundle downloader scene:

  preloadOp = Addressables.DownloadDependenciesAsync("remote");

I need to to know if I should resolve Unity builtin request to get my bundle properly. What should be returned from my server? do i need a unity editor or build as a service on my server or there are other ways?

magento2 – Override review summary.phtml under custom template

I want to override vendor/magento/module-review/view/frontend/templates/helper/summary_short.phtml under my custom template.

I created the phtml file under app/design/frontend/XXX/XXX/Module_Review/view/frontend/templates/helper/summary_short.phtml but it’s not working.

magento2 – How to modify data of Custom Field before rendering to backend form?

I have created a simple crud module that renders form with a few basic fields and saves data into database. Module is working fine and saving data correctly in the database.

Issue is before rendering form value I want to add a prefix to URL, something like this.

public function getInstagramLink()
{
    return 'https:'.$this->getData('instagram_link');
}

I have added this method within Model but that doesn’t seem to be working

namespace VendorModuleModel;

class Instalocator extends MagentoFrameworkModelAbstractModel
{
    protected function _construct()
    {
        $this->_init(VendorModuleModelResourceModelInstalocator ::class);
    }

    public function getInstagramLink()
    {
        return 'https:'.$this->getData('instagram_link');
    }
}

This doesn’t seem to be working. How to do this correctly to set/get value before/after saving into database?

sharepoint online – Need a help to figure out if there is a way to prevent MS Flow “Custom Responses – Wait for all responses” from sending notification to MS Teams

We have the following “Custom Responses – Wait for all responses” action inside MS Flow:-

enter image description here

Where we are attaching a file to the response email >> now the email which will be sent will contain the attachment which is fine >> but the notification which will be shown inside the MS Teams will not contain the attachment…

so i have the following 2 questions:-

  1. how we can attach the attachment to the notification which will be sent to MS Team?

  2. if point-1 can not be achieved >> then can we prevent the above “Custom Responses – Wait for all responses” from sending notification to MS Teams and only send a normal notification by email?

Thanks