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
-
- 5 replies
- 658 views
Hi, I saw that IPS stores the "ips4_member_id" and "ips4_pass_hash" in the user's cookie. The value looks for my test account looks like this: 61f2a3256147800655e3d38df57db645 , however the members_pass_hash in the core_members table looks completely different (like this: $2a$13$A5WevLFUT2VxECdDeK8AbOYjltYRg0.PvKuRTG3oi[...]E). I wonder how I can use the cookie value in order to make sure the user is valid (and not faking a cookie with a desired member_id)? I noticed that everything before the dot stored in my member's pass hash is 1. The BlowFish crypt method and it's cost parameter and 2. the salt. However everything behind the key is completely different tha…
Last reply by bfarber, -
- 1 follower
- 5 replies
- 377 views
Hey, I have included the class in the title in my code. However, the filters appear not to work with ajax calles. They are always rendering a new page, probably then the chart without any header as it also sets 'noHeader=1'. My Code: /** * @return void */ protected function manage() { $chart = new \IPS\sharedstats\DbIntegration\DynamicChart( \IPS\Http\Url::internal( 'app=sharedstats&module=stats&controller=dashboard' ), 'stats_games', 'datetime', '', array( 'isStacked' => TRUE ), 'LineChart', 'daily' ); $chart->addSeries( \IPS\Member::loggedIn()->language()->addToStack('games'), 'number', 'COUNT(*)' ); $cha…
Last reply by HeadStand, -
- 2 followers
- 18 replies
- 689 views
Hello, I have tested with @Joel R website and localhost the plugin Chatbox Extender and Rules app and I have intercepted an error, but i don't know if it must be fixed by @Kevin Carwile or IPS Staff. I leave some screenshot
Last reply by BomAle, -
- 1 follower
- 6 replies
- 506 views
Hello, I am confused about the documentation regarding Javascript resources and I really want to find out if I am doing something wrong or if the documentation is simply wrong. According to this documentation: \IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'front_websocket.js', 'botuserpanel', 'front' ) ); My file structure looks like this: However they won't be loaded when I visit the very simple page. Even though CodingJungle showed me an alternative way of adding javascript resources (which actually worked) I would like to know what's up there. The same problem applies to add…
Last reply by inkredible, -
- 2 followers
- 2 replies
- 443 views
Hi guys, I need your help. I am looking for a way to check if a custom profile field (YES/NO field) is checked (=1) or not, globally! So not only on a forum post or anything, no - it needs to be displayed all around the website. The code should check if the visitor is logged in AND if he has the custom profile field on Yes (required field during registration if yes or no). If requirements are met, then content should be shown otherwise no content. (this is used for a block for example but even in parts of the design template) So far I came up with the following: {{if \IPS\Member::loggedIn()}} {{$member = \IPS\Member::loggedIn();}} {{$fieldData = $me…
Last reply by LukasGr., -
- 0 replies
- 290 views
Hey, I had this issue previously once already. My form within a step is executed on load of the new step: This is my code: $steps = []; $url = \IPS\Http\Url::internal( 'app=sharedstats&module=report&controller=create', 'front' ); [....] /** * STEP 1: Account Connection Selection */ $steps['sharedstats_report_create_account'] = function($data) use ($accounts, $names) { $form = new \IPS\Helpers\Form('', 'continue'); $form->addHeader('Select Battle.net Account'); $form->add( new \IPS\Helpers\Form\Select( 'sharedstats_report_select_account', null, true, ['options' => $accounts])); if ($values = $form->…
Last reply by GriefCode, -
- 1 follower
- 5 replies
- 294 views
Where can I read up on the following structures and which options and variables they accept? app=gallery&module=gallery&controller=settings&do=rebuildImages app=gallery&module=gallery&controller=settings app=gallery&module=gallery&controller=browse&do=rss app=gallery&module=gallery&controller=view&id=39570 I am trying to return back the real filepath, So I am looking for something like.... app=gallery&module=gallery&controller=view&id=39570&filename But I know &filename doesn't exist
Last reply by bfarber, -
- 4 replies
- 302 views
Hi there. I'll take this as a Downloads app example but happens with any app. 4.1.17 has a new nice feature to edit (add/remove) tags directly on item file view: But it doesn't update the TOPIC tags, if you're using a support topic. It only updates when you edit and save the file, due to the syncTopic() on processAfterEdit function. What should I extend to make the topic get updated too or should this be reported as a bug? Tks.
Last reply by Adriano Faria, -
- 1 reply
- 270 views
So we have set up Wordpress SSO - But it would be really handy if people could manage their information in one place and not have to keep logging in and out and switching between the two areas as it seems REALLY clunky and not user friendly at the minute. Any ideas?
Last reply by bfarber, -
- 8 replies
- 435 views
Hey, I am writing a new application and I want to save "rules" as a setting using a decent editor. I have checked the IPS Chat application and I saw that you were using a "Translatable" so I tried to copy that idea. Unfortunately I am struggling with it. General information: My application is called: nodejschat My language key for this setting is: nodejschat_rulex_text My setting key is called: nodejschat_rules Saving and accessing two textfields (nodejschat_nodurl and nodejschat_nodeprivatekey) works without issues. I have created the setting "nodejschat_rules" in my developer center (along with other settings for this application). …
Last reply by Flitterkill, -
- 2 replies
- 286 views
I am building a mobile application that uses the REST API to display forum content with the app. Users can view threads from my forums within the app. The REST API returns HTML for the content of each forum post. I am struggling to get this styled correctly to match what the user would see if they visited the forums from a mobile browser on their phone. I have tried linking in the stylesheets I pulled from the raw HTML of my forum and that gets me close, but the one thing I lose is the responsive/adaptive UI which is important in my case as I need the content to scale to different mobile devices. Long story short, is there a recommended way to correctly style the HTM…
Last reply by DrumScorps, -
- 1 follower
- 7 replies
- 343 views
Hey, i just run into an error when I want to create a controller for the admin area: Anyone knows that issue or knows what to do? Greetings
Last reply by CodingJungle, -
- 1 follower
- 4 replies
- 416 views
I'd like to add some HTML content to CKEditor editing area after user clicks on something. Previously it was done by the following code: var editor = ips.ui.editor.getObj($('[data-role="replyArea"] [data-ipsEditor]')); if (editor) { editor.unminimize(); ... editor.insertHtml(html); editor.focus(); } But this method doesn't work properly on the last IPS4 builds. I get the weird error right after executing editor.insertHtml(html): "q is undefined"
Last reply by bfarber, -
- 1 follower
- 3 replies
- 332 views
Hi! Can somebody explain how i could manage setting or just custom values like title of links or buttons per lang if i have more then one language? with example or send me some good link for reading Thanks!
Last reply by bfarber, -
- 4 replies
- 298 views
Hello! I want to add custom checkbox to the add new group form and then handle with it additional action after new group will be created But couldnt find any theme or code hook for that!
Last reply by Dima Turchenko, -
- 9 replies
- 367 views
Hello! I am trying to develop some plugin and already did code hook successfuly but I dont know how send my own variables to output and use their. Can somebody point me in right direction? p.s. i had read developer documentation - seems its not obvious and easy
Last reply by Dima Turchenko, -
- 3 followers
- 10 replies
- 593 views
Where is I can find Documentation on \IPS\Helpers\Table\? And can you write down link to full Documentations on all Method`s ets?.. Like this http://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/ With description, instans, varialbe, parametrs and Examples????
Last reply by Aiwa, -
- 2 followers
- 7 replies
- 332 views
I'm studying xAPI and noticed that Rest API is available with IPS4. Before you get frustrated with me: when I mean studying xAPI I mean just read a few articles and going to begin a deep dive. But I was wondering, in the Admin section of IPS4 where it allows for setting up REST API...where is the "Do-It" button. That might be soooo simplistic. Anyway, don't mean to waste your time but if you have extra, thanks. Ivan
Last reply by Captain Ginns, -
- 3 replies
- 360 views
Hello, \IPS\Helpers\Form\Codemirror doesn't work in widget configuration Steps to reproduce 1. Create new plugin 2. Create a widget 3. Open widget file and add in configuration $form->add( new \IPS\Helpers\Form\Codemirror( 'widget_Codemirror', isset($this->configuration['widget_Codemirror']) ? $this->configuration['widget_Codemirror'] : null ) ); 4. On frontend open widget configuration Result
Last reply by Matt, -
- 7 replies
- 514 views
Hey, i've just continued on my app today and i have issues deploying it: It is not the directory permission. This one is set to 777 on the application directory: So it appears it is the first issue. Does anyone has experienced such an issue so far? What could be done for resolving it? My whole source code including the latest version is here: https://github.com/gamershost/Forum-Application Thanks for the help and merry christmas. Greetings Edit: It is worser than expected. Somehow the application was partially installed. Some hooks are there from the new application. Which is painful since it destroied my suite. When an ap…
Last reply by bfarber, -
- 1 reply
- 304 views
Adding columns doesn't seem to work in the developer center: https://streamable.com/mrerb . A friend of mine tried it as well, but he faced the same issue. What's wrong here? Edit: When I rightclick on "Add new column" -> open link in new tab it will work just fine. So probably there is something wrong with your popup window / javascript? Edit 2: Is there a reason that you don't support the unique modifier for columns?
Last reply by bfarber, -
- 1 follower
- 1 reply
- 323 views
Hello, I am writing a nodejs chat application and I wonder how I should store my settings. In your complete plugin tutorial you introduced the IPS settings repository which is obviously great for storing settings. However my settings need to be available for my node.js chatserver. Is it still possible to access the settings for my nodejs server in that case? An option would be storing these settings in an own table. What do you recommend? By the way: Your complete plugin tutorial was very useful for getting started, I hope you guys consider to write a complete tutorial for an application as well.
Last reply by HeadStand, -
- 2 replies
- 352 views
Hello, I need to build an application (or plugin?) in the admin area that would extract data from db (number of total posts by a particular person in a given period last month-last week-last day). I tried to look for an example in the internet but it seems that IPS version 4 is not very documented. Thanks in advance.
Last reply by bfarber, -
- 1 follower
- 6 replies
- 417 views
Hello, I would like to write an own chat application using an external node.js server. For this purpose I want to "authenticate" users serversided. I thought it would be the best to send the user's cookie along with the initial connection. I am not experienced with the IPB framework though and hence I wonder how I can get the user's cookie and how I can decrypt the cookie on my node.js server. Also: Is there a documentation about all existent IPB classes? All what I have found until now are forum posts about the existent IPB classes and it's members. Best regards, Inkredible.
Last reply by teraßyte, -
- 1 reply
- 280 views
Hello, applications/gallery/sources/Image/Image.php Methods nextImages and previousImages Find 10 difference ASC, DESC, <, > Please refactor
Last reply by bfarber,