Everything posted by Philip_B
-
Enhancement: Search
-
Enhancement: Search
Yeah this is great and I use it every day as well as the advanced search. However, where is the place you can set the order by?
-
Enhancement: Search
Thanks I don’t see any sort by option. Am I missing something?
-
Search by title
Expected: searching by title will return individual topics which match the search criteria Actual: searching by title also searches the body and returns multiple results for the same topic
-
Enhancement: Search
Currently there doesnt appear to be any way to search by date without first searching and then changing the dropdown sort by. This often hits flood control for users who want to directly search by date. You can tweak the priority algo to be flat but then this would make relevant searches defunct. Is this something that can be included?
-
Profile Field Order
thanks @Jim M - the internal marker stored in core_pfields_content -> field_{n} is adjusted? Looks the same on a small sample size
-
Profile Field Order
I have a list of flags for country - any reason there is a statement that changing the order affects existing values? I can see these being stored in core_pfields_content with the name rather than the index so order should not be impacted? Second follow up question, can we have the ability to add key, value for these (essentially internal id and display id) - this is useful if you want to link this to for example a flag image.
-
Club leaders can delete the club forum if "Delete Content" is ticked
This might be expected but would suggest there is a difference between deleting a topic or post and deleting the whole forum. Might be worth adding another option at the global level for this.
-
Cant add club events from the phone
thanks admin access should be setup for my website. Going to /events/2-events/?&view=month this is the club forum. Clicking Create Event at the top takes you to the default calendar and not the club event cal.
-
Guests can post in bog entried event when guest blog posting is switched
nice work!
-
Cant add club events from the phone
Unfortunately not, it looks to be creating an event in the main calendar. This means pressing this button for a club leader is denied but pressing the smaller in day + is allowed.
-
Cant add club events from the phone
On the club calendar there is a button in the top right (create event) to add to the main calendar and an in day + sign to add an event into the club calendar. Is this expected, even when you are inside the club calendar in the breadcrumb menu and link from the club? If so this is (a) confusing (b) leads to people not having permission to create events in the main cal vs the club and (c) on the mobile removes the ability to add a club event.
-
Guests can post in bog entried event when guest blog posting is switched
not sure how these are triaged. Ive had to update the code so no longer present on my site. I was having 100+ comments a day. \applications\blog\sources\entry\entry.php | 813 else if(!$member->member_id) { return FALSE; }
-
[5.0.3] Missing RecountPollVotes queue extension upgrading from 3.4
Also thought i could skip running background processes on 4.x as they showed up on 5.x. Had a ton of errors in the logs, even though the process looked like it was progressing and completing. I had to run all of these on 4.x including rebuilding posts which took ~ 1 day even after changing the increment batch size.
-
[5.0.3] Old polls with serialized data throw a TypeError exception
thanks this is very timely. I had to add an additional check - some data was not serialized and just a string of one question (very old data ~2006). Edge case so accepting this will be lost. public function get_choices(): array { $choices = json_decode($this->_data['choices'], true); # If json_decode fails, try unserialize as a fallback if (json_last_error() !== JSON_ERROR_NONE) { $choices = @unserialize($this->_data['choices']); # If the result is a proper array update the database to use JSON if ( is_array($choices) ) { $this->choices = $choices; $this->save(); } } if ( !is_array($choices) ) { $choices = []; } return $choices; }
-
Edit template files
any thoughts @Esther E. or anyone else on the Invision staff. You mentioned UI extensions, any more details? + hooks currently take a $rows object which seems unusual. How can we use the actual $row data in the hook? I can do the work, just need some overarching understanding of the moving parts.
-
Where to find IPB2 and IPB3 documentation
requirement checker should tell you what diffs you have and what is unsupported. I went through countless test runs and tweaks and above XAMPP works well with the php.ini change. Look forward to seeing the conversion tool
-
Where to find IPB2 and IPB3 documentation
download and install, XAMPP 5.6.14 (sourceforge.net) uncomment in php.ini extension=openssl this will work for 3.x. suggest upgrading any 2.x so you have a consistent version.
-
Where to find IPB2 and IPB3 documentation
Will send over later today from my notes
-
Edit template files
Thanks @Esther E. , only after the last pinned item do I check the bool and display the markup. but this is somewhat a detour 🙂 I haven’t seen anything on UI extensions and does it make more sense to have a $row object passed into these hooks?
-
Where to find IPB2 and IPB3 documentation
I just updated 2.3 -> 5.03. Ideally you will want to move to 4.x first to give more modern PHP and MySQL support. Do you want to run these online or just locally?
-
Edit template files
Thanks, the above shows after the last pinned topic as a divider as I check on the bool flag. There is a hook but this takes a $rows object. Is there any wiki on UI extensions or anything I can do here without updating the base template?
-
Edit template files
interesting thanks @Esther E. These are the changes - im not able to add into the hook because there is no access to the $row objext: "forums/front/forums/topicRow", "topicRow:before" \static\templates\forums_front_forums.php | 2810 if ( $row->mapped('pinned') == 1 ): $isPinned = TRUE; else: if ( $isPinned == TRUE ): $return .= <<<IPSCONTENT <li class="ipsData__item ipsData__item--seperator"> <span><strong>Forum threads</strong></span> </li> IPSCONTENT; $isPinned = FALSE; endif; endif;.ipsData__item--seperator { padding: 3px; font-size: 14px; color: inherit; background-color: var(--i-headerSecondary--ba-co); }
-
Edit template files
I’ve separate pinned and normal topics which is a start, but to do this in a templatised way I need access to the row object.
-
Edit template files
Fantastic, so how do you use the row object in a hook inside the loop? Happy with any paradigm of development. Currently I’m having to put the code I need outside of the hook inside the source code while I then need to track when upgrading.