Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,734 topics in this forum
-
- 2 followers
- 7 replies
- 1.3k views
I want to serve cached pages for guests directly from Cloudfront cache (first hit). No origin request. On pages requests IPS sends these headers (using Redis as cache method and 1 hour caching for guests on AdminCP😞 cache-control: no-cache="Set-Cookie", max-age=3600, public, s-maxage=3600, stale-while-revalidate, stale-if-error set-cookie: ips4_IPSSessionFront=75kv76vm8so67kh861iqhu7jky; path=/; secure; HttpOnly To cache pages on Cloudfront, these headers should not be sent: no-cache="Set-Cookie" and set-cookie: ips4_IPSSessionFront=75kv76vm8so67kh861iqhu7jky; path=/; secure; HttpOnly. I don't care about users online counter and don't use any guest p…
Last reply by Ryan Ashbrook, -
- 2 followers
- 2 replies
- 724 views
Application Dev Toolbox Mismatching parameter list \Symfony\Component\VarDumper\Dumper\AbstractDumper::dumpLine() N/A /applications/toolbox/sources/vendor/symfony/var-dumper/Dumper/CliDumper.php:551 so i have to be sure third party libs pulled in via composer match whatever criteria scanner.php sets out? i wasn't even aware IPS uses anything from symfony, if you do, you probably should namespace it differently since the autoloader isn't psr-4 compliant and there is no way to load/check/compare to your composer.json
Last reply by CodingJungle, -
- 2 followers
- 1 reply
- 381 views
The nullability analysis doesn't take into account nulls that are explicitly in the global namespace (which is unnecessary but legal). Hook: public function canSetBestAnswer( \IPS\Member $member = \NULL ) Original method: public function canSetBestAnswer( \IPS\Member $member = NULL ) Analysis: [ "method" => "canSetBestAnswer", "reason" => "method_issue_parameters", "parameter" => null, "subclassFile" => "/applications/lmgsys/hooks/bestAnswer_ForumsTopic.php", "baseFile" => "/applications/forums/sources/Topic/Topic.php", "baseClass" => "\IPS\foru…
Last reply by CodingJungle, -
- 0 replies
- 288 views
public static function roundedDiffFromSeconds( $seconds, $memberOrLanguage=NULL ) { $now = static::ts( time() ); $then = static::ts( time() - $seconds ); return $now->roundedDiff( $then, $memberOrLanguage ); } Don't panic! This is not related to all the other DateTime shenanigans going on. Just a small bug with a big return - routinely 52 years. The problem is having $then calculated as time() - $seconds. That needs to just be seconds: $then = static::ts($seconds); You only use this in one spot (admin\stats\timeToSolved.phtml) that I can see so probably just been overlooked for a while. Full Explained working on something not quite two m…
Last reply by All Astronauts, -
- 1 follower
- 0 replies
- 347 views
ACP > Email Settings > Email Logo When you get emails from your community, only Google converts the webp logo to a jpg.
Last reply by Afrodude, -
- 2 followers
- 0 replies
- 370 views
Hello, for example if there is missing file on the FTP and posts looks like this: Is there any automatic method (queue or something) to remove that parts to look like this: ? Thanks in advance.
Last reply by DawPi, -
- 2 followers
- 5 replies
- 748 views
Hi Guys, Not sure if I should log this as a bug or a feature request, however you can move it to the feature requests if you do not feel this is a bug/issue. Long story short, I had an issue which required me to install a older backup of my live site on a localhost (No point in going into the reason why as that's not the issue). Earlier today I received an email from one of my members stating that I had charged him twice today for a subscription. After checking his details, it then occurred to me that the invoices actually came from my backup site and payments went from bank accounts into Stripe. Lets just say this has caused me a massive headache. My …
Last reply by Adriano Faria, -
- 3 followers
- 3 replies
- 863 views
4.5, 4.6 and 4.7 Whenever you submit a reply to any recent status update the saving button keep showing "Saving......" since IPS updated to 4.5, and the bug still shows on 4.6 and 4.7. Then if you refresh the page, you will notice that reply is already posted.
Last reply by Afrodude, -
- 0 replies
- 581 views
It would be appropriate to fix some errors in the console. 1. '-moz-hyphens' is not supported by Chrome, Chrome Android, Edge, Safari, Safari on iOS. Add 'hyphens' to support Chrome 55+, Chrome Android 55+, Edge 79+. Add '-webkit-hyphens' to support Safari 5.1+, Safari on iOS 4.2+. - ERROR .ipsApp .cAuthorPane_author { -moz-hyphens: initial; } 2. '-ms-text-size-adjust' is not supported by Chrome, Chrome Android, Edge, Firefox, Safari. Add 'text-size-adjust' to support Chrome 54+, Chrome Android 54+, Edge 79+. - ERROR 3. '-webkit-text-size-adjust' is not supported by Chrome, Chrome Android, Edge 79+, Firefox, Safari. Add 'text-size-adjust' to support Chrome…
Last reply by SeNioR-, -
- 0 replies
- 333 views
I noticed that when you upload your own default avatar in Theme Resources with the webp format, after clearing the cache, it is restored to the original one with png format.
Last reply by SeNioR-, -
- 1 follower
- 0 replies
- 339 views
hello. I cannot seem to solve this dilemma. I have been all over the internet for a solid 3 days trying to figure this out. I went to Microsoft to get just the basic format of what an OAuth URL should look like. I can manually type it all out into my browser and it will take me to the Authentication login screen on my site, So honestly, I'm pretty proud there. But when I call it from my app it is not doing anything. I am using Unity by the way. The idea here is on my app people can click a "Login" button, and it should take them to my site to login and send back a token which i will store on their PC. public void test() { StartCoroutine(GetAccessTokenA(…
Last reply by Schaken, -
- 2 followers
- 5 replies
- 825 views
Shouldn't the word "POINT" in these strings be in plural as well? A moderator can also give more than one warning point example: Given a %d {# [1:point][?:points]} warning for %s%s: %s. now: Given a %d point warning for %s%s: %s. String: history_received_warning_details history_received_warning_details_api history_received_warning_link history_received_warning_link_api
Last reply by Meddysong, -
- 1 follower
- 7 replies
- 640 views
In the new version of one of my apps, I want to update a new field that I have created (Database Schema) with a value. I used the upgrade.php file and wrote the necessary codes in the step1 method, but it does not work. what should I do?
Last reply by ReyDev, -
- 1 follower
- 0 replies
- 363 views
As per title. The icon/css class are missing viewing a Q&A forum. Both templates questionRow & popularQuestionRow need to be updated.
Last reply by teraßyte, -
- 0 replies
- 356 views
The user's nickname is not completely centered on the avatar. Just remove the unnecessary left margin. @Ehren html[dir="ltr"] .ipsComment_author > *:not(:first-child) { margin-left: var(--sp-2); flex: 0 0 auto; }
Last reply by SeNioR-, -
- 2 followers
- 4 replies
- 622 views
Fresh install. Not sure this is expected. Only IPS apps; no 3rd-party resources:
Last reply by nodle, -
- 4 followers
- 11 replies
- 1.7k views
I can't hit Cloudfront cache for font awesome. I have checked that IPS can serve font awesome from Cloudfront. Here is my request (https://www.webpagetest.org/result/220816_BiDcWR_ACG/1/details/#waterfall_view_step1😞 :authority: fisiculturismo.com.br :method: GET :path: /applications/core/interface/font/fontawesome-webfont.woff2?v=4.7.0 :scheme: https accept: */* accept-encoding: gzip, deflate, br accept-language: en-US,en;q=0.9 cookie: AWSALB=V+qLZCNbjEfbsPzZCvXjy8lR1d7lJw+6Qz1bNnwYg3ri9BdDQEtMndfBsf/Hz6jHSj9ffTMEA4MsyUU2es6+KXvX4j590g0Rnn2XevQuROzwR/vyxmaPt32qn142; AWSALBCORS=V+qLZCNbjEfbsPzZCvXjy8lR1d7lJw+6Qz1bNnwYg3ri9BdDQEtMndfBsf/Hz6jHSj9ffTMEA4MsyUU2es6+KXv…
Last reply by sobrenome, -
- 1 follower
- 1 reply
- 439 views
Error thrown with message "Call to undefined function IPS\Application\preq_quote()" Stacktrace: #16 Error in /opt/homebrew/var/www/dev/system/Application/Scanner.php:139 it should be preg_quote, not preq_quote 🙂 and if i change it to preg_quote, i get this error: Whoops\Exception\ErrorException thrown with message "preg_match(): Unknown modifier 'o'" Stacktrace: #17 Whoops\Exception\ErrorException in /opt/homebrew/var/www/dev/system/Application/Scanner.php:169
Last reply by Daniel F, -
- 2 followers
- 0 replies
- 427 views
Whoops\Exception\ErrorException thrown with message "explode(): Passing null to parameter #2 ($string) of type string is deprecated" Stacktrace: #13 Whoops\Exception\ErrorException in /private/var/tmp/theme_core_global_forms_texta0ayPh:10 #12 explode in /private/var/tmp/theme_core_global_forms_texta0ayPh:10 #11 IPS\Theme\theme_core_global_forms_text in /opt/homebrew/var/www/dev/system/Theme/Dev/Template.php:171 #10 IPS\Theme\Dev\_Template:__call in /opt/homebrew/var/www/dev/system/Helpers/Form/Text.php:156 #9 IPS\Helpers\Form\_Text:html in /private/var/tmp/theme_core_admin_support_guideSearchFormUsUAi0:60 #8 IPS\Theme\theme_core_admin_support_guideSearchForm in /opt/home…
Last reply by CodingJungle, -
- 1 follower
- 1 reply
- 961 views
The editor won't load after adding a reply as a guest, works only after reloading page. I excluded captcha, adblock, attachments, buttons in the editor and CSS as the cause. Browser: Latest Edge. 123.webm
Last reply by Stuart Silvester, -
- 3 replies
- 614 views
I'm pretty much a noob when it comes to code, but I was able to successfully understand and implement the ips.ui.sticky as it was pretty straight forward. As part of my build, I would like for it to also be 'dismissible'. How would I go about inducing that element? TYIA
Last reply by My Sharona, -
- 1 follower
- 2 replies
- 420 views
I noticed that when one reacts to a user's content, the public notification is: "Power Admin reacted to a question Piattaforme per Forum" Whereas if I go to check the API (api/core/members/**/notifications😞 "notificationData": { "title": "someone reacted to a question Piattaforme per Forum", It would appear that the API goes to call the language string "mailsub__core_notification_new_react" attributing notification to Guest: "notificationData": { "title": "qualcuno ha reagito a una domanda Piattaforme per Forum", "url": "https:\/\/invisionita.it\/topic\/6907-piattaforme-per-forum\/?…
Last reply by Daniel F, -
- 2 replies
- 404 views
Would you please consider change the - (skeleton) from: class _{controller} extends \IPS\Dispatcher\Controller { /** * Execute * * @return void */ public function execute() { {restriction} parent::execute(); } /** * Manage * * @return void */ protected function manage() { /* Create the table */ $table = new \IPS\Helpers\Table\Db( '{table_name}', \IPS\Http\Url::internal( 'app={app}&module={module}&controller={controller}' ) ); /* Display */ \IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'global', 'core' )->block( 'title', (string) $table ); } } to: class _{controller} extends \IPS\Dispatcher\Con…
Last reply by Adriano Faria, -
- 3 replies
- 709 views
Is there any way to retrieve file info for extra fields in the Downloads application? It would be useful to be able to fetch this data.
Last reply by Interferon, -
- 1 follower
- 2 replies
- 2k views
Hi Guys. Currently, Invsion Community displays the code for mobile devices using @media screen, which is ok, but it only seemingly hides the code because it is still in the source. Being on the desktop, the code for mobile devices is unnecessarily loaded. Why not use PHP for mobile device detection? This code is just an example, but it shows that it can be done in a simple way. <?php //-- Very simple way $useragent = $_SERVER['HTTP_USER_AGENT']; $iPod = stripos($useragent, "iPod"); $iPad = stripos($useragent, "iPad"); $iPhone = stripos($useragent, "iPhone"); $Android = stripos($useragent, "Android"); $iOS = stripos($useragent, "iOS"); //-- You can add…
Last reply by Dll,