Jump to content

The Old Man

Clients
  • Posts

    3,958
  • Joined

  • Last visited

  • Days Won

    11

 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 The Old Man

  1. Today I updated on one of my 4 licences to the new 1 year licence which already had the full suite.

    I have 2 licenses with Core and Gallery because that's all they need and warrant. I may close one of them and start a new community which could make better use of the full suite.

    For another licence on my larget and all-but dead community that I keep going both for the knowledge contained within and for sentimental reasons, I'm still undecided. We lost some good friends there RIP, and their Profiles and Gallery albums contain sentimental photos and profile messages where people have left their condolences and anniversary thoughts.

    I know the thing to do is save up or pay monthly, but I would like to see the 6 month payment option retained, obviously without the 12 month savings, because it makes things a little easier.

    Like many struggling with the cost of living, its very hard to plan and look ahead at the moment, and I was informed yesterday we only have savings left for 1 more monthly mortage payment! So it looks like I'll be running my IPS Communities from my car and a tent by next year.

    One thing to be aware of if you have more than 1 licence is be mindful of your renewal dates if you opt for the yearly payment. Those £199 licences could soon mount up and all be due in the same month. 

     

  2. Hi @opentype

    I noticed that my Supergrid templates are all showing as modified, no idea why. I'm using v3.2.0 downloaded from the Marketplace and have never modified them.

    If I compare to default, they are definitely different. Here's 2 examples, I wondered if you could tell me which is the latest that I should keep? Some of the newer modified templates seem to have csrf checks and things that the 'default' don't have.

    Many thanks!

    Could contain: Computer Hardware, Electronics, Hardware, Monitor, Screen, Text

     

    Could contain: Computer Hardware, Electronics, Hardware, Monitor, Screen, File, Text

     

  3. Hi @homeofeconomy

    There may be a CKEditor plugin but you can accomplish this in Pages. You will need to add some code in the AdminCP Pages sections. This is based on a W3Schools example that I’ve previously used in Wordpress, but I’ve just tested it and it works fine in IPS.

    Step 1: Create a new Page

    First create a new Page in in AdminCP > Pages to host an example.

    Go to Pages > Add Page  and choose With Page Builder and on the first tab give it a Page Name such as ‘Sortable Table Test’.
    (You can leave all the other fields alone for now, perhaps allow it to be added to your Menu for convenience if you like.)
     

    Step 2: Add the JS and some CSS

    Next go to Pages Templates. 

    Click new and choose CSS. Give it a name of sortable_tables (it will add the .js for you) and if you like choose to put it in a new category such as Sortable Tables.

    You could let it inherit the current IPS theme stylings or make use of the IPS theme classes.

    For now though, open the new blank template you created and copy and paste this CSS inside it:

    /* CSS for tables*/
    .responsive_table_wrapper {
      overflow-x: auto;
    }
    table.test {
      border: 1px solid #51c427;
      margin: 2% 0;
      padding: 0;
      text-align: left;
      vertical-align: middle;
      overflow-x: auto;
      border-collapse: collapse;
      width: 100%;
    }
    
    td, th {
      text-align: left;
      padding: 8px;
    }
    
    tr:nth-child(even) {
      background-color: #51c427;
      color: #000;
    }
    
    /* For test table */
    table.test caption {
      display: none;
    }


    Now do the same for a Javascript file called sortable_tables and then paste in the following code:

    function sortTable(n) {
      var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;
      table = document.getElementById("myTable");
      switching = true;
      // Set the sorting direction to ascending:
      dir = "asc"; 
      /* Make a loop that will continue until
      no switching has been done: */
      while (switching) {
        // Start by saying: no switching is done:
        switching = false;
        rows = table.rows;
        /* Loop through all table rows (except the
        first, which contains table headers): */
        for (i = 1; i < (rows.length - 1); i++) {
          // Start by saying there should be no switching:
          shouldSwitch = false;
          /* Get the two elements you want to compare,
          one from current row and one from the next: */
          x = rows[i].getElementsByTagName("TD")[n];
          y = rows[i + 1].getElementsByTagName("TD")[n];
          /* Check if the two rows should switch place,
          based on the direction, asc or desc: */
          if (dir == "asc") {
            if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) {
              // If so, mark as a switch and break the loop:
              shouldSwitch = true;
              break;
            }
          } else if (dir == "desc") {
            if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) {
              // If so, mark as a switch and break the loop:
              shouldSwitch = true;
              break;
            }
          }
        }
        if (shouldSwitch) {
          /* If a switch has been marked, make the switch
          and mark that a switch has been done: */
          rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
          switching = true;
          // Each time a switch is done, increase this count by 1:
          switchcount ++; 
        } else {
          /* If no switching has been done AND the direction is "asc",
          set the direction to "desc" and run the while loop again. */
          if (switchcount == 0 && dir == "asc") {
            dir = "desc";
            switching = true;
          }
        }
      }
    }


    Notice the ID of our table of myTable in the 3rd line of JS, this is important so we target the correct table! It must match the table ID name we’ll create next. Save the changes.
     

    Step 3: Create a new Custom Block

    Next create a new Pages Custom Block, this will hold the Sortable Table allowing you to position it where you like on the page, say between Rich Text Blocks.

    Select the Manual and the HTML type of block, give it a name such as Sortable Table, leaving the other fields alone for now. In the Content tab, paste the following HTML code:

    <h2>Sortable HTML Table</h2>
      <p>Based on <a href="https://www.w3schools.com/howto/howto_js_sort_table.asp" target="_blank" title="View the original example at W3Schools (new tab/window).">www.w3schools</a></p>
    
    <div class="responsive_table_wrapper">
    <table class="test" id="myTable">
    <!-- When a header is clicked, run the sortTable function, with a parameter, 0 for sorting by Company, 1 for sorting by Contact etc. -->
      <tr>
        <th onclick="sortTable(0)"><i class="fa fa-sort"></i> Company
    </th>
        <th onclick="sortTable(1)"><i class="fa fa-sort"></i> Contact
    </th> 
        <th onclick="sortTable(2)"><i class="fa fa-sort"></i> Country
    </th>
      </tr>
      <tr>
        <td>Alfreds Futterkiste</td>
        <td>Maria Anders</td> 
        <td>Germany</td>
      </tr>
      <tr>
        <td>Centro comercial Moctezuma</td>
        <td>Francisco Chang</td> 
        <td>Mexico</td>
      </tr>
      <tr>
        <td>Magazzini Alimentari Riuniti</td>
        <td>Giovanni Rovelli</td>
        <td>Italy</td>
      </tr>
    </table>
    </div>

     

    Save the block, in future once you are happy with it, you could opt to cache it.

    Next we’ll edit the Page we created in the first step.
     

    Step 4: Add the CSS and JS to the new page

    Edit the file and select the Page Includes tab. Tick/Check to include both the Sortable Tables JS and CSS files created earlier so that they are loaded inside this page and click Save.
     

    Step 5: Add the Custom Block to the page

    Finally, click the Magic Wand button for the page and it will open up the Page Builder on the Sortable Table Test page.

    Drag and drop a Pages Custom Block into your page. Select the Sortable Table block and exit the Page Builder (finish editing button).

    Tip. When you refresh that page, it will open the Page Builder again, so instead click on the page name in the breadcrumbs and then you can reload the page as normal.

    You’ll have something like this, just click or tap on the Table Headers to sort the columns:

    Could contain: Page, Text
     

    Demo: https://invisionary.tech/sortable-table-test/


    Hope this helps!

  4. Why didn't IPS ever complete RSS integration with the full suite in terms of the RSS/Atom Feed Imports page?

    I'd also like to see full use of RSS feeds when importing into Blogs as the entry's featured image, for example. It is pointless being able to import blog entries and ignore any enclosed images. Blogs was always behind WordPress in this regard.

    That said, if it was me at the helm of the good ship IPS,  I would kill off Blogs as a separate app and merge its unique features into Pages. It seems like a logical progression IMHO.

  5. Thanks for the clarification!

    I think you will still have orders for it. It's really useful, well regarded and people will be using v4 for a while yet, although obviously, that will diminish over time.

    I wondered how we could still access it or re-install it in IPS4, once the MP has gone if it isn't available on your site instead.

  6. Hi,

    Sorry for any confusion on my part, but I registered on your site via the Providers Link and I'm unsure about transfering the MP licence key for Pages Supergrid over to your site. Please can you clarify if you will be supporting this?

    Many thanks!

  7. For some reason, my sites are showing these templates (marked in red) as still present in my default IPS theme (unmodified). They are also in my custom themes. There is no Delete button for them, but I could manually remove them in Designers Mode. I have a stock upgrade of 4.7.13 on localdev which doesn't have them. However my custom theme local dev sites do, both official default theme and my custom themes, and also my live site.

    I don't actually know why the IPS 4.7.13 upgrade or earlier wouldn't remove any EOL templates per se, but is it safe to remove them or will it cause template errors?

    Could contain: Page, Text

    Image: IPS 4.7.13 Default theme

     

    Many thanks.

     

  8. It totally grinds my gears too. There is no new one!
    However, your AdminCP Dashboard if and will tell you when there is an update available, just like it always has. It just won’t install it for you or help you find new apps and themes.

    It’s been said so many times before, but I think the providers list should really be in the AdminCP where it belongs, so people can conveniently browse from one logical central point and discover products, with external links to them and the third party disclaimer.

    It’s (IMHO) the least IPS could do. They say only a minority of IPS Clients visit this site, of that minority, only a few will ever find the almost hidden providers list, (and of course they crippled Commerce before adding new features or integrations! Grr).
     

  9. 20 minutes ago, The Old Man said:

    Yesterday I before I exported a localdev theme I noticed that a lot of Nexus templates were showing in the list as modified, things like for hosting and buying domain names. So I've just gone back from 4.7.13 comparing each version until 4.78 -> 4.7.9 before I found changes to multiple Nexus template changes. But no mention of the ones that I'm assuming have gone completely (since there is no revert or delete option and they show as modified but the comparison between original and current version shows no differences.

    Here's an example of one of my templates showing as modified, with no delete or revert button. Is it safe to delete it manually?

    So I just went into Designer's mode on my live site and then exited and then chose the option to sync all themes.

    When I opened one and selected to see the modified templates, there they all are (the ones I mentioned seeing) from the ones I saw yesterday on my localdev:

    Could contain: Page, Text, Menu, Electronics, Mobile Phone, Phone

     

  10. Nope, it doesn't show you which templates have been removed, at least not when I look at it.

    Yesterday I before I exported a localdev theme I noticed that a lot of Nexus templates were showing in the list as modified, things like for hosting and buying domain names. So I've just gone back from 4.7.13 comparing each version until 4.78 -> 4.7.9 before I found changes to multiple Nexus template changes. But no mention of the ones that I'm assuming have gone completely (since there is no revert or delete option and they show as modified but the comparison between original and current version shows no differences.

    Here's an example of one of my templates showing as modified, with no delete or revert button. Is it safe to delete it manually?

    Could contain: File

     

    Incidentally, I just took a look at a live site of mine and I'm worried none of these previous template changes have occurred... example from 4.7.8 in /css/nexus/front/client.css which in Theme Difference shows as:

    Could contain: Page, Text, Document, Invoice, File

    whereas my actual client.css 4.7.13 template in my custom theme and in the default IPS theme (folder 1) are not showing them as being adjusted:

    Could contain: Page, Text

     

    Update: If I go into Designers mode on my live site, the removed CSS is not there in client.css!

     

×
×
  • Create New...