Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,679 topics in this forum
-
- 4 replies
- 263 views
Can someone please provide an explanation on what the difference is between a 'plugin' and an 'application' on ipb4?
Last reply by bfarber, -
- 5 replies
- 285 views
Hey all, I am building a main page that fetches data (news) from my forum, and I would like to be able to add a sort of 'forum image' database column, and a way to upload a file that I could fetch with my posts from the database. What I mean by this is if I have several forums, one called 'general discussion', one called 'suggestions', one called 'support' I would like to be able to upload an image for each type of forum, so that way on the main page, users will be able to easily distinguish between the content of each story/post. Also of course for a more aesthetic layout.
Last reply by bfarber, -
- 1 follower
- 1 reply
- 246 views
Hey, is there anywhere an topic how i can create a custom embed in the ckeditor? Like if im including a topic within a post? I would have basically a link to one of my applications and i would like to display it not as plain link, there should be some info around. Any referencing code would be also nice :-) Thanks
Last reply by HeadStand, -
- 4 replies
- 271 views
Hey, im having some trouble that my javascript is not loaded within my applications. I have tried it now in two ways: Within the controller action: \IPS\Output::i()->jsFiles = array_merge(\IPS\Output::i()->jsFiles, \IPS\Output::i()->js('clipboard.js', 'dvstats', 'front')); \IPS\Output::i()->jsFiles = array_merge(\IPS\Output::i()->jsFiles, \IPS\Output::i()->js('gamelistcopy.js', 'dvstats', 'front')); With a hook: abstract class dvstats_hook_hookJs extends _HOOK_CLASS_ { protected static function baseJs() { parent::baseJS(); if ( !\IPS\Request::i()->isAjax() ) { …
Last reply by GriefCode, -
- 1 follower
- 5 replies
- 343 views
Hey, I have created a wizard which includes per step different forms, all over i have the code here: https://github.com/gamershost/Forum-Application/blob/master/modules/front/report/add.php Now my issues: Is there any way to define your custom template for a Radio Button, I really dislike using html on php: https://github.com/gamershost/Forum-Application/blob/master/modules/front/report/add.php#L92-L108 When i'm continueing to the next step, it appears that the form was submited once, i'm getting always an validation error that a field is reuired. I assume that somehow the form gets submited by just opening continue the wizard: What is a good …
Last reply by teraßyte, -
- 1 follower
- 4 replies
- 293 views
Hey, I just got a kinda different question, i mostly make some thoughts on parts i program and since i am not that familiar yet with the IPS Framework i wanted to ask here and collect opinions and suggestions. I basically want to create a form that filters data by every selection. To explain my dataset a bit more, i got players that playing games on my service. A game has 10 players. Mostly, the players play 3-4 games and then visit the forum to report someone. And I would like to adapt a really easy system. That does mean the report form should look like this: The reporter picks one of his recent games The reporter picks one of the players of…
Last reply by bfarber, -
- 3 replies
- 321 views
I'm having some trouble in grouping by, this is my code: $table = new \IPS\Helpers\Table\Db('reportarchive_data', \IPS\Http\Url::internal('app=reportarchive&module=base&controller=archive'), null, 'reportarchive_data.id'); $table->langPrefix = 'archive_view_'; $table->joins = array( array( 'select' => 'reportarchive_history.author_id lastAuthor, reportarchive_data.id as reportId, reportarchive_history.date as lastModified', 'from' => 'reportarchive_history', 'where' => array('reportarchive_data.id=reportarchive_history.reportarchive_data_id') ) …
Last reply by GriefCode, -
- 1 reply
- 196 views
Can anyone please explain why does the posts table inserts inline styles straight into the table? It makes it very difficult to use the rest api to fetch posts, as well as display them on my external site. I have to go through and manually filter out the inline styles with regex.
Last reply by bfarber, -
- 3 followers
- 7 replies
- 427 views
I am currently working on building IPB into a custom website, so there is a lot involved with that. I find it ridiculous that I have to pay $15 just to move the installation path even when im installing it on .dev domains locally on my machine. Is there something I am missing, or does development not adopt the whole development/staging/production life cycle, if I can only install it once, i would imagine that want me to do all my development in production?
Last reply by Lindy, -
- 1 follower
- 2 replies
- 298 views
Is it possible to add extra setting tabs to the admin panel for the board?
Last reply by bfarber, -
- 4 followers
- 16 replies
- 640 views
Dear Support, while IPBWI for WordPress v4 is going big steps forward in development, I want to make sure to avoid piracy as I did successfully with v3 before - but want to allow sales through IPS marketplace. So here are my questions: Do have a feature to sell ioncube encoded, domain binded packages? This would require to allow customers to re-purchase an item several times for each domain they want to use and if both above are not possible: Do you allow to utilize IP.board marketplace API to sell a wrapper script first which handles license status and downloads/install encoded files on customer's host to enable functionality? As I am goin…
Last reply by DesignzShop, -
- 3 followers
- 2 replies
- 254 views
I'm wondering if it would be possible to have a new extension implemented that would allow us to easily add tabs to the User Account Settings page. I am increasingly finding myself writing hooks to do this, and it just seems like a natural place to have an extension. Thoughts?
Last reply by bfarber, -
- 1 reply
- 245 views
Is there a way I can automatically add members to a certain secondary group if they visit a page?
Last reply by bfarber, -
- 3 followers
- 11 replies
- 469 views
Hi, Could you let us be able to retrieve the values of the Search result object? I'm thinking about system/Content/Search/Results.php (I think) I'm currently writing a very simple endpoint (outside of the API) to be able to return some search results with json. This is so another page we have can then use this "API" to query for some search results to display in their own manner. Currently I have a hacky workaround: <?php /* Initialize IPS 4 framework */ require_once('../init.php'); $disp = \IPS\Dispatcher\Front::i(); /* Do we have anything to search for? */ if( ! isset( \IPS\Request::i()->q ) and ! isset( \IPS\Request::i()->tags ) ) { ec…
Last reply by TSP, -
- 1 follower
- 1 reply
- 211 views
Has anybody done ID-card or Mobile-ID logins for IPB before? In Estonia it's common that companies let you authenticate yourself with an ID-card or Mobile-ID. Then you can be certain theres a human behind every account. But it's not an add-on, every company have developed their own system. Have anybody done such system or are familiar with it? So far I have only seen platforms other than IPB using this kind of authentication. Is it hard to achieve in VS? Found some instructions here: http://id.ee/index.php?id=35748 Thanks!
Last reply by bfarber, -
- 1 follower
- 2 replies
- 258 views
Hi, I'm using the API to check if a user is logged in (\IPS\Member::loggedIn()->member_id). I also make sure that he is not banned (\IPS\Member::loggedIn()->isBanned()). This works fine. However, some profiles are fake ones that did not respond to the registration validation email. e.g. And unfortunately when checking against loggedIn() and isBanned() these users still returns TRUE. I need to make sure that only active, validated users, will return true. How can I check via the API if a user is in the "members_filter_validating" category or not? I'm looking at this page but couldn't anything related to the registration validation …
Last reply by Omri Amos, -
- 1 follower
- 1 reply
- 195 views
1) As per title, I am using the Item form helper in one of my applications and I setup the option 'maxItems' => 1, I was expecting it to work like the Node helper which returns the single object when you don't allow multiple nodes to be selected: if ( !empty( $return ) ) { return $this->options['multiple'] ? $return : array_pop( $return ); } else { return NULL; } This is the current Item code instead, no matter what it doesn't even check if you have any results: /** * Format Value * * @return array|NULL */ public function formatValue() { $itemClass = $this->options['class']; $order = NULL; $items = arr…
Last reply by bfarber, -
- 1 follower
- 10 replies
- 440 views
How are javascript mixins used? Currently no docs on them that I can see. I've found a need to overload/modify a method on a core javascript controller. Can mixins be used for this?
Last reply by bfarber, -
- 4 replies
- 277 views
Hello! How I could change task time running of my complete plugin? Implement it like setting or something? Cause I didnt find any mention about this time after plugin was created while developing Thanks
Last reply by Dima Turchenko, -
- 12 replies
- 592 views
Hey, i ran into a small issue. I've added extensions for GroupForm & MemberForm to add new permission sets. For that I need to extend the table of core_groups & core_members afaik. How can I do that? The only solution I found was the installer query, or is that actually the solution?
Last reply by bfarber, -
- 2 replies
- 276 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
- 196 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
- 272 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
- 208 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
- 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,