Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,680 topics in this forum
-
- 1 follower
- 3 replies
- 325 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
- 893 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
- 519 views
Hi, When I want change position of my admin restrictions I get an error.
Last reply by aXenDev, -
- 1 follower
- 0 replies
- 278 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
- 245 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
- 385 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
- 916 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
- 417 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
- 577 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
- 529 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
- 364 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
- 541 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
- 608 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
- 416 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
- 374 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
- 272 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
- 318 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, -
- 0 replies
- 351 views
This seems like the opposite of what it should be doing, because this end point does not accept an API key: https://invisioncommunity.com/developers/rest-api?endpoint=core/me/GETindex I am using the same code to access other API features with no issues. IPB 4.5. Edit: This is a generic error that also gets used if the authentication token is wrong. There's no problem.
Last reply by Interferon, -
- 0 replies
- 362 views
The Send diagnostic data? setting has 2 options: Usage data Error reports Disabling only 1 option (doesn't matter which) shows both options enabled again once the change is saved. The only way to keep them disabled is to disable both option at the same time.
Last reply by teraßyte, -
- 3 replies
- 184 views
Hey guys. I noticed a bug where flood protection is not working for Guests. Could someone check if I am right? flood-for-guests.mp4
Last reply by SeNioR-, -
I hit the error updating an old 3.1.4 site with Downloads 2.3.1. The problem is that an upgrade script uses the wrong index type when updating the custom fields in the 4.0.0 RC 1 step. I compared the upgrader code to the normal code run when a new custom field is added and noticed the wrong type is being used. Open the file and find this code on lines 26-54: /** * Step 1 * Fixing custom fields * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { foreach( \IPS\Db::i()-&…
Last reply by teraßyte, -
- 2 replies
- 273 views
Hey guys. I noticed a bug when I was posting a few custom requests and people just visited the page. When you see someone visiting your thread and you hover above it, you should have a bubble above. If the person leaves, the bubble should disappear, yet it doesn't, leaving you with this:
Last reply by Rikki, -
- 0 replies
- 320 views
If we have disabled viewing of profiles by guests, the link to the badges should be removed. This is an unnecessary redirect
Last reply by SeNioR-, -
I hit the error updating an old 3.1.4 site. The problem is that some packages have a NULL or empty string value for the p_base_price column in the nexus_packages table instead of 0. The upgrade process stops because MYSQL complains about a "Truncated incorrect DOUBLE value" error. Open the file \applications\nexus\setup\upg_40000\upgrade.php and fine the code on lines 585-594: public function step14() { $offset = isset( \IPS\Request::i()->extra ) ? \IPS\Request::i()->extra : 0; $select = \IPS\Db::i()->select( '*', 'nexus_packages', NULL, 'p_id', array( $offset, 50 ) ); if ( \count( $select ) ) { foreach ( $select as $row ) { …
Last reply by teraßyte,