Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,734 topics in this forum
-
- 1 follower
- 0 replies
- 577 views
Hi, I have simple "stock" JS code: ;( function($, _, undefined) { "use strict"; ips.controller.mixin('customSubmitWrapper', 'gallery.front.submit.wrapper', true, function() { }); }(jQuery, _)); But every time when I rebuild app I'm gettings this: <?xml version="1.0" encoding="UTF-8"?> <javascript app="dp45ytembedgallery"> <file javascript_app="dp45ytembedgallery" javascript_location="front" javascript_path="controllers/submit" javascript_name="ips.submit.main.customYTSubmitWrapper.js" javascript_type="controller" javascript_version="10000" javascript_position="1000050">;( function($, _, undefined) { "use …
Last reply by DawPi, -
- 6 replies
- 2.1k views
How do we query a database separate in an application? For example, if an application has something called profileSongs, how would we query that and retrieve a table value in php? Any examples or documentation available?
Last reply by Daniel F, -
- 1 follower
- 6 replies
- 1.7k views
Hello, how do I send a private message in IPB4? In IPB3 there were some functions for it but didn't find them in IPB4 yet Best Regards
Last reply by Adriano Faria, -
- 4 followers
- 8 replies
- 875 views
Profiles on IPS have virtually no meta tags, at all. This could be improved by adding a link to the users avatar and maybe a general description line like so, $description = "Explore {$this->member->name}'s " . \number_format( $this->member->member_posts ) . " posts on " . \IPS\Settings::i()->board_name; $newMeta = [ 'title' => $this->member->name, 'description' => $description, 'og:title' => $this->member->name, 'og:description' => $description, 'twitter:description' => $description, 'o…
Last reply by SeNioR-, -
- 1 reply
- 645 views
Is there a guide on how to add a settings form like plugins for applications? I wanted to add a simple settings form for my application that was originally a plugin. Thanks!
Last reply by Miss_B, -
- 1 follower
- 1 reply
- 593 views
Im trying to use a template from my app on a widget using this code: {template="homeArticles" app="myappname" location="front" group="myappname" params="$articles"} And for some reason it doesnt look for the template on the app, instead it tries to find the template under the core app.
Last reply by Daniel F, -
- 4 replies
- 1.7k views
I must be blind - did the process for requesting support disappear on the website? Or should one just request support through their installation now? Also, do we know the timeline on when the following bug is being addressed? Got some seriously antsy clients who this is affecting big time. Thanks!
Last reply by Jon Erickson, -
- 1 follower
- 3 replies
- 1.5k views
How exactly does Invision Power Board handle error logs and messages? Generally we use try catch. catch ( \RuntimeException $e ) { if ( method_exists( get_parent_class(), __FUNCTION__ ) ) { return \call_user_func_array( 'parent::' . __FUNCTION__, \func_get_args() ); } else { throw $e; } }
Last reply by Seth Jones, -
- 8 replies
- 623 views
Hi, during registration a check box is presented. User can give themselves a Username. T+Cs must be agreed to. There is another check box "send me news and info". We have a bigger site were we send email news from, and we don't want to ping users phone every comment they get, so we want to remove this. The code is nested, does anyone know the template where I can remove the check box for email news. We use an SSO, but this appears after that setup. Picture in Swedish enclosed.
Last reply by Clunk, -
- 0 replies
- 547 views
I am looking for r a way to put content that is related to the article in the sidebar. so say its a review of a TV show things like screenshots. the review's overall rating on attributes of the series but only show in the article.
Last reply by Sinistra Sensei, -
- 1 follower
- 3 replies
- 1.8k views
In the applications, I have updated the language.xml file with the new strings, and it is not imported into the application directly in dev_mode. How do I update language words in the application as for plugins this works for what I expect just not for applications. Inside the data folder of my application, I have where the lanague.xml is modified after the application is installed. What do I need to do for it to save to the application properly?
Last reply by Daniel F, -
- 1 follower
- 0 replies
- 465 views
Hi, I'm trying change column with lang keys in DB when is not filled then column should be null, but it isn't. It is not filled: In database when I save node: I have this code: /** * [Node] Format form values from add/edit form for save * * @param array $values Values from the form * @return array */ public function formatFormValues($values) { if (!$values['axenserverlist_debug_text']) { $values["axenserverlist_debug_text"] = NULL; } return $values; } but it doesn't work for me, because always return string with comma. How can I change the code when no one has typed anything in input, then retu…
Last reply by aXenDev, -
- 1 follower
- 2 replies
- 553 views
I’m updating a plugin to 4.5 which contains widgets. The widget settings now automatically contain a Visibility tab—but it’s empty. How is that controlled? How to add the actual visibility settings? Or how to turn that off? I checked the forum and the developer section, but I don’t see any information about this.
Last reply by opentype, -
- 1 follower
- 2 replies
- 1.5k views
Apologies for the novice question, I'm slowly coming up to speed on using the developer tools to customize our site. We find we get a lot of reported posts without a supplied reason, so want to make that field required. I've created a theme hook and believe I have found here the report dialog is initiated <li class="ipsMenu_item"> <a href="" data-ipsdialog="" data-ipsdialog-remotesubmit="" data-ipsdialog-size="medium" data-ipsdialog-flashmessage="" data-ipsdialog-title="{lang="report_post"}" data-action="reportComment" title=""> {lang="report"} </a> </li> under \IPS\Theme\class_forums_front_topics However, it's not terribly obvious…
Last reply by Daniel F, -
- 2 replies
- 521 views
I'm not too familiar yet with Invision's codebase but would it be easy to register a class early in the booting of the app for something like reporting 500 errors or other weird exceptions to a service like Bugsnag? Integration is generally easy in other PHP apps but would like to see if it could be done with Invision without altering the main source code. Bugsnag docs › Platforms › PHP › Other
Last reply by Daniel F, -
- 1 reply
- 431 views
I am migrating my community to a new website with the following steps: Compressed the community folder on the server, downloaded the zip, uploaded it on the new server, and extracted it. Downloaded a backup of the database and then restored a database from the backup on the new server. Added a new database user with permissions. Adjusted values in the global_conf.php file on the new server, including database username, password, and community URL. Everything works perfectly on the new server, except that all the font-awesome icons are missing. What's going on?
Last reply by Interferon, -
- 1 follower
- 2 replies
- 633 views
When I open the menu to create a block with die Pages application there is an entry called block_oembed in the list. I have no idea where it came from and how long it's been there. I can't create a block with this entry because there is an error after clicking on next. LogicException: cms_error_block_plugin_not_found (0) #0 /httpdocs/system/Node/Controller.php(489): IPS\cms\Blocks\_Block->form() #1 /httpdocs/system/Node/Controller.php(388): IPS\Node\_Controller->_addEditForm() #2 /httpdocs/system/Dispatcher/Controller.php(90): IPS\Node\_Controller->form() #3 /httpdocs/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute() #4 /httpdocs/applic…
Last reply by Daniel F, -
- 1 follower
- 1 reply
- 898 views
Hello, when I delete nexus gateway I'm getting this error: Whoops\Exception\ErrorException: Undefined index: gatewayKey (8) #0 C:\wamp\www\45\applications\nexus\sources\Gateway\Gateway.php(102): Whoops\Run->handleError(8, 'Undefined index...', 'C:\\wamp\\www\\45\\...', 102, Array) #1 C:\wamp\www\45\system\Patterns\ActiveRecord.php(148): IPS\nexus\_Gateway::constructFromData(Array) #2 C:\wamp\www\45\applications\nexus\sources\Transaction\Transaction.php(116): IPS\Patterns\_ActiveRecord::load(7) #3 C:\wamp\www\45\system\Helpers\Table\Db.php(432): IPS\nexus\_Transaction::IPS\nexus\{closure}(7, Array) #4 C:\wamp\www\45\system\Helpers\Table\Table.php(489): IPS\He…
Last reply by Daniel F, -
- 1 follower
- 4 replies
- 1k views
I get current URL with this: \IPS\Request::i()->url() sometimes it returns : http://ips.valacoding.com/index.php?/store/product/2-the-compound-effect/ and sometimes returns : http://ips.valacoding.com/index.php?app=core&module=system&controller=widgets&do=getBlock&blockID=app_nexus_latestProducts_tfxsn9iaq&pageApp=nexus&pageModule=store&pageController=product&pageArea=header&orientation=horizontal..... Is there a specific method that always returns URL in friendly form? [ http://ips.valacoding.com/index.php?/store/product/2-the-compound-effect/ ]
Last reply by ReyDev, -
- 0 replies
- 501 views
Hi, Is there a simple way to redirect a user to the manage purchases page upon completing a purchase?
Last reply by Jacob Kemple, -
- 8 replies
- 1.1k views
Hi all: I run www.hoosiersportsnation.com. We experienced a traffic surge this morning and our site isn't loading properly. At first I thought it was a hosting issue - our disk usage was really high on our VPS. I both upgraded our VPS and deleted some old backups to free up space but, alas, no fix yet. Bluehost is telling me it's a coding/software problem, something relating to PHP. Is anyone able to help me diagnose this? Here are my latest few error logs, in case that is helpful: [Mon Mar 15 11:21:08.616393 2021] [:error] [pid 29656:tid 47160744400640] (12)Cannot allocate memory: [client 5.188.84.65:33539] couldn't create child process: /usr/sbin/suph…
Last reply by bfarber, -
- 1 follower
- 3 replies
- 491 views
We have a database of schools that we're searching with the standard database page and filters. The odd part is that boolean fields as filters are searching as if 0 is selected rather than <nothing> Example: /?advanced_search_submitted=1&csrfKey=53aae60572ae6367eaeaa2280dc62610&content_field_268[1]=North%20Chicago&&&content_field_304_checkbox=&content_field_305_checkbox=&content_field_306_checkbox=&content_field_307_checkbox=&sortby=field_267&sortdirection=asc&record_type=all&time_frame=show_all There are 327 schools in 268="North Chicago" But only 5 show up in the database page search. These 5…
Last reply by mcsg, -
- 2 replies
- 1.1k views
I am testing conversion from vBulletin 3.8.11 but BB Code does not seem to convert. Am I missing any settings or this is the normal behaviour?
Last reply by CoffeeCake, -
- 1 follower
- 5 replies
- 1.6k views
I have 2 different \IPS\Helpers\Form\Node on the same form. Both use the same class of node and have only class set and a default value. Somehow it is messing one up where it just says "Select" and does not have the default option selected from it, even though I confirmed the correct values. In fact I can even put just ONE Node input on the form and sometimes it has this problem. It did not do this before 4.5. the code is as simple as this: $form->add( new \IPS\Helpers\Form\Node( 'pickemsx_away_team', $game ? $game->team_two_id : NULL, TRUE, array( 'class' => '\IPS\pickemsx\Pickem\Team' ) ) ); I even changed that default to a hardcoded 11 …
Last reply by Midnight Modding, -
- 2 followers
- 4 replies
- 1.2k views
Debugging eval() issues (hooks, etc.) are very hard since the code is loaded in the memory, so I wrote a class that can write in the /tmp/ directory the php eval'd code so one can use xdebug on the code. Moreover, it does search for the namespace and the first class name and sets the file names based on that (for the ones that do not have a class insides the file name will be sha1($code)). I have shared this patch in hope you can implement something similar for a better debugging mechanism. It can be imported with git so you can verify it. It would be great if the core would use a class like EvalDebug::eval($code) instead of eval($code) which is impossible to modify …
Last reply by PurplePixel,