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
-
- 4 replies
- 292 views
Ever since the introduction of the SEO friendly pagination \IPS\Request::i()->page has been empty. In \IPS\cms\Databases\Dispatcher::run you extract this data, and adds it to the request object. You mind doing this for other pages too, not just pages that use the {database} template tag?
Last reply by bfarber, -
- 1 follower
- 1 reply
- 429 views
Hello, I have 2 login handlers with remote database connection. In the MySQL Database #2 I have a user Test When I check the name I get FALSE \IPS\Login::usernameIsInUse('Test'); Reason \system\Login\Handler\ExternalDatabase\ExternalDatabase.php You use the same identifier (external_login) for all connections return \IPS\Db::i( 'external_login', $this->settings ); the first of the list is used Solution Change 'external_login' to 'external_login_' . $this->id
Last reply by bfarber, -
- 2 replies
- 296 views
hi, I thought we had access to all FA icons. Is that not the case? None of the sports ones work for me, such as 'fas fa baseball-ball'. I was really counting on using those sports icons in my app. They are listed as free, but I assume I can't do anything on my own to have them work, since I am selling the app? Was really counting on them because otherwise I'll have to use some generic non-sports icon for a sports app. edit: it says free ones can be sued for free, even for commercial use... but I am not sure what I need to do to get those working.
Last reply by Midnight Modding, -
- 1 follower
- 3 replies
- 460 views
Hi, I want to add a column to core_members table to use in my app, How can I do it?
Last reply by Adriano Faria, -
- 4 replies
- 391 views
Hello, I have a Queue extension on installOther(): public function installOther() { if( \IPS\Db::i()->checkForColumn( 'core_members', 'membersaway_on' ) ) { \IPS\Task::queue( 'memberaway', 'Away', array(), 1 ); } } The queue itself: class _Away { /** * @brief Number of members to run per cycle */ public $rebuild = \IPS\REBUILD_NORMAL; /** * Parse data before queuing * * @param array $data * @return array */ public function preQueueData( $data ) { return $data; } /** * Run Background Task * * @param mixed $data Data as it was passed to \IPS\Task::queue() * @param int $offset Offset * @return int …
Last reply by Adriano Faria, -
- 1 follower
- 1 reply
- 302 views
Hey, Is it possible to remove "style" from lazy loading? I would like to add lazy loading in user avatar.
Last reply by bfarber, -
- 1 follower
- 4 replies
- 457 views
Hey, I am updating my forum for IPS 4.4.5. I have a problem with the server table: I have geolocation errors: "BadFunctionCallException::0" #0 /home/1shot2kill.pl/public_html/applications/serverlist/sources/Library/Library.php(168): IPS\_GeoLocation::getByIp('145.239.16.78') #1 /home/1shot2kill.pl/public_html/applications/serverlist/tasks/serverListUpdate.php(43): IPS\serverlist\_Library::storeData() #2 /home/1shot2kill.pl/public_html/system/Task/Task.php(255): IPS\serverlist\tasks\_serverListUpdate->execute() #3 /home/1shot2kill.pl/public_html/system/Task/Task.php(224): IPS\_Task->run() #4 /home/1shot2kill.pl/public_html/applications/core/interface…
Last reply by aXenDev, -
- 5 replies
- 398 views
Greetings, anyone of you knows how to acces those variables in IPS? I would like to see methods and attributes of those objects, I need that to change the functionality of Club Enhancements widget to automatically get user into the first topic if there is only one that exists in topics list, Thank you.
Last reply by bfarber, -
- 1 follower
- 3 replies
- 464 views
Hi, After update in the last version 4.4.5 and several blocks have disappeared in the block manager. The problem is with custom block when the permission for "who can view block" is not on "all". For example here I create a block and just me (administrator) can view it In the block manager the block not display (see my" test category" is emtpy) But if I check all for "view block" Now the block appear in the block manager and I can add it on the sidebar The problem is if I want use a custom block for a specific group, I can't 😞 Can you confirm it ?
Last reply by newbie LAC, -
- 3 replies
- 322 views
Hi, What's the process that IPS uses to catch backend changes in the frontend? So for example, when a new notification is created, the user is notified without reloading page. Or when a new comment is added to a thread they are currently reading they are notified in real-time, etc... I would like to implement something similar and would like to use the same framework. Any info would be much appreciated.
Last reply by newbie LAC, -
- 1 follower
- 5 replies
- 405 views
Hello, In applications/core/modules/admin/languages/languages.php Method translate() Could you possibly split this method up so the $table-initializations happens in its own method and returned from that method? So the table settings can be easier manipulated by a hook. Ideally I think I would also like translateWord() to be refactored, but given you don't officially support adding columns on existing database tables, I guess I'll have to manage without.
Last reply by newbie LAC, -
- 2 replies
- 362 views
Hello, we're looking into how to get away from performing open heart surgery on the production install and instead move changes across a staging setup before applying them to the live site. As IPS Community allows for lots of dynamic configuration via the GUI/database, I am wondering if there even is support for a fully file based, VCS friendly transport of configuration. Ideally, we would like to deploy any change via a git checkout and import triggered by the CI/CD pipeline. I am sure other people have looked into this topic already, but I could not find a good starting point in the docs / forum search. If someone could point me into the right direction, …
Last reply by bfarber, -
- 2 followers
- 1 reply
- 338 views
Hi, My app has some content that loads with AJAX, this content needs to also work with javascript controllers and it doesnt. How can I reload my controllers so the AJAX loaded content js will work? Thanks
Last reply by Martin A., -
- 2 replies
- 538 views
I am trying to add a custom login handler following this documentation https://invisioncommunity.com/developers/docs/members-authentication/login-methods/introduction-to-login-methods-r172/ but can't get it working. Here are the steps I follow: 1. Enabled dev mode. 2. Created a new application named "testapp". 3. In the application's developer center created a hook to the class IPS\Login\Handler (file name LoginHandlerHook): //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } abstract class testapp_hook_LoginHandlerHook extends _HOOK_CLASS_ { public static funct…
Last reply by Alexander Yuganov, -
- 1 follower
- 5 replies
- 396 views
Tryingo to extend \IPS\Notification\Table, which extends \IPS\Helpers\Table\Table: /** * Constructor * * @param \IPS\Http\Url Base URL * @return void */ public function __construct( \IPS\Http\Url $url=NULL ) { /* Init */ parent::__construct( $url ); } This simple hook returns an error if the user has no notiications: Works fine if I have notifications.
Last reply by bfarber, -
- 2 followers
- 7 replies
- 329 views
As a continuing saga in the Punctuation Prophecy, i've got another chapter for you guys 🙂 (note: video might still be processing)
Last reply by bfarber, -
- 3 replies
- 331 views
I have a very specific need regarding searching only in my community forum, not the internet. I have a bucket, list, that has 3 columns of text. The 1st column list possible search results. The 2nd column list item to be placed on the web site based on the location of column 3. The 3rd column controls what location on the forum will receive the item, file, specified in the 2nd column. Bucket-List (3 column's) Bob, Picture, http://5message/&tab=comment-5 Tom, Map, http://chrome://settings/people Home Stead, Model, http://settings/people King Builders, Builder, Http://Forum/Bld/ Search Results (URL's not real) Search = Kina (Result equals N/A) Search = K…
Last reply by bfarber, -
- 4 replies
- 270 views
Isn't it decently risky using queued tasks, since offsets could be incorrect over time? For instance, let's say we want to send a notification to every member where column abc's value is 7. Well, in the time it takes to finish the queued task, members may have been deleted or their value in that column changed, but the offset is going to be based on the original set of data. Or would queued tasks be run quickly? Seems to me I have seen some sit around for a while. I know you can force them to finish, but many site admins may not know that or do it. And if the data set does change between the first notification and the last set of them, then some people could be …
Last reply by Midnight Modding, -
- 1 follower
- 1 reply
- 314 views
when working with forms, you can add attributes to the form itself, but not directly to the elements of the form (unless they are predefined like placeholder, min/max, etc), for the text input can we also get the option to define the natural autocomplete for text input fields (not the ajax autocomplete IPS does, the one this field does normally). https://www.w3schools.com/tags/att_input_autocomplete.asp i can define autocomplete to be off for the entire form by apply the attribute the form itself, but there are times i just want to disable it for a input or two and not the entire form.
Last reply by bfarber, -
- 1 follower
- 2 replies
- 327 views
How Capable is Forum 4.4.4 when using drop downs. I am brand-new. Worse than a newbie. That being said, here is my need. Currently I have 2 tabs, Browse & Activity, on HomePage. Before I get locked up into a lot of time that doesn't go anywhere I like to ask how this works. The 2 tabs on the HomePage and how they currently appear on my Forum. Browse: Forms Drop Down Menu, Forms, Downloads, Blogs, Staff, Online Users, Leaderboard Activity: All Activity, My Activity Streams, Unread Content, Content| Started, Search I have been playing around a bit so I might've put things where they don't belong such as Drop Down Menus. Listed below are my …
Last reply by Bob Snow, -
- 1 reply
- 483 views
Any reference to for this?
Last reply by newbie LAC, -
- 1 follower
- 3 replies
- 430 views
Have you investigated at all running IPS4 using the RoadRunner PHP application server? If not, I would appreciate some IPS dev looking into it. With RoadRunner you might be able to package IPS4 in a docker image for easy deployment using containers (or even directly on a Linux/Windows/Mac server). RoadRunner supports standards such as PSR-7 and gRPC for communicating between the server and the PHP application. Also, it is open source: https://github.com/spiral/roadrunner I think this might allow your customers that can run a Go binary (which is just about everyone) to get an Invision Community site installed and ready for ACP configuration in just minu…
Last reply by KT Walrus, -
- 1 follower
- 2 replies
- 340 views
I wish IPS would just have third party devs add app keys they want to use to some IPS database where we can be sure not to use someone else's key. I obviously don't want to use a key that it turns out someone else uses... so I feel like I have to make some weird app key to be more likely to be unique, rather than ones that are simple words alone. I think someone else already ran into the issue by using a key I used first, for instance, so I am trying to be sure I don't run into the same thing. 🙂 Of course on apps I am updating, I am stuck with whatever keys I used in the past (well, unless I want to spend a long time coming up with code to rename it or change table …
Last reply by Midnight Modding, -
- 1 follower
- 10 replies
- 474 views
Hey, I would like to add group sorting to my plugin. Based on the possibility of sorting from this plugin: I added the settings accordingly and led the plug to the state of operation as in the "Group Name Indicator". I added sorting in php: public function SecondaryGroupsIndicator() { try { $groups = array(); $selectedGroups = explode( ',', \IPS\Settings::i()->ips1s2ktest ); if ( \count( $selectedGroups ) ) { foreach( $selectedGroups as $groupId ) { if( \array_key_exists( $groupId, \IPS\Member\Group::groups() ) ) { $groups[] = \IPS\Member\Group::load( $groupId ); } } } return $groups; } } …
Last reply by newbie LAC, -
- 1 reply
- 448 views
Hello, \IPS\Content\Item::getItemsWithPermission() You don't allow to add columns to tables I've added new table and I want to order topics by column from new table. But I can't $subSelectClause = static::$databaseTable . '.' . static::$databasePrefix . static::$databaseColumnId; /* Are we doing a pseudo-rand ordering? */ if( $order == '_rand' ) { $subSelectClause .= ', SUBSTR( ' . static::$databaseTable . '.' . static::$databasePrefix . static::$databaseColumnMap['date'] . ', ' . rand( 1, 9 ) . ', 10 ) as _rand'; } $select = \IPS\Db::i()->select( $subSelectClause, static::$databaseTable, $where, $order, $li…
Last reply by bfarber,