Jump to content

sobrenome

Members
  • 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. 16 hours ago, bfarber said:

    You can't. Imagine that you have a string like "<b>some text here</b>" and the truncating would fall in between the HTML tags. If you allowed raw HTML to be retained, you would have an opening bold tag but no closing tag, resulting in invalid HTML that would make the entire rest of your page bold.

    You a right.

    I am using the code below and did what I needed:

    $record->truncated(TRUE, 250 );

    Thanks!

    Agt GIF by America's Got Talent

  2. 14 hours ago, Rikki said:

    If you're working in templates there's also a {truncate} plugin that'll do it for you. Just do {truncate="$content" length="200"}.

    How to use raw with truncate?

    I am using:

    {$row->_content|raw}

    And I am trying without success:

    {truncate="$row->_content" length="50"}

    Shows html code.

    {truncate="$row->_content|raw" length="50"}

    Does not work.

    {truncate="$row->_content" length="50"|raw}

    Does not work either.

  3. Yes, Gallery should be more explored by IPS. It is an app with great potential that is forgotten due the lack of links to other apps and lack of custom fields, for exemple.

    Is it possible to extract the location exif metadata of a photo and show a google place with Gallery current features?

  4. 3 hours ago, bfarber said:

    There's a truncated() method for content items that can be used.

    I would like to truncate the content field of pages records to show only 3 lines of it in the records list page. JavaScript works nice, but the full content of several database records is loaded to be removed afterwards.

    How could I use the truncated() for this approach? Is there any guidelines about it? 

  5. Gallery is one app that I would like to be more used on my community.

    I think that the issue that makes Gallery so underused is that it is not really connected to other IPS apps.

    Gallery and albums could be an option to hold images from Forum's posts, from Page's posts, from Products in Commerce, from users Profile, and so on.

    Simple features could be added to link Gallery with the community, for example:

    • add a button in forum's new topic or new reply to give the user the opportunity to create an album or to add images or videos to an existent album and embed it to the new topic or replay;
    • add a custom field type gallery in Pages to give the author  the opportunity to create an album or to add images or videos to an existent album and embed it to the new content post;
    • add a custom field type gallery in Commerce to give the seller the opportunity to create an album or to add images or videos to an existent album and embed it to the new product post;
    • add a button in user profiles to give the user the opportunity to create an album or to add images or videos to an existent album and embed it to its profile.

    I suppose that a few coding lines by IPS could make Gallery much more useful.

    There is an app to link Gallery to Pages, but it's not working anymore (https://invisioncommunity.com/files/file/7273-album-link-field/) and an app based on BBcode, which will be deprecated (https://invisioncommunity.com/files/file/7365-bim-gallery-in-post/).

    Hope IPS makes Gallery more integrated to the whole community and takes it to the place that it really deserves in the framework.

    Maybe in 4.5.1?

    Good work guys!

     

     

  6. Will it be update to 4.5? This plugin functionality is so amazing that should be built in. Gallery is not used as much in IPS because it’s isolated. It should be used to held albums from Pages posts or in users profiles.

    Hope this plugin gets the attention that deserves.

  7. On 7/9/2019 at 10:46 AM, Stuart Silvester said:

    Elastic Search 7 isn't supported at this time, you will need to use version 5 or 6.

    Is it possible to use elastic search 2.3 (this is the only version available on AWS for t2.micro instance)?

×
×
  • Create New...