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
- 9 replies
- 619 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
- 448 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
- 788 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
- 332 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
- 256 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
- 222 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
- 301 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
- 400 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
- 523 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
- 201 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, -
- 2 followers
- 3 replies
- 559 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
- 275 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
- 409 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
- 219 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
- 291 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
- 307 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
- 193 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
- 319 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
- 420 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
- 262 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
- 357 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, -
- 1 follower
- 12 replies
- 329 views
I need to get short weekday names dynamically. But this code in templates doesn't work: {{$day1 = 'day_' . date( 'w', $timestamp ) . '_short';}} {lang="$day1"} Is it possible to do this?
Last reply by bfarber, -
- 0 replies
- 220 views
Hello, Please refactor AdvertisementLocations extension. Allow set position for settings. /** * Get the locations and the additional settings * * @param array $settings Current setting values * @return array Array with two elements: 'locations' which should have keys as the location keys and values as the fields to toggle, and 'settings' which are additional fields to add to the form */ public function getSettings( $settings ) { I added $formFields = array( new \IPS\Helpers\Form\Text( 'ad_test_setting1', isset($settings['ad_test_setting1']) ? $settings['ad_test_setting1'] : null, false, array(), null, null, …
Last reply by newbie LAC, -
- 0 replies
- 226 views
hello team, can anyone share with me how to get my commerce plugin to work just like the invasion power companies? Basically when you go to buy something it takes you straight to a check out page. But when I buy something on my page it has 4 steps. 1.) product, 2.) add to cart, 3.) confirm the cart 4.) check out cart, 5. ) credit card and purchase.... how do I elite steps 2-4 and they just click and go straight to a check out page? -Jason
Last reply by Jason Brown_41238, -
- 1 follower
- 11 replies
- 365 views
Hi I'm trying to create an additional way for people to login using the "External Data" base under "Login Handlers" I filled out everything correct and matched it to the data base but now I am getting this error message. IPS\Db\Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 (1064) What I don't understand is if the problem is in IPB4 or something in the Actually MYSQL data base that i'm trying to reference. Any insight? I feel like I'm really close and this shouldn't be that hard.
Last reply by Jason Brown_41238,