Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter rpbhatt

    (@rpbhatt)

    Hi,

    Category filter issue got solved after the new add-one update. Thanks for that.

    How to send sms through twilio when the noptin sends automated email campaigns from email campaigns? Specifically I need to use ‘Post Digest’ mass mail. I need to send the newsletter link to the subscribers after newsletter getting created. So basically when email will send, I need to send SMS too and newsletter link will be available on SMS body.

    Thread Starter rpbhatt

    (@rpbhatt)

    Suppose at first I don’t have any posts on my site. Now I’ve published 5 new posts. Suppose I’ve 2 categories i.e; Cat1 and Cat2. Now suppose I’ve assigned all 5 posts under Cat1. If I’ve a post digest campaign and I’ve chosen Cat2 as filter (Which I’ve got from ‘Noptin Addons Pack’ plugin) in there so no newsletter should be created and no mail should go to subscribers since I’ve published all my new posts under Cat1. But the problem is, still newsletter is getting created and sending mail to subscribers. And the problem happening only when there is no post available under Cat2 from previously. If there is already 10 posts available from previously and suppose 1 post among them is under Cat2 then it’s working well. So I need solution for that. Problem did not got solved even after updating both the main and add-on plugins.

    • This reply was modified 9 months, 2 weeks ago by rpbhatt.
    Thread Starter rpbhatt

    (@rpbhatt)

    I’m using ‘Noptin Addons Pack’ plugin for category filtering. The problem I’m having that, suppose I’ve selected ‘Cat1’ on the campaign to send the newsletter/mail for ‘Cat1’ category’s post only but if there is no any post available under that category, then sending all new published post on newsletter/mail. Facing no problem if any post is assigned under that category from previously but there will be case when there will be no post assigned under that category and at that case, newsletter/email should not be sent to subscribers. Please provide me solution with a hook. This is for post digest.

    Thread Starter rpbhatt

    (@rpbhatt)

    Hi,

    I’ve main source event pages and have multiple individual instances of recurring events. Broken link of main source event page is showing but broken links of individual instances are not showing which needs to be shown. For example, main source event link is domain/events/test-events/ and one individual instance is domain/events/test-events/?occurrence=2023-12-06 and here broken link of domain/events/test-events/ is showing but broken link of domain/events/test-events/?occurrence=2023-12-06 is not showing. Please specific what code I need to change to fix this.

    Thread Starter rpbhatt

    (@rpbhatt)

    Broken link checker plugin does not list a link if it is on multiple pages.

    If there is the same broken link on 10 pages (or any cpt), then it should be listed 10 times but it’s listing 1 time. I need to fix this.

    I’ve total 6 broken links and 4 among them are same links so only 3 are showing ie; among 4 same links, showing 1 only.

    I did change on ‘link-query.php’ as per below code . By doing this, showing that 6 links are there but ‘Link Text’ and source are not correct.

    
    function get_links( $params = null ) {
    global $wpdb; /** @var wpdb $wpdb */
    
        if ( ! is_array( $params ) ) {
            $params = array();
        }
    
        $defaults = array(
            'offset'               => 0,
            'max_results'          => 0,
            'load_instances'       => false,
            'load_containers'      => false,
            'load_wrapped_objects' => false,
            'count_only'           => false,
            'purpose'              => '',
            'include_invalid'      => false,
            'orderby'              => '',
            'order'                => '',
        );
    
        $params = array_merge( $defaults, $params );
    
        //Compile the search-related params into search expressions usable in a WHERE clause
        $criteria = $this->compile_search_params( $params );
    
        //Build the WHERE clause
        if ( ! empty( $criteria['where_exprs'] ) ) {
            $where_expr = "\t( " . implode( " ) AND\n\t( ", $criteria['where_exprs'] ) . ' ) ';
        } else {
            $where_expr = '1';
        }
    
        //Join the blc_instances table if it's required to perform the search.
        $joins = '';
        if ( $criteria['join_instances'] ) {
            $joins = "JOIN {$wpdb->prefix}blc_instances AS instances ON links.link_id = instances.link_id";
        }
    
        //Optional sorting
        if ( ! empty( $criteria['order_exprs'] ) ) {
            $order_clause = 'ORDER BY ' . implode( ', ', $criteria['order_exprs'] );
        } else {
            $order_clause = '';
        }
    
        if ( $params['count_only'] ) {
            // Only get the number of matching links.
            $q = "
                SELECT COUNT(links.link_id)
                FROM
                    {$wpdb->prefix}blc_links AS links
                    $joins
                WHERE
                    $where_expr";
    
            return $wpdb->get_var( $q ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
        }
    
        // Select the required links.
        $q = "SELECT
                 links.*
    
              FROM
                 {$wpdb->prefix}blc_links AS links
                 $joins
    
              WHERE
                 $where_expr
    
               {$order_clause}"; 
    
        // Add the LIMIT clause
        if ( $params['max_results'] || $params['offset'] ) {
            $q .= sprintf( "\nLIMIT %d, %d", $params['offset'], $params['max_results'] );
        }
    
        $results = $wpdb->get_results( $q, ARRAY_A ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
        if ( empty( $results ) ) {
            return array();
        }
    
        // Create the link objects
        $links = array();
    
        foreach ( $results as $result ) {
            $link = new blcLink( $result );
            $links[] = $link;
        }
    
        $purpose = $params['purpose'];
        /*
        Preload instances if :
            * It has been requested via the 'load_instances' argument.
            * The links are going to be displayed or edited, which involves instances.
        */
        $load_instances = $params['load_instances'] || in_array( $purpose, array( BLC_FOR_DISPLAY, BLC_FOR_EDITING ) );
    
        if ( $load_instances ) {
            $link_ids      = array_keys( $links );
            $all_instances = blc_get_instances( $link_ids, $purpose, $params['load_containers'], $params['load_wrapped_objects'] );
            //Assign each batch of instances to the right link
            foreach ( $all_instances as $link_id => $instances ) {
                foreach ( $instances as $instance ) { /** @var blcLinkInstance $instance */
                    $instance->_link = $links[ $link_id ];
                }
                $links[ $link_id ]->_instances = $instances;
            }
        }
    
        return $links;
    }

    Please specify if I need to change anything more on above code on an any other code of any files. Please specify what I need to change to fix this. I need to change on the older version of the plugin as I can’t update the plugin and can’t use cloud as I’ve already changed a lot on the older version of the plugin.

    Thread Starter rpbhatt

    (@rpbhatt)

    Can you please guide me how can I achieve this without updating the plugin. Please tell me which file and what code I need to change for this. My version is 1.11.21.

    Thread Starter rpbhatt

    (@rpbhatt)

    I’m using version 1.11.21

    Thread Starter rpbhatt

    (@rpbhatt)

    Can you please tell me what changes to be made to achieve this (All instances of the same broken link) on the old plugin since I can’t update the plugin (As I did some changes on the plugin).

    Thread Starter rpbhatt

    (@rpbhatt)

    Problem is when there are same broken links on multiple pages/posts/cpt then only 1 broken link is showing but I need to show then all. If there is total 10 same broken links, then I need to show them all instead of showing just 1.

    Thread Starter rpbhatt

    (@rpbhatt)

    I’ve a events post type and have some events under that. If anything broken in there on those events, still not showing as broken link. Same case is happeing for other of my custom post types too. Although I’ve enabled my post types from ‘Look for links in’ settings so that those can be scanned.

    Thread Starter rpbhatt

    (@rpbhatt)

    I’ve a page open of broken links. After fixing the link, when I’m clicking on ‘Recheck’, link should not be there anymore. It’s showing 200 ok or warning that link is invalid or any other warning and link is removing from there after making a reload. But I want to remove the link immediately after clicking on ‘Recheck’ if the link is fixed.

    Thread Starter rpbhatt

    (@rpbhatt)

    I’ve deactivated one of my plugin and got broken link due to that. After activating the plugin again, broken link should be fixed immediately but it’s not getting fixed immediately. It’s getting fixed and removing from broken link almost after 10-15 mins. Please provide me solution for that , it’s urgent.

    Thread Starter rpbhatt

    (@rpbhatt)

    I have some queries:-

    If the scan and recheck (Which is available on WP Dashboard -> Settings -> Link Checker -> Advanced tab) does by crawling each page or database search?

    please tell me the whole process how the scan and recheck process is working and please provide me the files name where the scanning and rechecking is happening.

    If the recheck can be done automatically schedule means can get updated broken/unbroken links? if so then from where i can set the time?

    Also if it picks broken/unbroken links from trashed item post/pages/custom post type too?

    Basically I’m wanting to understand the logic of how it operates.

    Thread Starter rpbhatt

    (@rpbhatt)

    How can add that ‘Re-check all pages’ button on any other place with same functionality of ‘Re-check all pages’ button?

Viewing 14 replies - 1 through 14 (of 14 total)