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
-
-
- 2 replies
- 618 views
Fresh install of IPS 4.7.16 and PHP 8.1.27. Although it shows as fixed in 4.7.13, I still have this in a lot of places when you're with IN_DEV on, such as when trying to edit a topic: Or when I try to promote the topic: Several other places where forms are there. If I set DEBUG_TEMPLATES to FALSE in constants.php, everything works just fine.
Last reply by Adriano Faria, -
-
- 1 reply
- 645 views
I've included a statement like: $_SESSION['someData'] = "somedata"; inside the manage() method inside applications/core/module/front/system/register.php. After visiting the register page I've called another script sessionread.php <?php require_once('full_path_to/init.php'); \IPS\Session\Front::i(); die(var_dump(\IPS\Member::loggedIn())); I'm unable to see the `someData`field inside the dumped session, any idea where things go wrong? Outcome should be: 1.) Set session data upon signup page (when user visits the "register" page). 2.) Being able to read this session data field from my exte…
Last reply by teraßyte, -
- 6 followers
- 10 replies
- 2.4k views
Hi, Would it be possible to integrate API OpenAI to make answers on the forum? Or to create articles? Thank you very much for your feedback
Last reply by GoodBoyGilb, -
-
- 7 replies
- 728 views
Hello, how can I extract data from an external database to a table? ($table)
Last reply by deple, -
-
- 1 follower
- 3 replies
- 741 views
Hi, I'm not sure that this is an issue on my end or not. I have created a hook which extends class \IPS\Content\Controller, however when I try to edit the hook I get the following error. Anyone else getting this? Error: Call to undefined method ReflectionUnionType::getName() (0) #0 C:\wamp64\www\#\applications\core\modules\admin\applications\developer.php(3577): IPS\Plugin\_Hook->editForm() #1 C:\wamp64\www\#\system\Dispatcher\Controller.php(107): IPS\core\modules\admin\applications\_developer->editHook() #2 C:\wamp64\www\#\applications\core\modules\admin\applications\developer.php(69): IPS\Dispatcher\_Controller->execute() #3 C:\wamp64\www\#\sy…
Last reply by TDBF, -
- 2 followers
- 2 replies
- 576 views
I normally create my hooks via the ACP and then edit the hook via the file via my IDE. (I have asked many times if you guys could increase the size of the Hooks Textarea or make it expandable, because I hate editing within a letter box. 😋) However, after the last release, this is now borked. If I edit the hook via the file, my IDE will format the code on save, and the next time I edit/add new elements to the hook class a new 'public static function hookData()' class will be created causing a Fatal error: Cannot redeclare IPS\hookData() in. For example: In this test hook, this is the content created by the core. /** * @mixin \IPS\Theme\class_forums_…
Last reply by TDBF, -
- 1 follower
- 4 replies
- 608 views
Hello, we have mixins for controllers: But what about mixins for UI? For example how can I change that part from a ips.ui.uploader.js: /** * Sets up this instance * * @returns {void} */ var init = function () { uploaderID = $( elem ).identify().attr('id'); if( options.listContainer ){ listContainer = $( options.listContainer ); } else if( $( elem ).find('[data-role="fileList"]').length ) { listContainer = $( elem ).find('[data-role="fileList"]'); } else { listContainer = $( elem ); } // Do we need to insert a wrapper though? if( ips.templates.get( options.template + 'Wrapper' ) ){ listContain…
Last reply by DawPi, -
The thumbnail settings are specified in the specific Pages DB Options, however doing a POST with the image included seems to generate a 500x500 thumbnail regardless of the settings. If you go into the record after it's been created by editing it on the record view page, then save it, it will regenerate the image to the correct size. Obviously this is a bit too much effort if you have many records. Is there any other solution? There used to be a rebuild thumbnails, but I think that was removed quite some time ago.
Last reply by Marc, -
-
- 2 followers
- 1 reply
- 592 views
For example: if I set 4 as maxItems on a Stack field, I get the message: which is not right. It should be "You must provide up to 4 items" or something like that. Language bit: form_items_max.
Last reply by Marc, -
-
-
- 3 followers
- 3 replies
- 576 views
I have created a database. I have set permissions so that Members are allowed to create records within the database. I have added a new club feature based on this database. Who can add a new record to the feature? Club owner and club leader only. Club moderators and club members are not allowed to add records. I have already asked it. But just to be sure: does it work as desired? Is there any way the members of the club can add records? Thanks.
Last reply by opentype, -
-
-
- 2 followers
- 1 reply
- 534 views
After a fresh install, I cannot find any Pages templates. Reproducible on localhost and test url. By the way: I am going to explore the new Pages in club feature. Where would you like to have bugs reports? Here, in technical problems or somewhere else?
Last reply by Marc, -
-
- 0 replies
- 425 views
Hello Team, I'm trying to send a POST request through the endpoint using axios, so that I can update the member's group. Flow for the code below: I call the function updateMemberGroup, which uses the function searchMember to get the member's id, and then I try to update the member's group on the endpoint api/core/members/${id}, as shown in the documentation: https://invisioncommunity.com/developers/rest-api?endpoint=core/members/POSTitem Please find below my code for that: async function searchMember(email) { const url = communityUrl + 'api/core/members'; let id = axios.get(url + `?email=${email}`, { headers: { …
Last reply by Capitão Jack, -
-
- 2 followers
- 11 replies
- 1.7k views
Hello, i'm trying to make something work on my localhost installation and after 2 hours of trying to add a block to ACP Member Profile, i'm coming here to ask for help. What i did: I've created an extension trough Developer Center I've tried to change default output from return 'Hello World!'; to template but neither of those two seem to be working. I've disabled DEV_MODE to check if that was the issue but even with dev_mode disabled, nothing showed. Is there something i'm missing?
Last reply by Adriano Faria, -
-
- 1 follower
- 1 reply
- 810 views
Hello, I also made this topic in the general “Technical Problems” forum, however because this problem is urgent for us, we are also looking for a developer that can possibly solve this problem (for money ofcourse), so hit me up if you can help us. this is the problem: We are having a problem with the way our topics are interacting. When you go to this topic for example: https://www.higherlevel.nl/forums/topic/74791-update-verplichte-aov/?do=getNewComment You won’t go to the newest comment, in our case just the first comment gets loaded, sometimes this works, other times it just goes to a random page. We have tried disabling customization, with no avai…
Last reply by Randy Calvert, -
- 1 follower
- 2 replies
- 662 views
I have two custom applications, that have been developed about 15 years ago. They run on the latest IPS without issues. However, both applications do not count their submissions towards posts (1) and do not have a section in All activity on profile (2). To illustrate what I mean, I have marked the areas on my profile here. The entries of both applications extend \IPS\Content\Item. My questions are: What should I do to count the entries from these applications to increase posts number? What should I do to show the sections of these applications in the All Activity list in member's profile?
Last reply by Sonya*, -
- 1 follower
- 9 replies
- 1.7k views
Hello everyone, I come to you because I have a question concerning my integration. I have User Control Panel made with Laravel (mydomain.com) And Invision Community as Forum (forum.mydomain.com). What I would like to accomplish : If the user is not logged in, he's redirected to the default Invision Community login handler. If the user is logged in, he's also logged in on Laravel (mydomain.com) and Forum (forum.mydomain.com) Have the ability to retrieve user informations (core_members) from the Laravel (username, avatar .. etc) How can I accomplish this? (and in a secure way) Thank you ! :)
Last reply by Stuart Grimshaw, -
-
- 3 followers
- 9 replies
- 883 views
Hi, I've just realized that all applications information in JSON and XML formats is freely available on the web. For example: https://invisioncommunity.com/applications/core/data/schema.json https://invisioncommunity.com/applications/core/data/settings.json https://invisioncommunity.com/applications/core/data/furl.json => Isn't it dangerous to leave sensitive information such as the database structure of all applications, default settings, or even all existing URLs accessible? For example, settings.json contains the parameter recaptcha2_private_key… This applies not only to Invision applications, but also to third-party ap…
Last reply by LaCollision, -
-
-
- 2 followers
- 3 replies
- 635 views
As per screenshot, this one has monthly renewals. Blame it on the Leap Year!
Last reply by Marc, -
-
- 3 followers
- 9 replies
- 1.1k views
I'm looking to use a third party API to GET some data that doesn't change often throughout the day and then display it on a Pages page. The API has these considerations: There is no known timeframes when the API data will be updated. We are only concerned with the current snapshot of data, not any history. The API is rate limited, and we certainly don't want to call it for every page load. The amount of data is small but each record does have a start/end date for managing expired records. However, it may be easier to just replace all of the data stored versus trying to perform an upsert operation. What would you recommend as an …
Last reply by Clover13, -
-
- 2 followers
- 4 replies
- 792 views
I have an invision site (e.g. forum.mysite.com) and I want to enable it's forum RSS feed to be read by javascript inside the browser of a page on another site: other.mysite.com. To do this requires that the invision site set the `Access-Control-Allow-Origin: other.mysite.com`. Is this possible via configuration of the invision site? Note that I'm using the hosted solution from invision.
Last reply by Marc, -
-
-
- 23 followers
- 167 replies
- 14.7k views
Hi all, Next week we plan on releasing a few blogs outlining what development looks like for Invision Community v5. I was curious as to what changes you'd like to see, and what changes do you think are coming?
Last reply by Matt, -
-
-
- 2 followers
- 3 replies
- 534 views
Hello, I want to show a dynamic live .aspx page on my forum. is it mandatory for me to buy the"pages" extension? Thanks.
Last reply by Kirill Gromov, -
-
Hello, Version 4.7.15 compileFullEmail attempts to fold long headers by using the wordwrap function - but this does not work correctly as whitespace gets 'swallowed' and the extension line does not start with white space. The rule for Long Headers (those that exceed 998 bytes) is that they should be split so that the next part starts with white space -- i.e. crlf ma#y be inserted before the whitespace and NOT as a replacement for the whitespace. "unfolding" only works correctly if the follow on lines start with white space -- i.e. "Unfolding is accomplished by simply removing any CRLF that is immediately followed by WSP." Our particular failure scenario was…
Last reply by Marc, -
-
- 3 followers
- 3 replies
- 620 views
Points to https://invisioncommunity.com/4guides/advanced-options/configuration-options/seo-robotstxt-r364/
Last reply by Marc, -
-
- 1 follower
- 2 replies
- 534 views
Hi, When editing guest Search Flood Control, I get and uncaught exception: UPDATE `ib_core_groups` `core_groups` SET `g_view_board`=true,`g_dohtml`=false,`g_search_flood`=3.0,`g_access_offline`=false,`g_topic_rate_setting`=1,`g_mod_post_unit`=NULL,`g_avoid_flood`=false,`g_avoid_q`=false,`g_mod_preview`=false,`g_bypass_badwords`=false,`g_can_report`=0,`g_view_displaynamehistory`=false,`g_download_original`=true,`g_movies`=false,`idm_view_approvers`=false,`idm_view_downloads`=false,`idm_linked_files`=false,`idm_import_files`=false,`idm_bulk_submit`=false,`g_blog_allowcomment`=false WHERE g_id=2 IPS\Db\Exception: Column 'g_mod_post_unit' cannot be null (1048) #0 /h…
Last reply by The Old Man,