Jump to content

Alejandro

Administrators
  • Content Count

    33069
  • Joined

  • Last visited

  • Days Won

    342

Alejandro last won the day on May 22

Alejandro had the most liked content!

About Alejandro

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Not at this time. Let me know where you set this up in EasySocial and I will add it as a task for a future update. If you want to attempt it yourself, now you have the file you would need to change.
  2. Thanks for letting me know about this issue. I will fix it in the next update. You can make the change here: /components/com_jreviews_addons/everywhere/cms_compat/joomla/models/everywhere/everywhere_com_easysocial.php var $default_thumb = 'media/com_easysocial/defaults/avatars/users/large.png'; to: var $default_thumb = 'media/com_easysocial/defaults/avatars/user/large.png'; You'll see there's just a very subtle difference 😉
  3. Alejandro

    Schema - Structured Data Issues

    To suppress the author for types that don't use it you would need to disable the setting in the configuration to hide it. The logic is that there's no need to have a listing owner appear on a product page. JReviews has it's own logic for schema because it doesn't use LD+JSON on detail pages, it uses microdata and that allows you to easily include custom fields as schema properties. Searching the docs for "schema" leads you to the How to add Structured data for rich snippets article.
  4. It turns out there was an issue with the name of the filter_functions.php file and it works after correcting it.
  5. Hi, You can use an OR statement like below, or use the PHP in_array function to add multiple ids to an array. You can search for that on the PHP docs. <?php if ( $listing['User']['user_id'] == 100 || $listing['User']['user_id'] == 200 ): ?>
  6. Alejandro

    error: The page you are looking for can't be found

    Hi, Please open that file and replace line 92 with this: ( !isset($addressFields['country']) || ( isset($addressFields['country']) && !S2Array::get($listing,'Field.pairs.'.$addressFields['country']) ) ) Thanks for letting me know about this issue. I will fix it in the next update.
  7. Alejandro

    Schema - Structured Data Issues

    I forgot to mention that datePublished and dateModified will only be used for Article, NewsArticle, BlogPosting types. Whereas before, datePublished was only being used for Article. Not all types accept these properties. In some cases you can use datePublished, like for Books, but here you should use a custom field and mark that up with yourself because you don't want the listing creation being used in this case.
  8. Alejandro

    Schema - Structured Data Issues

    Thanks for pointing these out. In the next update the dateModified property will be used if a listing has been updated and the modified date will be shown instead of the created date, per Google's recommendations. This of course with the corresponding markup for both datePublished and dateModified. I've also fixed the issue with the ratings below 1 by including the worstRating property instead of rounding up the ratingValue. JReviews already outs the bestRating property when the rating scale is different than 5.
  9. Alejandro

    Default Cover Images

    You got it! Coming out in the next update. You will be able to set a global cover and you can also have a different default cover per listing type.
  10. You used the correct path /templates/jreviews_overrides/filters/filter_functions.php I tested the code before posting it. Maybe try it once more and if it still doesn't work submit a ticket and I can take a look.
  11. Alejandro

    [SOLVED] Description and Summary between custom fields!

    While having settings is useful, having too many of them just creates chaos. It's also not possible to have every customization option documented, but there is enough documentation, examples and forum posts to get ideas on what you can do to change the site according to your specific needs. The code in theme files is also typically well documented or easy to read. There are also several built-in tools you can use for theme customizations. 1. Easily find which theme file to change with theme debug 2. Override themes without changing core files with theme overrides 3. Customizing the listing detail page If you open the detail page theme file you'll find the code for the summary/description that you can remove. <?php /* SUMMARY - DESCRIPTION */ ?> <div class="jrListingFulltext <?php echo $char_limit > 0 ? 'jr-show-more' : ''; ?>" <?php echo $char_limit > 0 ? 'data-characters="'. $char_limit .'"' : ''; ?> itemprop="description"> <?php echo $listing['Listing']['text'] !== strip_tags($listing['Listing']['text']) ? $listing['Listing']['text'] : nl2br($listing['Listing']['text']);?> </div> You could potentially also use a developer filter. More specifically the Post_Get_Listing_Detailpage_Query. These are for development purposes and so not every possible example will be listed there, but there's one already for removing links that you can easily adjust. The idea would be to move the summary/description to a different place so the theme cannot see it, and so it doesn't output it, and then you can read it in your custom field using the example in my original reply. It would work like this. <?php function hide_detail_page_summary_desc($listing, $params) { // Uncomment line below to dump filter arguments to the screen // dd($listing, $params); $listing['Listing']['text_copy'] = $listing['Listing']['text']; $listing['Listing']['text'] = ''; return $listing; } Clickfwd\Hook\Filter::add('post_get_listing_detailpage_query', 'hide_detail_page_summary_desc', 10); Make sure you read the instructions for using developer filters from the beginning of the article. With that very little code you can hide the summary/description. Then in your banner custom field php format, instead of using the 'text' key, use 'text_copy'. return $entry['Listing']['text_copy'] !== strip_tags($entry['Listing']['text_copy']) ? $entry['Listing']['text_copy'] : nl2br($entry['Listing']['text_copy']);
  12. Alejandro

    Related articles for Listings

    Quite frankly it would simply be a lot easier if you create an "Articles" listing type in JReviews and include the category in your existing setup. Then you can take advantage of all of the existing functionality for listings, including related listing features, widgets, and so on.
  13. Alejandro

    Can I pls have query for

    This is what the key looks like: KEY `listing` (`pid`,`mode`,`published`,`author`,`created`), So you can create it with: ALTER TABLE #__jreviews_comments ADD INDEX `listing` (`pid`, `mode`, `published`, `author`, `created`) Replace #__ with your table prefix.
  14. Hi Where's the condition for the special author id? Now it will run for all listings submitted by a registered user. Try to add your condition to the if statement. <?php if ( $listing['User']['user_id'] == 100 ): ?>
  15. Alejandro

    Difference between MapsPro and GeoMaps

    Hi, 1. The demo sites are both using MapsPro now. You can read more about the Add-on in the release announcement 2. Yes 3. You can save 20% now if you purchase during the current sale. There isn't a discount for GeoMaps users and you only really need MapsPro if you are paying a monthly bill for Google Maps. In that case the savings you get from not paying Google will quickly pay for the Add-on.
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.