Jump to content


Marcher Technologies

  • Posts

  • Joined

  • Days Won


 Content Type 



IPS4 Providers

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog



Everything posted by Marcher Technologies

  1. Open the network tab of your browser debug tools via inspect element, and then try the upload, you will be able to see what the server responded with and get more information than the generic -200.
  2. Yes, I am fully aware I can do this by extending the KeyValue form helper class. Every, single, time I want to use something not a text input for the key or value. Can we pass this as an option like 'keyFieldType' and 'valueFieldType', defaulting to Text instead, and pass the field type specific options through to them with something like 'keyFieldOptions' and 'valueFieldOptions' please? For reference, I often use this field with the Stack field type, so such a change would need supported with this field type as well to be of value. For example: $form->add( new \IPS\Helpers\Form\Stack( 'my_setting', $values, true, [ 'stackFieldType' => 'KeyValue', 'keyFieldType' => 'Url', 'valueFieldType' => 'YesNo' ] ) );
  3. Unrelated to the original post, should probably submit a ticket so staff can take a look at your database and see if it's something that needs fixed in the codebase. Please note, I am NOT arguing against this. That tool allows one to select posts across pages of a topic. Please define what it should do if you select a post on page 1, 5, 10, and 15 to delete while viewing page 20, which no longer exists as of deleting those posts. This is the kind of thing that the code has to account for in honoring this request.
  4. It bothered me enough i just hooked it in. If you wanted to add this for your own sanity in developing and testing things, I've attached what i did. cheers. Dev Login As.xml Pretty sure the root cause of it not sticking while IN_DEV is the constant regeneration of the data store, which is entirely intended while IN_DEV.
  5. I'm not sure why, but when developing, ergo IN_DEV = true, the 'log in as' feature lasts not even 2 minutes. This results in a ridiculous amount of time waste when one needs to develop against and test a multitude of access levels and configurations. Is there a constant I can set to a member id to make 'log in as' stay put long term while IN_DEV?
  6. Not precisely what you are after, but close. Fluid view enabled: https://invisioncommunity.com/forums/?forumId=492%2C497%2C406%2C503%2C504%2C238%2C500%2C442%2C431%2C506%2C477%2C320%2C493%2C15 Not remotely true. Every view can be abused and called up within any other view. Just a matter of actually knowing the code well enough to do so. CMS app does this natively, in fact, with custom database views completely outside of the norms called up via the 'pages' view.
  7. Maybe just me, but I have a really difficult time discounting developers' and IT managers' reviews of this service. I would tend to recommend holding braintree at arms distance, and certainly not as the sole payment gateway on any site. It's not a matter of PEBKAC for all, reading through those reviews. They have pulled some quite apparently less than ethical moves since being acquired by Paypal.
  8. Wrong dispatcher would be my guess. You'd want to use the Front dispatcher, not the External, and initiate the member session with \IPS\Session\Front::i(); before calling the dispatcher run. Please note, this is only a guess, and is untested, but it makes logical sense that using the external dispatcher like this would cause widgets to go awry.
  9. It is possible with code in a manual HTML page actually. Much less so with a page builder page. Check against \IPS\Member::loggedIn()->language()->id or if preferring to check against locale strings instead of numbers, \IPS\Member::loggedIn()->language()->short Despite the apparent use of a logged in member object, this works for guests as well due to the way \IPS\Member works. Alternatively, see this post. In 3.x any admin could just add a language string, but that was removed from the core in 4.x, or I would have just said to dump them into the language system to begin with.
  10. { "errorCode": "2S291\/3", "errorMessage": "NO_PERMISSION" } To note, Other calls to endpoints actually listed in the scopes tab for oAuth Client config work: The same for an API Key: Note the missing endpoints in the former's case. I suspect this to be the root cause.
  11. If the method is commented to have @apiclientonly in the docblock, instead of denying only OAuth Access Token use, it denies any use other than API key. This is directly counter the documentation: https://invisioncommunity.com/developers/rest-api?endpoint=core/members/POSTindex On the surface, the problem seems to be that such methods are not actually available to be granted permissions in the scopes selection form in the ACP for Oauth Client Credentials. I can't imagine this is intended given the documentation and code. I would appreciate it if this could be looked into, thank you. It is vastly preferred to use the security superior oauth for such work.
  12. Alternatively, depending on the code, it may be feasible to use a normal HTML pages block instead - they support template logic, which unless you have really complex multi-line php statements involved can do the same things.
  13. In the vein of this: And in the train of thought of avoiding doing this: Can the hunk of code that actually 'follows' and 'unfollows' things in IPS\core\modules\front\system\notifications be abstracted out to actually be on the item/node object, or anywhere it could actually be reused? The above reason is not the first time I have needed to control follow status dynamically, and currently such strays extremely close to a direct copy-past of a large chunk of code that is not desired to be maintained by me, and falls foul of the license agreement.
  14. You need to set required to false on the hidden element, then use the validation callback to validate it manually and conditionally - only when the YesNo is in the desired state. Take a look at an \IPS\Node\Model's form() method for any app you own, they all tend to use this.
  15. Um... might want to reread that, it doesn't say anything about the cc expiring, merely purchases expiring and using the cc on file to renew them when the time comes.
  16. I actually have a further question/feedback on this. Shouldn't this be tied into the 'send me news and information' bulk mail setting? Lack of doing so will definitely lead to negative reactions from end users - it reads like spam, and would be marked as such swiftly for those who have opted out of bulk mails.
  17. {expression="var_export($variable, true)"} I use the above. var_dump does not return a result. it literally just prints to screen. To clarify, the second line there, and indeed, setting the $varoutput variable itself, is a meaningless no-op because var_dump was used. {{var_dump($variable);}} is the exact same thing as the code you posted. I prefer var_export both for control of placement of result and because I have seen var_dump do nothing on some servers due to the output buffering used in the suite, thus var_export consistently gives me the debug i'm looking for without fighting install-specific semantics.
  18. opentype, I fully understand your position, and it indeed seems nonsensical to think google would drop already indexed pages for lack of a sitemap. Thing is.... the Google 'Fred' algorithm update actually arbitrarily culled thousands if not millions of pages from google's index. not as any penalty for black hat, but as a measure to curb their own storage needs, and the only thing getting them back in google's index is the sitemap. It's not the lack of a sitemap entry itself causing them to be dropped, it's Fred that dropped them, and the sitemap as the main route of recovery.
  19. Fortunately, you are not. It's a per-database configuration and can be used on any database since 4.0.
  20. Failed to load resource: the server responded with a status of 403 () https://dne4i5cb88590.cloudfront.net/invisionpower-com/page_objects/homepage2.css.23f95b3edd9258e7c37d05e34e9f8444.css?v=bf33ac44f2 getting some severely unstyled content on the homepage, dropped caches and checked other browsers to be sure it wasn't a temporary fluke, just thought you should know
  21. Hello Brandon, I feel obliged to remind you sorting in php itself here(or really anywhere where one is dealing with a query result set with a limit) is completely unreliable, thus this needs reworked to begin with. Let's say I have a result set needing ordered by submission, or ordered from z-a(it happens). To try to sort it in php *after* already limiting the result set means the results are wrong. The last 10 submissions, are not the last 10 if one pulls the result set limited from db not sorted by date, but then sorts it in php by date. That is merely 10 random records reordered. As it stands, the helper currently sorts by length in database, then resorts in php. This, as detailed above, is in no way reliable.
  22. Currently literally stuck on Electro Swing, Swingrowers in particular. Nary a clue why this particular genre helps so much in thought processes while working, but it does loads for me.
  23. Writing BASIC, and as a result telling myself to never be a programmer. Thank goodness the languages got a lot saner to work with over time.
  24. Not everyone falls into that pit. A phone is literally a phone to me, even a smartphone sees no apps installed, is small, and is not allowed to notify me of anything short of an actual call(which are not common, I'm not free with my number). When I leave the house, I unplug, I don't need the annoyance of it all, I can get it at home quite enough. I didn't even have anything but a landline until 6 months ago. Just pointing out many can indeed live without it and refuse to be attached to it. (To answer the question, clearly I'd be quite screwed without internet at home. )
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy