Jump to content

sobrenome

Clients
  • Posts

    2,525
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by sobrenome

  1. IPS 4.6.8 added AggregateRating Schema to record pages.

    I have been using my custom schema on templates, like this one:

    {{\IPS\Output::i()->jsonLd['article']['about'] = array('@type' => 'PhysicalActivity', 'category' => 'StrengthTraining', 'image' => array('@type' => 'ImageObject', 'url' => (string) \IPS\File::get('cms_Records', $record->field_107)->url, 'height' => '800', 'width' => '1200'));}}
    

    Will the update impact on my Pages templates?

  2. On 10/1/2021 at 1:36 PM, Andy Millne said:

    Can you please provide the full json-ld snippets that are failing validation and a link to the failing page? I'm not seeing any issues with how aggregateRating is implemented

    Hello @Andy Millne!

    I don't know if I am wrong, but I have realized that when review is on for Pages database, there  is no $record->rating_hits, only $record->record_reviews as long as the rating stars will be based on the reviews, so the rating hits are the same as the record reviews. Is that right?

    So I have used record reviews for ratingCount and reviewCount.

    {{\IPS\Output::i()->jsonLd['article'] = array('@context' => 'http://schema.org/', '@type' => 'Product', 'name' => $record->_title, 'image' => 'https://cdn.mydomain.com/ ' . $record->record_image, 'brand' => array('@type' => 'Thing', 'name' => $marca['nome']), 'aggregateRating' => array('@type' => 'AggregateRating', 'ratingValue' => $englishrating, 'ratingCount' => $record->record_reviews, 'reviewCount' => $record->record_reviews), 'offers' => array('@type' => 'AggregateOffer', 'lowPrice' => $lowPrice, 'highPrice' => $highPrice, 'offerCount' => $results_number, 'priceCurrency' => 'BRL', 'availability' => $availability));}}

     

  3. On 3/1/2021 at 4:15 PM, desti said:
    		/* Are ratings allowed? */
    		if(0) // AND !$topic->isArchived() AND $topic->container()->forum_allow_rating AND $topic->averageRating() )
    		{
    			\IPS\Output::i()->jsonLd['topic']['aggregateRating'] = array(
    				'@type'			=> 'AggregateRating',
    				'ratingValue'	=> $topic->averageRating(),
    				'ratingCount'	=> $topic->numberOfRatings(),
    			);
    		}

     

    How to get the number o ratings and the number of reviews on Pages?

    $record->numberOfRatings()

    or

    $record->rating_hits

    are not working.

  4. On 9/14/2021 at 1:56 PM, marklcfc said:

    I've been using 10.3 for the last few years and after reading that some improvements for InnoDB were in 10.5 was wondering whether I should upgrade to 10.5 or 10.6. What is suggested?

    One thing I noticed in the changes was this though

     

    I am also interested in this upgrade from 10.4 to 10.5. Waiting for replies.

  5. And the error is not on php 8 only. It occurs on php 7, but php 8 is less tolerant to errors as I read.

    When I used Mail Bouncer on IPS 4.6 and php 7, my community was very slow for logged users.

    On 9/1/2021 at 6:14 PM, sobrenome said:

    My community was very slow for logged users. Slow to post and slow to browse.

    I have disabled MAIL BOUNCER and enabled it again. The issue was gone. It would be nice to take a look at it. Thanks.

    Here was the report.

  6. Hello, I have updated to php 8 and I am getting this error:

    [Wed Sep 08 11:03:20.893872 2021] [proxy_fcgi:error] [pid 1651:tid 281472812437904] [client 10.0.1.102:53118] AH01071: Got error 'PHP message: PHP Fatal error:  Declaration of IPS\\bouncer_hook_Email::send($to, $cc = [], $bcc = [], $fromEmail = null, $fromName = null, $additionalHeaders = [], $autoSubmitted = true) must be compatible with IPS\\_Email::send($to, $cc = [], $bcc = [], $fromEmail = null, $fromName = null, $additionalHeaders = [], $autoSubmitted = true, $updateAds = true) in /var/www/html/init.php(902) : eval()'d code on line 83', referer: https://mydomian.com/admin/?app=core&module=system&controller=login&error=&ref=

     

  7. My community suffered some MySQL server lock timeout caused by these queries:

    /*ips4::user::IPS\_Email::send:117*/ UPDATE `core_mail_error_logs` core_mail_error_logs SET `mlog_notification_sent`=1 

    It had 9268 TRX_ROWS_LOCKED. 

    My community was very slow for logged users. Slow to post and slow to browse.

    I have disabled MAIL BOUNCER and enabled it again. The issue was gone. It would be nice to take a look at it. Thanks.

×
×
  • Create New...