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 followers
- 5 replies
- 345 views
this one has bothered me for awhile. I have a few apps that I need to validate against other elements in the form (like check for duplicates). the problem here is, I have had to get pretty crafty cause the validate method doesn't send all the form data. It would be nice if we had access to the form data outside of \IPS\Request (especially when forms are dynamically generated).
Last reply by CodingJungle, -
- 1 follower
- 1 reply
- 298 views
I believe it is time to settle on a collation and force everyone too it. I've fixed several clients databases already cause they've been getting errors such as this, cause the third party application they've installed used utf8_unicode_ci instead of utf8mb4_unicode_ci. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '=' that is my entire argument for this. regards.
Last reply by bfarber, -
- 1 follower
- 1 reply
- 305 views
public static function parseStatic( $value, $bbcode=FALSE, $attachIds=NULL, $member=NULL, $area=FALSE, $filterProfanity=TRUE, $cleanHtml=TRUE, $htmlPurifierConfig=NULL ) { $obj = new self( $bbcode, $attachIds, $member, $area, $filterProfanity, $cleanHtml, $htmlPurifierConfig ); return $obj->parse( $value ); } shouldn't this be calling static instead of self? due to LSB, hooks are ignored here, so you can't "overload" and add in custom bbc or use modified functions.
Last reply by bfarber, -
- 1 follower
- 2 replies
- 377 views
@Rikki Could I get a couple lines in the notifications js handler flipped to their own function so I could mixin (around) them? To mixin around the entire function would require some horrible interception of settings to prevent those lines from firing and then resetting them afterwards or overwriting the entire function which is to say humping most of it over intact just to change a few lines and then something something terms of service violation something something copyright...
Last reply by Flitterkill, -
- 1 follower
- 9 replies
- 762 views
We have made some changes in IPS Community Suite 4.1.13 to how FrontNavigation extensions handle permissions. Previously the permission settings ("Show this item to users who can access its content" / "I want to choose which groups can see this item") were ambiguous as to whether the latter setting includes groups who cannot access the content the item links to. This change resolves that ambiguity. The changes are backwards compatible, so you don't need to make any changes for your application to keep working, but you should make these changes as soon as possible to ensure consistency. Previously, permission checks were implemented in a single method and you wou…
Last reply by Dylan Riggs, -
- 0 replies
- 583 views
We have made some changes in IPS Community Suite 4.1.13 to Commerce gateways. In 4.1.13, customers may not provide their name or billing address in some circumstances. Therefore, if you have a custom gateway, you may need to make two changes: If anywhere in your gateway you access the billing address or customer's name, you should ideally make any necessary changes to accommodate for these not being present (the billing address may be NULL and the customer's name may be blank). The method signature for checkValidity() has changed to to allow NULL for $billingAddress and to add an extra parameter for an \IPS\nexus\Customer - you can use this to check if th…
Last reply by Mark, -
- 2 followers
- 11 replies
- 932 views
We have made some changes in IPS Community Suite 4.1.13 to how versions of applications or plugins are managed. What has changed? Currently, when you start working on a new version of your application, you go to the "Versions" tab and add the version number and ID for the version you're about to begin developing. When you make any database changes, the system automatically adds the necessary queries to the upg_xxx folder for that version. With these changes, you will no longer create the version at the start of the development process. There will be a special "upg_working" folder which stores the changes as you make them, and when you build an applic…
Last reply by Midnight Modding, -
- 1 follower
- 8 replies
- 418 views
Could post as a bug, could post in general peer to peer support, ehhh... This is weird enough. Google Custom Searches let you embed a Google search field into a webpage. It is more or less a self-contained chunk of Javascript that just sticks in a form field and links it to your custom settings for the search at Google HQ or wherever. If you embed this custom search in a template, and we'll use global for the hell of it ( stick it in a div and whatever...), it works. It doesn't not work. It also, when you enter the search form field and when you exit the form field, spams the console with errors. I suspect there is an IPS js controller that grabs onto all t…
Last reply by CodingJungle, -
- 1 follower
- 1 reply
- 340 views
I am stopped on a plugin where the form helper don't allow me to use name like "name[item]". There are my mistake on building form input or others are on same situation?
Last reply by Ali Majrashi, -
- 1 follower
- 0 replies
- 312 views
Dear support, the IPS connect API works great, but there is a conceptional issue with the validate feature. Unfortunately, when a user validates it's account with click on the validation link sent via email, the user got logged in automatically in IP.board - but not in slaves. There is no login redirect made. This results in unsynced login state between master and slaves. Kind regards, Matthias
Last reply by IPBWI.com Matthias Reuter, -
- 1 follower
- 5 replies
- 391 views
Hello! There is public variable $resultsToGet in IPS\Content\Search\Query. As a result, we can easily change number of items on the result page when searching. Can you please create the same variable in IPS\core\modules\front\search\search.php? Because there is hard coded number, so we cannot control it: $select = \IPS\Db::i()->select( 'core_members.*', 'core_members', $where, $order, array( ( $page - 1 ) * 25, 25 ) ); ... $pagination = trim( \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->pagination( $baseUrl, ceil( $count / 25 ), $page, 1 ) ); Thanks in advance!
Last reply by bfarber, -
- 1 follower
- 1 reply
- 581 views
Previous versions of Commerce (before 4.1) had a sidebar navigation so that the user could easily move between different sections. After 4.1, this was removed. I get that the default menu navigation includes a separate link for each area, but the layout change basically forces Administrators to use the default menu and does not allow them to hide or remove any of these menu options. Was there any other reason that the sidebar was removed, and can it be brought back? I have multiple clients that make heavy use of nexus, and all of them have customized primary menus. Some of them have in fact specifically asked me to put the Client Area back into the user dropdown menu…
Last reply by bfarber, -
- 1 follower
- 6 replies
- 651 views
Hi. I have been trying to figure out how to make the forum use my main site's login system, but I find it hard to guess how the things works... My main site has unique salts for every user, so it's not enough to just change/add a hash algorithm to the external file. So what I am trying to ask is, how do I run a query for the salt in my external database? What I have come up with until now is the in attached image file, but in short I have tried to modify the encryptPassword method a little. I am not quite sure the select statement should use these details...
Last reply by Aiwa, -
- 0 replies
- 270 views
Unsure where best to ask and/or request this so giving a go here This was brought up by me (and others?) on the 4.1 alpha/beta test site; asking for search term highlighting in search results. What we got was highlighting on the search results page (or maybe it was made better on the results page?) however what remains missing was the IPB 3x feature where the search term highlight carries through to the actual content item. I seem to recall the responding developer "not liking them" or some such. I may be mis-remembering some of this but that was the basic gist of the thing. So I took a look at the core files tonight to see where and how one could jack in the qu…
Last reply by Flitterkill, -
- 1 follower
- 3 replies
- 748 views
Hello. Does anybody make this? I want disable adding this dropdown to the navbar, because I want use vertical menu, but I don't understand how I can do it without rewriting JS. Thank you.
Last reply by HeadStand, -
- 3 replies
- 352 views
ok finally we have migrated from 3 to 4 and we get a lot of glitch BUT we are mostly here my question is about comment into article, in past i have added the forum post comment option, but i have seen that it count as 2 weblink and google don't like that. so like we have do a lot of works to do "clean cut" i have see this warning: if i disable post topic and use forum for comment, i understand that i will lost all comment previously posted. but li think you have the key to explain me how to reintegrate comment to the article comment database ? (sql request to move data, it's not a pb but i need information to do it) if yes explain me…
Last reply by bfarber, -
- 1 follower
- 8 replies
- 472 views
First, lets start off by saying I love IPS4. That being said, the documentation and guides available for it are far and few between =( I'm trying to create a plugin to hook into Pre and Post registration The only thing I've found is being able to hook into post registration when it calls to send a verification email, and when the account has been verified(which is not run if no verification is required) I can't find anything on pre-registration where I can validate a custom field
Last reply by bfarber, -
- 1 follower
- 0 replies
- 321 views
As per title, right now the function \IPS\Node\Model::contentPostedIn() works only if the class has a $commentClass value defined. If you have an application that only has reviews and not comments the method does nothing. The review of an Item is something a user has posted too, not just a comment. For now I have added a new method in my own Item class that works in a similar way, using the $reviewClass variable of course.
Last reply by teraßyte, -
- 3 replies
- 382 views
So I followed the example plugin, but I have a question. How do I force the temple to use the setting "Replace the chosen element(s)." When there is content to display and either use the "Insert content inside the chosen element(s), at the start." (so that it doesn't show when clicked) or simply hide it all together. What I want to achieve is this (before you click, no access to the content of the site): And after they've accepted, they get the normal site:
Last reply by bfarber, -
- 3 replies
- 381 views
I've just started creating plugins for IPS and was planning some modifications to the register page. What I want is to validate the members input beyond what is already available within the profile-fields you can add. So I downloaded this: And I did some modifications: (I've added my own validation class above) And this works great However, I wan't to save the values from the registration form, otherwise, whats the point of the validation So, simply, how do I save what using the form-helper (is it easiest to use profile-fields, cause then I can easily edit the value in the admincp)?
Last reply by Fidde, -
- 0 replies
- 256 views
Note: Haven't looked at method directly. I've had great success dropping in my own css files into the custom css directory for themes. My files load and custom.css still over-rides the junk in my files. Coincidentally those files of mine either began with the letter A or B. I say this as I saw that Dylan Riggs was sticking all of his theme mod css for Krocan into custom.css directly which will over-write any changes end-users have made anytime theme updates are uploaded. I asked why and he stated that when he stuck them into krocan.css his file over-wrote custom.css. My bet is that the custom directory is being read out sequentially (alphabetically). So my …
Last reply by Flitterkill, -
- 1 follower
- 2 replies
- 417 views
Right now if you check if a user has already reviewed an item you only return a count: public function hasReviewed( $member=NULL ) { /* Check cache */ if( $this->_hasReviewed !== NULL ) { return $this->_hasReviewed; } $member = $member ?: \IPS\Member::loggedIn(); $reviewClass = static::$reviewClass; $idColumn = static::$databaseColumnId; $this->_hasReviewed = \IPS\Db::i()->select( 'COUNT(*)', $reviewClass::$databaseTable, array( array( $reviewClass::$databasePrefix . $reviewClass::$databaseColumnMap['author'] . '=?', $member->member_id ), array( $reviewClass::$databasePrefix . $reviewClass::$databaseColumnMap['item'] . …
Last reply by teraßyte, -
- 7 replies
- 516 views
Hello, How long will you have to cut the functionality? Advanced search removed Pagination... I need passed all rows to get real count pages. What do you'll get if count( $this->dataSource ) will be too much. "Fatal error: Allowed memory size of" public function getRows( $advancedSearchValues ) { /* Sort out paging */ $this->count = count( $this->dataSource ); $this->pages = ceil( $this->count / $this->limit ); Earlier I can set $table->pages = $pages; $table->count = $count;
Last reply by Adriano Faria, -
- 1 reply
- 346 views
I've asked this several years ago when IP.Content was an actively supported product and I was told it wasn't possible at the time, but is it now possible to create parse blocks that take parameters? If so, how would I access the arguments in the blocks? It would really open up so much more possibilities and it would allow me to cut down on the number of blocks for such minor (sometimes major) variations of code.
Last reply by bfarber, -
- 1 follower
- 2 replies
- 467 views
Where is documentation for make a gateway payment for IPS4? I see just old documentation for 3.x but not for 4.x
Last reply by FRANCISCO MONREAL SEGURA,