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
- 4 replies
- 254 views
Hello! For example I want to get list all children forums in forum with certain ID or Name, but find out that all methods tied to member! current logging or that u pass in method So to find out children of some forum i need do this by myself? there is no available api for this out of box In short, my goal is - get some forum1 by ID or Name, get all children forums in forum1, get all groups by every children forum where they have permission at least "read", and finally get all users of that groups And like I sad before I cant use built in methods in Forum model... Any advice would be appreciated Thanks!
Last reply by Dima Turchenko, -
- 5 replies
- 258 views
Hello! Imagine I create plugin and task inside it, how i could make test run this task?
Last reply by Dima Turchenko, -
- 2 followers
- 4 replies
- 325 views
Hi, I would like extend a method and need to execute my code AFTER the parent method is run but before it returns. The method is searchResult(). I have to manipulate $status object BEFORE it used in template. public static function searchResult( array $indexData, array $authorData, array $itemData, array $containerData = NULL, array $reputationData, $reviewRating, $iPostedIn, $view, $asItem, $canIgnoreComments=FALSE ) { $status = static::constructFromData( $itemData ); $status->reputation = $reputationData; $profileOwner = isset( $itemData['profile'] ) ? $itemData['profile'] : NULL; $profileOwnerData = $profileOwner ?: $authorData; $sta…
Last reply by Sonya*, -
- 2 replies
- 251 views
Hello, after I have finished the first part of my application. I deployed it on my production server, probably that one has not the default design. The custom design does not adapt at the moment. It was loaded over a hook: https://github.com/gamershost/Forum-Application/blob/master/hooks/hookCss.php Is there any reason why that does not work on other Themes? Regards
Last reply by GriefCode, -
- 2 replies
- 344 views
Hey, I'm trying to bring a page as front module, I used the same way as i used for an admin module, so my code is this: protected function manage() { $table = new \IPS\Helpers\Table\Db('dvstats_dota_elo_scores', \IPS\Http\Url::internal( 'app=dvstats&module=stats&controller=toplist' )); $table->langPrefix = 'elo_table_'; $table->joins = array( array( 'select' => 'conn.id, dvstats_dota_elo_scores.id as playerId', 'from' => array( 'dvstats_forum_connections', 'conn' ), 'where' => array( 'conn.dota_player_id=dvstats_dota_elo_scores.id' ) ) …
Last reply by Adriano Faria, -
- 1 reply
- 221 views
Hey, im currently creating an application which require an admin menu. But I cannot find in any docs the way how to add it. I assume since there is a page for it that you can someway setup all there under specific conditions. What are the conditions for that? I don't think that this require a hook, or am I wrong? Regards
Last reply by newbie LAC, -
- 8 replies
- 250 views
Hi! Situation next, I want register new users by myself and make them recieve notifications and mailing from certain forum At another words, newly created users must follow to some forum (or forum node) which I will set them. Is there any existing solution? Mb plugin or something? Any advices will come in handy Thanks!
Last reply by Dima Turchenko, -
- 1 reply
- 251 views
Hello, I wonder whether this is intention, but I couldn't think of a reason why you would do so. Why is the field "name" in core_members not set as unique field ? Since this field is being used as login name it doesn't make sense to allow duplicates here or am I wrong?
Last reply by bfarber, -
- 4 replies
- 260 views
Hello! First of all I want to ask - How I will test my developing plugin while i am working on it? Do i need always create xml file, then install, then try to use plugin? I mean in usual cases u write some code refresh page and see what is wrong, how it will happen in plugin(application) development here? Second - now I set DEV mode, all going good but after some manipulation with plugin which i develop there is some error at the frontend of suite! in /system/Theme/Dev/Template.php88 BadMethodCallException COPY NO_TEMPLATE_FILE - but in admin area nothing change and works pretty well! I am sure that I didnt do anything wrong!!! …
Last reply by Dima Turchenko, -
- 1 follower
- 6 replies
- 278 views
Hello! I try to create some simple plugin and wonder where I could get info about IPS classes, description about how system works? Some time ago i was using framework CI for developer purposes, and it has pretty well docs For example - class Email, then goes description what class does, then description of classes methods, then examples of it usage and so on All this in beauty view with good styling where i can easy find information i am looking for. How I can get here some kind of same information about classes IPS Framework? About how some legacy application works (for example - forums) Or I need to debug every request to find where login,…
Last reply by Dima Turchenko, -
- 3 replies
- 290 views
PLEASE HELP
Last reply by bfarber, -
- 1 reply
- 234 views
Hello, first of all: Great step supporting developers here with a new documentation and decent technical staff! Pretty hard to get technical answers by asking via support. The use case: I would like to enhance the nexus features by writing a new adminpanel plugin. For Board admins who use expiring groups as "softwarelicensing" there are lots of missing options. One example: You would like to do a giveaway or some kind of compensation for users who bought a specific expiring package (let's call it vip access). Right now there is no feature which would allow to add time until VIP access expires. My idea: It looks like I want to update tablero…
Last reply by Mark, -
- 1 reply
- 229 views
Is it possible to run an SQL query or something to increase the subscription time for all users with a subscription?
Last reply by bfarber, -
- 1 follower
- 6 replies
- 270 views
Can you please add a new optional parameter on item contentCount? I have a setting in one my resources that exclude records on category view based in some columns. So it works fine on category view: But it keeps showing the counter on sidebar categories: I thought on a new array parameter where you can inform your columns. That would help a lot and would avoid hooks in IPS\Content\Item::contentCount() or is there anything easier out there that I'm missing? Tks.
Last reply by bfarber, -
- 2 replies
- 224 views
Can you please add a minItems to the Stack field? class _Stack extends FormAbstract { /** * @brief Default Options */ protected $defaultOptions = array( 'stackFieldType' => 'Text', 'removeEmptyValues' => TRUE, 'maxItems' => NULL ); Sometimes we need to limit by a min entries too, not only max. Thank you.
Last reply by bfarber, -
- 1 follower
- 27 replies
- 875 views
Lately I've been going through all my old todo lists and code and I've been finding a lot of notes I made about reviews not having the same treatment as comments. One example is the other topic I made yesterday: Another topic is the previous one (thought it is not exactly related to a missing function, but rather updating an existing one): The point is that the reviews extension has less "default" methods available (I did notice another 2 but I can't remember the names right now), for example I have added in my own Item class the lastReviewer() method which does NOT exist while lastCommenter() is already available for the comments extension. C…
Last reply by teraßyte, -
- 1 follower
- 3 replies
- 330 views
Hello, is there any topic saying how to properly configure a Pagination for IPB4? I'm making sort of Player Panel and there is like 25k rows to display and I need to do a Pagination but I didn't found any topic saying something about Pagination that I understand...
Last reply by bfarber, -
- 2 followers
- 9 replies
- 294 views
Hi there, because of stupid German laws, we need to restrict the ability to create a new account so you only can create one between 23 o'Clock and 6 o'Clock. I have good PHP knowledge, but never created something for the IPBoard, so i need some help here, maybe links that may show me how the hooks are working. The Plugin itself will be simple, get current \DateTime()-Object and lookup if the current time is between 06 and 23 o'Clock, if yes, do nothing. Otherwise show a message that the Registration-Process is currently not available. Hope you understand my needs. Kind Regards, Padrio
Last reply by Daniel F, -
I'm not a Developer and was able to download the SDK without even being signed in. Is that right?
Last reply by bfarber, -
- 1 follower
- 4 replies
- 439 views
I have tested some time this field but when try to get submitted values the result is not as expected. //<?php $type = new \IPS\Helpers\Form\Select( 'where[0][]', NULL, FALSE, array( 'options' => array( 'include' => 'include', 'exclude' => 'exclude' ) ) ); $location = new \IPS\Helpers\Form\Stack( 'where[1][]', array(), FALSE, array(), function($val){ if ( $val ) { foreach ( array_filter( is_array( $val ) ? $val : array( $val ) ) as $s ) { try { $s = (mb_substr( $s, 0, mb_strlen( \IPS\Http\Url::baseUrl() ) ) === \IPS\Http\Url::baseUrl() OR filter_var( $s, FILTER_VALIDATE_URL ) !== FALSE) ? $s : \IPS\Http\Url::baseUrl() . $s; $url …
Last reply by bfarber, -
- 1 reply
- 238 views
Hello! I really need to display on the page ranking of the participants on any grounds. What is the code to create this? Requirements are: 1. You can choose a sign by which the ranking (e.g., number of messages or the amount of reputation). 2. You are able to choose different periods (week, month, year, all time). I need a template similar rating so I can figure out how to assign ratings under other signs.
Last reply by bfarber, -
- 1 follower
- 1 reply
- 233 views
As per title, can you please add one and also pass back all the parent values that have actually changed? I always need to run some code when the parent ID changes, previously I was extending _afterSave() in my own module, but I noticed that it didn't work when I re-order the nodes in the tree by dragging them. Right now we have an _afterSave() function we can extend/overload when saving a node in ACP, however, there is no way to extend the reorder() function unless we extend it first and copy/paste almost the same code. My goal was to add my own code AFTER the function runs but I can't because there is a redirect/sendOutput at the end of it. I have worked aroun…
Last reply by bfarber, -
- 2 followers
- 14 replies
- 830 views
I have a few suggestions, One i've made before, but i thought i'd dust it off. 1. can we have the "id" of the forms, if not set, bet set to the helpers name, with "_js" appended to it? Form helpers are used ALOT by us developers, it would be nice not to have to fill in 6 parameters, that all have different different default values, just to set the ID just so we can use "togglesOn" or "togglesOff" (or variant there of). the option would still be there in case we want to override the "default" id of name with "_js" appended. this would make the code a lot easier to read, especially if we are just using it for the toggles options. 2. if the field is disabled, have…
Last reply by CodingJungle, -
- 2 followers
- 10 replies
- 550 views
When using the REST API, a GET request is quite easy as long as .htaccess based SEO URLs are activated, this URL string would work: /api/forums/topics?sortBy=date&sortDir=desc But with deactivated SEO friendly URLs, this string would work: /api/index.php?/forums/topics but this one not: /api/index.php?/forums/topics?sortBy=date&sortDir=desc So how should I add the extra GET variables without generating an 3S290/4 INVALID_CONTROLLER error?
Last reply by IPBWI.com Matthias Reuter, -
- 1 reply
- 336 views
I (others...) noticed that the jquery-ui you provide with the core app doesn't include everything that jquery-ui normally includes. Any particular reason? If developers want to code with that and your included version is missing what is needed, that's an extra (and coliliding load) of jqueryui that could/should be avoided on such a baseline library. Also, the core version provider is legacy now, new version (marked for jquery 1.7) is 1.12.1; IPS included version is 1.11.4 DEFAULT: /*! jQuery UI - v1.11.4 - 2015-03-11 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dial…
Last reply by Mark,