Jump to content

Nathan Explosion

Clients
  • Posts

    6,984
  • Joined

  • Days Won

    127

 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 Nathan Explosion

  1. 20 minutes ago, Jim M said:

    We would still need more information about what process your server is running when it encounters this.

    @sadams101 - all you have to do here is post up the content of the message you are receiving, and not just a subject or screenshot.

    Why? Because there is only one thing that is called by cron related to Invision and that is the following file:

    applications/core/interface/task/task.php

    That file is then responsible for running the task queue - and as the output from the file is usually nothing then the cron will usually get nothing back to identify which specific task is being run within the queue.

    If the messages are indeed related to that then it's a task within the Invision-space that needs further investigation.

    Currently, you're looking for a needle in a haystack.

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

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

     

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

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

     

     

     

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

×
×
  • Create New...