Jump to content

Nathan Explosion

Clients
  • Posts

    6,996
  • Joined

  • Days Won

    128

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Projects

Forums

Events

Store

Gallery

Posts posted by Nathan Explosion

    1. Go to Pages -> (Page Management) Blocks in your ACP
    2. Click 'Create New Block'
    3. Select 'Page Builder: Upload Images'
    4. Click 'Next'
    5. Fill out whatever you want on the 'Details' tab (only really needs a name)
    6. On the Content tab, do the following:
      •  Change the 'Use this template as-is' entry to 'Use as a base for a custom template'
      • Change this:
      • <a href="{$urls[0]}">
      • To this:
      • <a target="_blank" href="{$urls[0]}">
    7. Click 'Save'
    8. On the front-end, drag that block in place and fill your boots.
  1. 17 minutes ago, Christian Meixner said:

    So does this mean that there is no chance to modify the video player template with tools provided by the platform itself?

    Correct - to affect a video that has been added by a user clicking the uploaded file to add it to the editor, you would need to modify a JS file (and even then, it's not a file but a row in the database...and you don't have access to that, and it would be updated on every upgrade anyway)

    There are other ways to apply it but it requires a plugin/application to do it. I've got it as a feature in https://www.ynwa.tv/files/file/38-ne-html5-audiovideo-player/ but that would be hitting a small nail with a very large hammer if your requirement is simply to add that controlslist.

  2. 3 hours ago, Nelion Audio said:

    CSS

    Yes you can.

    Assuming you are talking about this:

    Could contain: Page, Text, File

     

    body[data-pageapp="cms"][data-pagecontroller="page"] div.ipsPhotoPanel time{
        display:none;
    }

    If you want to do it only on a specific page:

    body[data-pageapp="cms"][data-pagecontroller="page"][data-pagename="articles.html"] div.ipsPhotoPanel time{
        display:none;
    }

     

    3 hours ago, Nelion Audio said:

    Templates to affect only database entries

    Pages has its own templates, outside of the theme, where you can simply remove the following line:

    <li>{datetime="$record->mapped( 'date' )"}</li>

    ...from the indicated template:

    Could contain: Page, Text

     

    3 hours ago, Nelion Audio said:

    I want only database records to show the current time and date,

    To do this, you would have to edit the indicated template and change:

    <li>{datetime="$record->mapped( 'date' )"}</li>

    to:

    {{$now = time();}}
    <li>{datetime="$now"}</li>

     

  3. Right click the element that you are trying to mimic, inspect it  and take a look at the code:

    <a href="https://invisioncommunity.com/messenger/compose/?to=610431" data-ipsdialog="" data-ipsdialog-title="Compose New" data-ipsdialog-remotesubmit="" data-ipsdialog-flashmessage="Message Sent." data-ipsdialog-forcereload="" class="ipsFlex-flex:11 ipsButton ipsButton_light ipsButton_verySmall">Message</a>

    There you go - that's your code; make necessary modifications add it via the Source button in the editor, or create a custom button in the editor to allow you to add it with the click of a button.

  4. Yup...ips.editor.insertable.js

    Could contain: Page, Text

    That is used when the user chooses to click the video to add it.

    The template is used when the user doesn't add the video themselves - screenshot below is the code of a submitted post, where 2 videos were attached, but only one was clicked on to add it and the other was added via post submission:

     

    Could contain: Text

     

     

     

  5. 2 hours ago, Daniel F said:

    The template is attached to the post, so if you make any changes to the template, they won't be retroactive, but any new video should contain the new code.

    Away from my PC right now but I seem to recall that the html template only gets used if the user doesn't click the uploaded video.

    I think there's a hard-coded <video> element in one of the editor JS files which is used when the user does click the uploaded video to add it to the editor themselves.

    Back at PC in 10 minutes, will check then - happy to be wrong on this one though.

  6. Just to help further here...

    10 minutes ago, TracyIsland said:

    In a test post, we dragged the 100mb file to the post and then submitted the topic. 

    Assuming that you actually dragged a file and not a link to the file hosted somewhere else, then that should be enough.

    But the problem is that your browser needs to be able to support the playback of .wmv files in the <video> tag - otherwise, it will display the fallback link which would explain this:

    13 minutes ago, TracyIsland said:

    The video shows as a link that needs to be downloaded

    Screen capture is something I was toying with for this resource https://www.ynwa.tv/files/file/18-ne-media-recorder/ but didn't see a market for it.

    If you are Cloud hosted, the 'Team' level will likely assist you with your main issue:

    https://invisioncommunity.com/buy

  7. 5 minutes ago, Clover13 said:

    The upgrade check (assuming developer has implemented it) should also pull in changes once you've upgraded

    The upgrade check process simply alerts you that a new version is available - it doesn't pull anything in.

    6 minutes ago, Clover13 said:

    but you'd only know that after you upgrade

    Or you click the "Check for updates" button before you upgrade to see if there is a new version available (if the update check URL is implemented)

  8. 3 minutes ago, Clover13 said:

    It was certainly always helpful to get a comprehensive preview of what was identified as version approved by devs during an upgrade.

    This was always based on 4.7.x - it never went more granular than that to 4.7.11 and so on; if it had then developers would have been needing to do updates each and every month just to reflect support for each new version (4.7.12 or 4.7.13, etc.)

    End of the day - do your due diligence; check the developer's site, see if a new update has been released and check the change log if one is provided. Test, if you have the ability to do so, and if still in doubt, ask the developer.

×
×
  • Create New...