Jump to content

Martin A.

Clients
  • Posts

    4,230
  • Joined

  • Last visited

  • Days Won

    21

Reputation Activity

  1. Thanks
    Martin A. got a reaction from Adriano Faria in Community Map   
    That's gonna be difficult. 

  2. Like
    Martin A. got a reaction from AtariAge in Community Map   
    I'll take this back after having read some support topics. Looks like a lot of apps are throwing errors because of this new scanner.
    If you can you should setup a test forum where you install these apps and then perform an upgrade on that. Don't need to create a mirror of your live site, just a default install with all your apps and plugins.
  3. Like
    Martin A. got a reaction from AtariAge in Community Map   
    Submitted an update for this now.
  4. Like
  5. Like
    Martin A. reacted to Mark in Hump Day: saying farewell to Invision Community OG, Rikki   
    End of an era ❤️
  6. Like
    Martin A. reacted to Jordan Miller in Hump Day: saying farewell to Invision Community OG, Rikki   
    Happy Hump Day, team! Sort of. 😔 
    One of Invision Community's founding fathers, @Rikki, is amicably moving on from Invision Community to pursue another exciting opportunity. This is his last week with us. He has a few parting words to share with you:
     

    Rikki has been an instrumental player in Invision Community's success; we're bummed to see him go, but at the same time excited for him to spread his wings. 
    Please leave some well wishes for Rikki in the comments! 
    ---
    Speaking of the team, @Matt Finger wrote a new dev blog post touching on the PHP8 Compatibility Scanner, our Pre-Upgrade Resource Checker and a full change log for our upcoming September release:
     
     
    --- 
    And last but not least, 4.7.2 Beta 1 is officially out. Check out the release notes here.
    See you in the replies. 🙏 
  7. Like
    Martin A. got a reaction from Meddysong in Calling Pages CSS from template?   
    If you know the ID of each CSS file you can do this
    {{$key = 10;}} {{$css = NULL; try { $css = (string) \IPS\File::get( 'cms_Pages', \IPS\cms\Templates::load( $key )->_file_object )->url; } catch ( \Exception ) {} }} {{if $css !== NULL}} {{\IPS\Output::i()->cssFiles[] = $css;}} {{endif}} If you want to load them by filename and group you'd have to either query for it, or hook into \IPS\cms\Templates and create your own helper method. load() will only accept template_id or template_key, but template_key also contains the id.
  8. Thanks
    Martin A. got a reaction from opentype in Calling Pages CSS from template?   
    If you know the ID of each CSS file you can do this
    {{$key = 10;}} {{$css = NULL; try { $css = (string) \IPS\File::get( 'cms_Pages', \IPS\cms\Templates::load( $key )->_file_object )->url; } catch ( \Exception ) {} }} {{if $css !== NULL}} {{\IPS\Output::i()->cssFiles[] = $css;}} {{endif}} If you want to load them by filename and group you'd have to either query for it, or hook into \IPS\cms\Templates and create your own helper method. load() will only accept template_id or template_key, but template_key also contains the id.
  9. Like
    Martin A. reacted to AtariAge in Community Map   
    Just a followup to this -- Invision disassociated the two apps for me, so I was able to install Community Map and import the data from Member Map.  Turns out I purchased this last September but was never able to use it since I was still running 4.4.x. 
    Everything looks great, and thank you for your assistance!
  10. Like
    Martin A. reacted to svit in Community Map   
    That was the trick 🙂 I can see I had the category ticked on but not the sub-categories, I've added them now and all images are being displayed, many thanks for your suport!

  11. Like
    Martin A. got a reaction from Hisashi in Help to disable a CSS code   
    I think you could have done
    width: unset !important;  
  12. Like
    Martin A. got a reaction from CodingJungle in Scope Selection sucks   
    This is a nice one. If you edit it from the overview it goes to the "api" controller, which properly loads the api.css. If you edit it from the OAuth details page it goes to the "oauth" controller which doesn't load the css.
  13. Like
    Martin A. got a reaction from sobrenome in Manifest caching   
    What he's saying is that one week is quite a long while to cache something without a "cache buster" in the request URL. The cache buster is the string of random characters you see in the CSS and JS requests, and it is used to detect changes to the file. When a file changes, the cache buster changes, and it will thus look like a new file to those who have cached it.
    The manifest file does not have that added to the URL, and with a week of cache time any changes to the manifest may take up to week to take effect.
  14. Like
    Martin A. reacted to stu_m in Community Map   
    Fixed! 
    I installed php56 and refreshed which then said there is nothing to upgrade then it all worked fine 😕
    So it looks like some sort of config issue 
  15. Thanks
    Martin A. got a reaction from stu_m in Community Map   
    Yes it is. There was nothing in the last update that broke compatibility with 4.6.
  16. Like
    Martin A. got a reaction from SeNioR- in Add code to template   
    {{if \IPS\cms\Pages\Page::$currentPage and \IPS\cms\Pages\Page::$currentPage->id == 15}} YOUR CODE {{endif}}  
  17. Thanks
    Martin A. got a reaction from Davyc in Add code to template   
    {{if \IPS\cms\Pages\Page::$currentPage and \IPS\cms\Pages\Page::$currentPage->id == 15}} YOUR CODE {{endif}}  
  18. Thanks
    Martin A. got a reaction from BertT in [Bug] IndexNow submits an ACP URL when queue runs from ACP   
    When manually running the queue from the ACP, the keyLocation submitted to IndexNow uses the ACP base url.
    Got errors like these:
    422 invalid_url Array ( [host] => www.site.com/ [key] => 6c076eb62f3b43e8cf6c62a8d69dff7a [keyLocation] => https://www.site.com/admin/<hash>.txt [urlList] => Array ( [0] => https://www.site.com/<url> ) )  
    Issue is here:
    $url = \IPS\Http\Url::internal(''); $data = array( 'host' => \IPS\Http\Url::baseUrl(\IPS\Http\Url::PROTOCOL_WITHOUT ), 'key' => \IPS\Settings::i()->indexnow_key, 'keyLocation' => (string) $url->setPath( $url->data[ \IPS\Http\Url::COMPONENT_PATH ] . $this->getKeyFileName() ), 'urlList' => $urls, ); $url should specify the 'front' base
    $url = \IPS\Http\Url::internal( '', 'front' );  
    Error happened in 4.6, but this file is not touched in 4.7.
  19. Like
    Martin A. got a reaction from SeNioR- in combined view forum view very slow due to...   
    Can add that we're seeing the same numbers. Takes 14+ seconds to load a combined view with 2 subforums. 
  20. Like
    Martin A. got a reaction from SeNioR- in [Bug 4.7 & 8.1] PHP Fatal error: Type of IPS\File\_Exception::$file must be string   
    PHP Fatal error:  Type of IPS\File\_Exception::$file must be string (as in class Exception)
    Getting lots of those. Opening the file in PhpStorm gives more details

  21. Like
    Martin A. got a reaction from SeNioR- in Template logic for mobile devices   
    I don't think that will cause issues. I do the same for my mobile ads. Google will not load ads in containers that are hidden.
    {{$guestAdvert = \IPS\core\Advertisement::loadByLocation( "index_970x250" );}} {{if $guestAdvert !== NULL}} <div class="ipsResponsive_showDesktop"> {$guestAdvert|raw} </div> {{endif}} {{$guestAdvertMob = \IPS\core\Advertisement::loadByLocation( "index_970x250_mobile" );}} {{if $guestAdvertMob !== NULL}} <div class="ipsResponsive_hideDesktop"> {$guestAdvertMob|raw} </div> {{endif}}  
  22. Like
    Martin A. got a reaction from SeNioR- in Template logic for mobile devices   
    No, there's no proper way to tell what device is being used on server side. You should use the responsive CSS classes for this instead.
     
  23. Like
    Martin A. got a reaction from Adriano Faria in Template logic for mobile devices   
    I don't think that will cause issues. I do the same for my mobile ads. Google will not load ads in containers that are hidden.
    {{$guestAdvert = \IPS\core\Advertisement::loadByLocation( "index_970x250" );}} {{if $guestAdvert !== NULL}} <div class="ipsResponsive_showDesktop"> {$guestAdvert|raw} </div> {{endif}} {{$guestAdvertMob = \IPS\core\Advertisement::loadByLocation( "index_970x250_mobile" );}} {{if $guestAdvertMob !== NULL}} <div class="ipsResponsive_hideDesktop"> {$guestAdvertMob|raw} </div> {{endif}}  
  24. Like
    Martin A. got a reaction from AlexJ in [4.7.0] New unused parameter in "\system\Helpers\Table\Custom::__construct()"   
    The argument $count in the constructor. Not the class var $count. The method arg was added in 4.7 beta 1
  25. Like
    Martin A. got a reaction from SeNioR- in [4.7.0] New unused parameter in "\system\Helpers\Table\Custom::__construct()"   
    The argument $count in the constructor. Not the class var $count. The method arg was added in 4.7 beta 1
×
×
  • Create New...