Jump to content

Nathan Explosion

Friends
  • Joined

Posts posted by Nathan Explosion

  1. 21 minutes ago, Dreadknux said:

    And the text insertion point is in the right position (where the ZeroWidthSpace text in the HTML code is placed), but when I start typing the text I want to include in the button,

    Take a look at the blurb about {content} - it's the text that is highlighted when clicking the button:

    Quote

    Use {content} to indicate where the content highlighted when the button is pressed should be inserted.

    Any content you type after the html is added will be outside the html you have added.

    Want content in it? Type the content, highlight it and then click the button.

    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.
  2. ·

    Edited by Nathan Explosion

    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.

  3. ·

    Edited by Nathan Explosion

    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>

     

  4. 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.

  5. ·

    Edited by Nathan Explosion

    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

     

     

     

  6. ·

    Edited by Nathan Explosion

    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.

  7. 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