Jump to content

Nathan Explosion

Clients
  • Posts

    7,007
  • Joined

  • Days Won

    128

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Projects

Release Notes v5

Forums

Events

Store

Gallery

Everything posted by Nathan Explosion

  1. The widget count is just a SQL query - it's not a figure that is recalculated as and when something is done: /* fetch only successful registered members ; if this needs to be changed, please review the other areas where we have the name<>? AND email<>? condition */ $where = array( 'completed=?', true ); /* Member count */ $stats['member_count'] = \IPS\Db::i()->select( 'COUNT(*)', 'core_members', $where )->first(); Which is: SELECT count(*) from core_members WHERE completed = TRUE; Got a tonne of validating members? Maybe show what search criteria was used for the search result? (To be clear how you got there)
  2. Well, I mistakingly made the assumption that hadn't worked for you...
  3. More specifically than the generic "clear your cache"... If using Chrome, clear "Cookies and other site data" If using Firefox, you can delete a specific site's data...
  4. Cookie = 2K of data. Multi-quoting your post there = 1,162 characters alone. {"forums-forums-2951956":{"userid":35662,"username":"Nathan Explosion","timestamp":1693161959,"contentapp":"forums","contenttype":"forums","contentclass":"forums_Topic","contentid":475226,"contentcommentid":2951956,"quoteHtml":"\n\t\t\t<p>\n\tIf not a mobile, then clear the following from \"Local Storage\" (screenshot from Firefox, developer tools accessible via Ctrl + Shift + I)\n</p>\n\n<p>\n\t<a href=\"//content.invisioncic.com/a319035/monthly_2023_08/image.png.42536f603dc68c7e212a488794ed9384.png\" title=\"Enlarge image\" data-fileid=\"194971\" data-wrappedlink=\"\" data-ipslightbox=\"\" data-ipslightbox-group=\"undefined\"><img class=\"ipsImage ipsImage_thumbnailed\" data-fileid=\"194971\" data-ratio=\"42.25\" width=\"968\" alt=\"Could contain: File, Webpage, Page, Text\" data-src=\"//content.invisioncic.com/a319035/monthly_2023_08/image.png.42536f603dc68c7e212a488794ed9384.png\" src=\"//content.invisioncic.com/a319035/monthly_2023_08/image.png.42536f603dc68c7e212a488794ed9384.png\" style=\"height: auto;\" data-loaded=\"true\"></a></p>\n\n\n\t\t\t\n\t\t","button":"mq2951956","stack":["controllers.core.front.core.comment.ipscontroller39"]}} Local storage = 5MB Edit: actually, it might have moved up to be 10MB.
  5. If not a mobile, then clear the following from "Local Storage" (screenshot from Firefox, developer tools accessible via Ctrl + Shift + I)
  6. I dount it - I don't think there is anything that identifies the user within that area, so it can't be targeted.
  7. The first entry in a topic is a post. Don't be so literal.
  8. @sychn as per PM, here's a different way of doing what you are trying to achieve using this: ACP -> Customization -> (Editor) Toolbars Click 'Add Button', and go to the 'Custom' tab Populate the fields as you wish, but adhere to the following specifics: Enable 'Use option?' Enter some text in the 'Option label' field (example: 'Link') In the HTML field, enter the exact code from the codebox provided in this post Click 'Save' You will now have a new button in your "Buttons not on editor", which you can drag and drop around the available editors On the front-end, click the button, paste the link into the provided dialog box field, and click OK HTML: <p> <video controls=""> <source src="{option}">{option} </video> </p>
  9. Dude - it's the same detail you've provided in PM; you've not elaborated at all as requested. Check your PM please.
  10. Spamming my own topic... For reference - take a look at the forum index, and hover your mouse over the topic title. Once the preview appears, go ahead and click the notice - you'll see that the content appears fine there. So, narrowed it down now to the viewing of the topic = not working.
  11. Curiosity... No idea why/where/how that is in there but it shouldn't be... <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> Any reason why you are loading up Jquery again, considering when it's already loaded up as part of the IPS framework?
  12. OK - I think one of your own customisations is having a knock-on effect on the Javascript that my application utilises, and here is why I believe this (You've got ability for Guests to post so can check this) In your settings, you have it set that "Guests" are not permitted to create new warnings The JS for the application, as one of the first few things done, will add an ipsHide class to a field with the ID elInput_neapp_content_warning_new That is this field, which is clearly not set with that class at the time of page load: Unfortunately, I think something early on is resulting in my JS not even running If you can present a page to me that has none of your own customisations on it (disable other 3rd party apps/plugins, set the default theme, etc) and reproduce the issue then I am happy to take a further look.
  13. Thank you - I'm unable to reproduce the issue based on your configuration, and viewing as a guest (feel free to go to here to see it in effect) As you've offered up this information, I have to ask whether clicking the notice work when you are logged in? Looking at your site, I am going to point out that there is a general Javascript-related error in the developer console, which is likely to have a knock-on effect on the JS functionality used when the notice is clicked on: Can you make the Invision default theme available to Guests, please, as I'd like to verify something myself.
  14. A link to that page would be helpful here, as that doesn't look like the default theme so I'd need to see the actual page (if page is behind a login, send me a link plus authentication credentials via PM) In addition: What are the setting in place in the ACP? Same with your own front-end settings, via the "Account Settings", if you have enabled that functionality.
  15. X tables in one block (X = 1 or more...just edit the 'tableIds' array to put the IDs in place) <table id="table1"> <thead> <tr> <th>Item</th> <th>Variable 1</th> <th>Variable 2</th> <th>Variable 3</th> <th>Variable 4</th> <th>Variable 5</th> <th>Variable 6</th> <th>Total</th> </tr> </thead> <tbody> <tr> <td>Item 1</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 2</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 3</td> <td>0</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 4</td> <td>0</td> <td>0</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 5</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>1</td> <td>0</td> <td></td> </tr> </tbody> </table> <table id="table2"> <thead> <tr> <th>Item</th> <th>Variable 1</th> <th>Variable 2</th> <th>Variable 3</th> <th>Variable 4</th> <th>Variable 5</th> <th>Variable 6</th> <th>Total</th> </tr> </thead> <tbody> <tr> <td>Item 1</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 2</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 3</td> <td>0</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 4</td> <td>0</td> <td>0</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td></td> </tr> <tr> <td>Item 5</td> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>1</td> <td>0</td> <td></td> </tr> </tbody> </table> <script> const tableIds = ['#table1','#table2']; let table, rows, rowTotalCell, cells, total, totalCell; tableIds.forEach(myTable => { table = document.querySelector(myTable); if(table !== null){ rows = table.querySelectorAll('tbody tr'); rowTotalCell = document.getElementById('rowTotal'); rows.forEach(row => { cells = row.querySelectorAll('td'); total = 0; cells.forEach((cell, index) => { if (index > 0 && index < cells.length - 1) { total += parseFloat(cell.textContent); } }); totalCell = row.querySelector('td:last-child'); totalCell.textContent = total.toFixed(0); }); } }); </script>
  16. Well, that's a definite no-no. Do you need assistance with trying to figure that one out, or is literally just an 'FYI'?
  17. That makes me twitch. Change it to: if (index > 0 && index < cells.length - 1) { total += parseFloat(cell.textContent); }
  18. Show your modified code... And maybe look at what the JS function toFixed() does, as that may give you a clue at to what that 2 is for.
  19. Good - the resource is overkill for your situation, really, and is the reason I stepped in to go against the suggestion of it for your use-case. As I said in this post - browser support is making it defunct really.
×
×
  • Create New...