Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,736 topics in this forum
-
- 3 replies
- 743 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
- 2.1k 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, -
- 0 replies
- 401 views
When we log in with Google, the profile picture is imported as 96x96 pixels. I suggest increasing the size because it is definitely too small. $userData = $this->_userData( $link['token_access_token'] ); if ( isset( $userData['picture'] ) and $userData['picture'] ) { return \IPS\Http\Url::external( $userData['picture'] )->setQueryString( 'sz', NULL ); } return NULL;
Last reply by SeNioR-, -
- 8 replies
- 744 views
Hi all, I've got an application that has an upload field that is giving me the "UPLOAD_FIELD_NOT_OBJECT" error, it's an app that we have had for several years and has worked on older versions of Invision. I understand why it's giving me the error and everything, but the attachments that I am using are actually being put in the uploads folder, it's just failing at the point of inserting the data into the custom database. Traditionally we have always just stored a reference to the file and it's folder and that has been fine. My main question on it is can I carry on with just storing the file reference rather than storing the upload object? So the code I have …
Last reply by Brew Digital, -
- 1 follower
- 0 replies
- 683 views
Editing a department settings in ACP the Associable products option doesn't list the custom packages. === Something else related is that when creating a product and enabling the option Show 'Submit Support Request' button the package is not automatically added to the list of associable products for the department. When said department requires an associated product (and a custom product at that) there is simply no way to setup it right now.
Last reply by teraßyte, -
I reordered the fields in "ACP > Commerce > STORE > Custom Fields" but the display order changes only when viewing the product in the frontend store or manage purchases area. Viewing/editing a product in ACP the fields are still ordered by ID (in the order they were created).
Last reply by teraßyte, -
- 3 followers
- 7 replies
- 951 views
Hello, can we check if we're on the default page (for example with changed default app)? Thanks in advance!
Last reply by DawPi, -
- 1 follower
- 3 replies
- 484 views
I know how to dynamically add CSS saved as part of the theme. {{\IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'something.css', 'someapp', 'front' ) );}} But how can I do the same for Pages CSS files created at ACP → Pages → Templates → CSS? Anyone knows?
Last reply by opentype, -
- 3 followers
- 9 replies
- 1.1k views
Hi all, Using the cloud version of Invision Community here. Does anybody know whether there is a way to interact with the "databases" component (Pages > Content > Databases in the ACP) with php functions, that I could embed into custom blocks? The ultimate aim here is to manage a list of selected names that are shown on a particular page, and we need to make this list easy to update. Another alternative would be file access (using a .csv or .json file), does anyone know if it's possible to access media files via php in this way? eg. like the { media="id" } path that is available for URLs. cheers David
Last reply by Brew Digital, -
- 1 follower
- 2 replies
- 724 views
Hi, When I want change position of my admin restrictions I get an error.
Last reply by aXenDev, -
- 1 follower
- 0 replies
- 449 views
Hi Guys. I have some recommendations on the sitemap. Google ignores the "priority" values so it is redundant, it can be completely removed. reference: https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap The second thing is that the lastmod value only changes to when a new answer is added. Okay, but what if we're editing the first post? e.g. topic title and description? I noticed that lastmod remains the same, so the Google crawler does not revisit this topic to index new content.
Last reply by SeNioR-, -
- 1 follower
- 0 replies
- 332 views
When I create a Pages feed block in the ACP, it is added to the block caching, but I have a case where I need some processing on every page load. Is there an easy way to achieve this? So far, the only option I see is to create a PHP block instead and code the content of the feed block from scratch, but that seems quite cumbersome just to create a feed block clone without caching.
Last reply by opentype, -
- 1 reply
- 646 views
I was just wondering because IPS probably has hundreds thousands of topics and only 8,000 are indexed in Google. Why? Is it because of bad SEO or low value content?? Even if some topics are hidden from guests, there should be many more topics in the index. Don't you think? 🤔 PS: I view the results in the incognito window
Last reply by Randy Calvert, -
-
- 2 followers
- 7 replies
- 1.2k views
The editor saves anything you type down if you close or refresh the page, and then it will show you a bar says "Your previous content has been restored. Clear editor". This button Clear editor works everywhere but on Moderator CP > Reported Content comments.
Last reply by Stuart Silvester, -
-
-
- 2 replies
- 682 views
I'm trying to access /api/forums/posts?key=xxxx. However, I cannot access any URL of the API, because I get the following error. { · errorCode: "2S290/8", · errorMessage: "IP_ADDRESS_NOT_ALLOWED” } I don’t think the GET requests of the API do need to be blocked by IP address, because those are read only. Although, the POST requests should be blocked, because those allow the user to create entries. I assume this is why the .htaccess file is blocking POST requests and filtering by IP address. How do I open GET request access to /api/forums/posts?key=xxxx ?
Last reply by bassangler, -
-
- 1 follower
- 4 replies
- 789 views
Our site is split into a few sections, the main ones being the forum and the "editorial" style content on the front page. They both sit on the same domain so share cookies etc, and I want to be able to make use of the fact that a viewer is logged in so we can customise content for them, and have some interactive content where we use their ID or some token as a unique identifier. If a user hits the forum first, they have a cookie set `ips4_member_id` but the TTL on this cookie is a couple of hours ago so it doesn't persist even as long as the session. Is there a way to get the info I need? Just a unique identifier for the logged in user.
Last reply by brfcs, -
-
- 1 follower
- 2 replies
- 797 views
On my production site, with light or dark mode ACP, scope selection for oauth looks like this and it just sucks. i know its not suppose to look like this, cause most of the time it looks normal on my dev site (most of the time, every once in awhile it goes spastic). I can't figure out why it is like this on my production site, but it simply just sucks. i've tried everything, i've disabled everything, changed themes, regenerated a stock them, cleared caches, etc, and it always looks like a spruce tree in minecraft got grifted. so lets get one of your many talented themers on this 🙂
Last reply by Daniel F, -
-
-
- 1 reply
- 472 views
Hi Guys. I noticed a bug when trying to feature a topic written by "Guest".
Last reply by Daniel F, -
-
- 2 followers
- 1 reply
- 804 views
One of my clients had a user who reported an issue with entering their credit card info. They kept getting the message "Invalid card number". We asked them for the card number and it seemed to work fine when we tested it. This one turned out to be a sort of user issue but only sort of. There were 2 things going on here. First, they were entering the card number with spaces. The back-end code for the credit card field does strip out spaces and dashes (\IPS\nexus\CreditCard::93) but the input field itself is set to have a maxlength of 16. So when he pasted the card number in there (no I do not want to know why this person is copy/pasting card numbers, this is not my pr…
Last reply by CodingJungle, -
-
- 1 reply
- 826 views
Shouldn't such addresses be redirected to the target path? https://invisioncommunity.com/index.php https://invisioncommunity.com/forums/topic/468343-forum-clear-cache-and-advanced-mode-issue (works with slash and without on the end) More in this video 😛
Last reply by Stuart Silvester, -
-
-
- 2 followers
- 2 replies
- 582 views
I'm trying to create a visual stream of activity for my website and desktop application, incorporating gallery images, videobox videos, and blog entries into a single stream sorted by date. I have it all working except the blog entry header images. This is important, because the blog header image is what I plan to show in the background of the tiles for blog entries, making the whole system cohesive. I'd prefer not to post any screenshots of my application here, but it looks good and it's a really nice visual way to just take in all recent activity at a glance.
Last reply by Interferon, -
-
- 1 follower
- 0 replies
- 489 views
Pages such as those below should be included in robots.txt, google unnecessarily wastes time on them. https://invisioncommunity.com/pastleaders/ https://invisioncommunity.com/languages/ https://invisioncommunity.com/applications/ (if we set the guest to be unable to download attachments) https://invisioncommunity.com/tags/* (since the tags have noindex, they should be removed for guests or at least a link) /notifications/
Last reply by SeNioR-, -
- 1 follower
- 0 replies
- 379 views
Is this type of URL safe? https://invisioncommunity.com/index.php?app=core&module=system&controller=embed&url=https://www.ifixit.com/Guide/Repairing%2BToshiba%2BSatellite%2BC850%2B-%2BCleaning%2Bthe%2BCooling%2B-%2BFan%2BSystem/28853
Last reply by SeNioR-, -
As per title, editing a department in the Commerce application doesn't list any custom packages in the Associable products option.
Last reply by teraßyte, -
- 0 replies
- 421 views
502 bad gateway when clicking this: And then moments later it is working again... Disregard, carry on, etc., etc...
Last reply by All Astronauts,