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
-
- 2 replies
- 358 views
Hello! What numbers i must set while plugin task creating if i want that task run one time per day - in 01:00 after midnight? Thanks!
Last reply by Dima Turchenko, -
- 2 replies
- 275 views
Hello! I want that anybody explain me to how "follow by something" works. I am interested in 2 type of following content - forum and post So, imagine, i will turn on all types of notification How it works: If I follow "forum", I will get notifications when somebody adds new topic in that forum If I follow "topic", I will get notifications when somebody writes new post in that topic So if I following forum and it has subforums - i will not get notifications if somebody will add any new topic or post in them Is that working so? P.S. I need that if somebody follows a forum, then he or she automatic follows any new topic in that forum. Thanks
Last reply by Dima Turchenko, -
- 1 follower
- 10 replies
- 384 views
Hey, I tried to create a form with an upload section, for this i followed this documentation: So my upload form element looks like this: https://github.com/gamershost/Forum-Report-Archive/blob/master/modules/front/base/archive.php#L108 And my FileStorage like this: https://github.com/gamershost/Forum-Report-Archive/blob/master/extensions/core/FileStorage/Report.php However, when i upload a file, i'm gettings this response: I already chmodded my whole forum to avoid that this could cause the issue. What did I miss here? Thanks in advance.
Last reply by GriefCode, -
- 1 follower
- 2 replies
- 295 views
I wonder how follow to forum works? I thought that if I set follow some forum then i will get notification and email when somebody adds new content like start topic in that forum, but I get this only when I set follow directly on topic! Why that? Thanks
Last reply by Dima Turchenko, -
- 1 follower
- 4 replies
- 328 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
- 339 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
- 409 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
- 340 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
- 450 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
- 286 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
- 321 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
- 323 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
- 357 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
- 364 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
- 368 views
PLEASE HELP
Last reply by bfarber, -
- 1 reply
- 300 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
- 312 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
- 364 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
- 313 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
- 1k 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
- 549 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
- 372 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
- 551 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
- 330 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,