Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter vegroland

    (@vegroland)

    Hi @cena,

    thank you!
    I have been created a ticket there with the right account.

    Best regards

    Hello Cena,

    I have the same problem.
    I know that you wrote that it’s out of scope of support, but maybe it should be added to the default code as an option, because when you have more than one course, you cannot use the same title. :-/

    E.g. Lession 1, Lesson 2 etc.

    Hope that it will be available. ??

    Thank you!

    Thread Starter vegroland

    (@vegroland)

    Hello,

    of course.
    “Review Reminder” tab: https://ibb.co/kKYDLmj

    And if manual reminder is enabled and I wanted to send it manually, I get this err message: https://ibb.co/DLpdVz4

    Thread Starter vegroland

    (@vegroland)

    Hello,

    if I know it good, no. After an order doesn’t appear it in products.
    But every ride is showed as an order and inside this order the “product” is called: “Chauffeur service (duration)” (the page is in hungarian so you see the translated text: “Transzfer szolgáltatás (id?tartam)” )

    Orders page: https://ibb.co/ZmWFHg1
    An order: https://ibb.co/q9KFkJd

    User can view everything in the My account page as a normal order:
    https://ibb.co/2NvfxgY
    https://ibb.co/ZdNPGpC

    Thank you!

    Thread Starter vegroland

    (@vegroland)

    @rozroz, yes.

    Altough the source and local code is still working without affect on the time, with tz=no it works.

    Thank you for your help!

    Thread Starter vegroland

    (@vegroland)

    @rozroz, yes and I really appreciate your help!!

    The only thing that is not clear: with the same structure how can work one and another one not?
    I’ve tried various version in the last few day and I dont’t know it.
    (I’m using the same URL format for every feed in the hook)

    I’m trying to use your plugin to build my page but I’m confused.

    Thread Starter vegroland

    (@vegroland)

    @rozroz, I’ve tried it.
    Partially works only. 5 feed source name appear good.
    Europa Press, La Vanguardia, El Periódico and RTVE don’t work, only showing blank area instead of the name.
    I’ve modified theirs url in several ways but without success.
    I really don’t know what could be the problem.

    This not depends of the feed’s content, no? If the url is declared it should be appear.

    Thread Starter vegroland

    (@vegroland)

    @rozroz, yes but still working bad. So I still waiting for the working solution.

    Everything what you asked for are above, but I made a new test site with test feed category.
    Here are the details:

    Full shortcode:
    [feedzy-rss feeds="test" max="12" offset="0" feed_title="no" sort="date_desc" target="_blank" title="140" meta="time, tz=no, author" multiple_meta="" summary="yes" summarylength="140" thumb="yes" default="https://buscarnoticias.es/wp-content/uploads/2020/03/buscarnoticias_favicon.jpg" size="80" ]

    Feed category name: Test

    Feed category URLs:

    https://www.europapress.es/rss/rss.aspx,
    https://ep00.epimg.net/rss/tags/ultimas_noticias.xml,
    https://estaticos.elmundo.es/elmundo/rss/portada.xml,
    https://www.lavanguardia.com/mvc/feed/rss/home,
    https://api2.rtve.es/rss/temas_noticias.xml,
    https://www.abc.es/rss/feeds/abc_ultima.xml,
    https://www.elperiodico.com/es/rss/rss_portada.xml,
    https://e00-expansion.uecdn.es/rss/portada.xml

    The filter I’m using:

    add_filter( 'feedzy_author_name', 'feedzy_author_name', 10, 3 );
    function feedzy_author_name( $authorName, $feedURL, $item ) {
    	$source		= '';
    	
    	if ( is_array( $feedURL ) ) {
    		// if feedURL is multiple urls.
    		foreach ( $feedURL as $feed ) {
    			if ( strpos( strtolower( $feed ), 'https://www.lavanguardia.com/mvc/feed/rss/home' ) !== false ) {
    				$source	= 'La Vanguardia';
    			} elseif ( strpos( strtolower( $feed ), 'https://ep00.epimg.net/rss/tags/ultimas_noticias.xml' ) !== false ) {
    				$source	= 'El País';
    			} elseif ( strpos( strtolower( $feed ), 'https://estaticos.elmundo.es/elmundo/rss/portada.xml' ) !== false ) {
    				$source	= 'El Mundo';
    			} elseif ( strpos( strtolower( $feed ), 'https://api2.rtve.es/rss/temas_noticias.xml' ) !== false ) {
    				$source	= 'RTVE.es';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.europapress.es/rss/rss.aspx' ) !== false ) {
    				$source	= 'Europa Press';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.abc.es/rss/feeds/abc_ultima.xml' ) !== false ) {
    				$source	= 'ABC';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.elperiodico.com/es/rss/rss_portada.xml' ) !== false ) {
    				$source	= 'El Periódico';
    			} elseif ( strpos( strtolower( $feed ), 'https://e00-expansion.uecdn.es/rss/portada.xml' ) !== false ) {
    				$source	= 'Expansión';
    			}
    		}
    	} else {
    		// if feedURL is a single url.
    	}
    	
    	return $source;
    }

    I don’t know if it counts or not, but here is the entire content of the funtions.php and the list of filters:

    <?php
    add_action( 'wp_enqueue_scripts', 'magbook_enqueue_styles' );
    function magbook_enqueue_styles() {
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    /*FEEDZY*/
    
    /*Decrease the cache to the minimum value supported viz. 1 minute*/
    add_filter( 'feedzy_get_short_code_attributes_filter', 'feedzy_get_short_code_attributes_filter', 99, 1 );
    function feedzy_get_short_code_attributes_filter( $atts ) {
    $atts['refresh'] = '1_mins';
    return $atts;
    }
    /*Display the name of the website as the source of the feeds*/
    
    add_filter( 'feedzy_author_name', 'feedzy_author_name', 10, 3 );
    function feedzy_author_name( $authorName, $feedURL, $item ) {
    	$source		= '';
    	
    	if ( is_array( $feedURL ) ) {
    		// if feedURL is multiple urls.
    		foreach ( $feedURL as $feed ) {
    			if ( strpos( strtolower( $feed ), 'https://www.lavanguardia.com/mvc/feed/rss/home' ) !== false ) {
    				$source	= 'La Vanguardia';
    			} elseif ( strpos( strtolower( $feed ), 'https://ep00.epimg.net/rss/tags/ultimas_noticias.xml' ) !== false ) {
    				$source	= 'El País';
    			} elseif ( strpos( strtolower( $feed ), 'https://estaticos.elmundo.es/elmundo/rss/portada.xml' ) !== false ) {
    				$source	= 'El Mundo';
    			} elseif ( strpos( strtolower( $feed ), 'https://api2.rtve.es/rss/temas_noticias.xml' ) !== false ) {
    				$source	= 'RTVE.es';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.europapress.es/rss/rss.aspx' ) !== false ) {
    				$source	= 'Europa Press';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.abc.es/rss/feeds/abc_ultima.xml' ) !== false ) {
    				$source	= 'ABC';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.elperiodico.com/es/rss/rss_portada.xml' ) !== false ) {
    				$source	= 'El Periódico';
    			} elseif ( strpos( strtolower( $feed ), 'https://e00-expansion.uecdn.es/rss/portada.xml' ) !== false ) {
    				$source	= 'Expansión';
    			}
    		}
    	} else {
    		// if feedURL is a single url.
    	}
    	
    	return $source;
    }/*Override and force to show default image when it's blank*/
    add_filter('feedzy_thumb_output', 'feedzy_thumb_output', 10, 4 );
    		function feedzy_thumb_output($contentThumb, $feedURL, $sizes, $item){
    			if ( strpos( $contentThumb, 'https://www.elmundo.es/rss/index.xml' ) !== false ) {
    				$contentThumb = '<img src="https://buscarnoticias.es/wp-content/uploads/2020/03/buscarnoticias_favicon.jpg">';
    			}
    			return $contentThumb;
    		}
    ?>

    Screenshot of the page: https://ibb.co/Dg2Zyz3

    URL of the page: https://buscarnoticias.es/test-feedzy/

    Thank you!

    Thread Starter vegroland

    (@vegroland)

    Hello @rozroz, any oher idea?

    Thread Starter vegroland

    (@vegroland)

    @rozroz, I don’t undertand it, the category’s feed urls are ok…

    This is the capture of the categories and I use the slug, as link: https://ibb.co/D9qMxBh

    As you can see all url is exactly as the slug.

    So, if I forget it, and use the original feed url in every condition, it would be this:

    add_filter( 'feedzy_author_name', 'feedzy_author_name', 10, 3 );
    function feedzy_author_name( $authorName, $feedURL, $item ) {
    	$source		= '';
    	
    	if ( is_array( $feedURL ) ) {
    		// if feedURL is multiple urls.
    		foreach ( $feedURL as $feed ) {
    			if ( strpos( strtolower( $feed ), 'https://www.lavanguardia.com/mvc/feed/rss/home' ) !== false ) {
    				$source	= 'La Vanguardia';
    			} elseif ( strpos( strtolower( $feed ), 'https://ep00.epimg.net/rss/tags/ultimas_noticias.xml' ) !== false ) {
    				$source	= 'El País';
    			} elseif ( strpos( strtolower( $feed ), 'https://estaticos.elmundo.es/elmundo/rss/portada.xml' ) !== false ) {
    				$source	= 'El Mundo';
    			} elseif ( strpos( strtolower( $feed ), 'https://api2.rtve.es/rss/temas_noticias.xml' ) !== false ) {
    				$source	= 'RTVE.es';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.europapress.es/rss/rss.aspx' ) !== false ) {
    				$source	= 'Europa Press';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.abc.es/rss/feeds/abc_ultima.xml' ) !== false ) {
    				$source	= 'ABC';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.elperiodico.com/es/rss/rss_portada.xml' ) !== false ) {
    				$source	= 'El Periódico';
    			} elseif ( strpos( strtolower( $feed ), 'https://www.la-razon.com/rss/latest/?contentType=NWS' ) !== false ) {
    				$source	= 'La Razón';
    			} elseif ( strpos( strtolower( $feed ), 'https://e00-expansion.uecdn.es/rss/portada.xml' ) !== false ) {
    				$source	= 'Expansión';
    			}
    		}
    	} else {
    		// if feedURL is a single url.
    	}
    	
    	return $source;
    }

    Now this is used, but it’s the same. Doesn’t work well.

    Thread Starter vegroland

    (@vegroland)

    @rozroz, no, unfortunately it doesn’t work. :-/
    There are showing only one feed source name (the last one in the code: Expansión) or in a lot of feeds nothing at all.

    Thread Starter vegroland

    (@vegroland)

    @rozroz, yes, now it works good!

    Thank you very much for your useful support!

    Best regards

    Thread Starter vegroland

    (@vegroland)

    @rozroz, thank you!

    I have copied your code in my function.php but now the image’s url is showing in the image area.
    Screenshot: https://ibb.co/0jydxck

    Thread Starter vegroland

    (@vegroland)

    @rozroz ,

    of course, without any change.
    The only what I made (to try something after seeing that it doesn’t appear 100% good) is that I changed the feed url to the category’s feed url, where the same feed url is, one by one.

    Both result is the same. It shows up, but only one source name from the whole list.

    This is the entire code that I’m using in the child theme’s function.php:

    <?php
    add_action( 'wp_enqueue_scripts', 'magbook_enqueue_styles' );
    function magbook_enqueue_styles() {
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    /*FEEDZY*/
    
    /*Decrease the cache to the minimum value supported viz. 1 minute*/
    add_filter( 'feedzy_get_short_code_attributes_filter', 'feedzy_get_short_code_attributes_filter', 99, 1 );
    function feedzy_get_short_code_attributes_filter( $atts ) {
    $atts['refresh'] = '1_mins';
    return $atts;
    }
    
    /*Display the name of the website as the source of the feeds*/
    add_filter( 'feedzy_author_name', 'feedzy_author_name', 10, 3 );
    function feedzy_author_name( $authorName, $feedURL, $item ) {
    	$source		= '';
    	
    	if ( is_array( $feedURL ) ) {
    		// if feedURL is multiple urls.
    		foreach ( $feedURL as $feed ) {
    			if ( strpos( strtolower( $feed ), 'la-vanguardia' ) !== false ) {
    				$source	= 'La Vanguardia';
    			}
    			if ( strpos( strtolower( $feed ), 'el-pais' ) !== false ) {
    				$source	= 'El País';
    			}
    			if ( strpos( strtolower( $feed ), 'el-mundo' ) !== false ) {
    				$source	= 'El Mundo';
    			}
    			 if ( strpos( strtolower( $feed ), 'rtve' ) !== false ) {
    				$source	= 'RTVE.es';
    			}
    			 if ( strpos( strtolower( $feed ), 'europapress' ) !== false ) {
    				$source	= 'Europa Press';
    			}
    			 if ( strpos( strtolower( $feed ), 'abc-es' ) !== false ) {
    				$source	= 'ABC';
    			}
    			 if ( strpos( strtolower( $feed ), 'el-periodico' ) !== false ) {
    				$source	= 'El Periódico';
    			}
    			 if ( strpos( strtolower( $feed ), 'la-razon' ) !== false ) {
    				$source	= 'La Razón';
    			}
    			 if ( strpos( strtolower( $feed ), 'expansion' ) !== false ) {
    				$source	= 'Expansión';
    			}
    		}
    	} else {
    		// if feedURL is a single url.
    	}
    	
    	return $source;
    }
    ?>

    This is the shortcode that is used:
    [feedzy-rss feeds="ultimas-noticias" max="12" offset="0" feed_title="no" sort="date_desc" target="_blank" title="140" meta="time, tz=no, author" multiple_meta="" summary="yes" summarylength="140" thumb="yes" default="https://buscarnoticias.es/wp-content/uploads/2020/03/buscarnoticias_favicon.jpg" size="80" ]

    And these are feed urls that are used int the category “ultimas-noticias”:

    https://www.europapress.es/rss/rss.aspx,
    https://ep00.epimg.net/rss/tags/ultimas_noticias.xml,
    https://estaticos.elmundo.es/elmundo/rss/portada.xml,
    https://www.lavanguardia.com/mvc/feed/rss/home,
    https://api2.rtve.es/rss/temas_noticias.xml,
    https://www.abc.es/rss/feeds/abc_ultima.xml,
    https://www.elperiodico.com/es/rss/rss_portada.xml,
    https://www.la-razon.com/rss/latest/?contentType=NWS,
    https://e00-expansion.uecdn.es/rss/portada.xml,
    Thread Starter vegroland

    (@vegroland)

    Thank you very much @rozroz !

    Yes, now it appears.
    But unfortunately now the source is the same by every feed item.

    What mistake I did?

Viewing 15 replies - 1 through 15 (of 24 total)