3rd weekly live chat

Post

Posted
Rating:
Item has a rating of 2 Item has a rating of 2 (Liked by Rajesh Kumar)
#3388 (In Topic #667)
Hi all,

We'll do our 3rd weekly live chat on December 2nd at 7pm-9pm GMT (1pm-3pm CST).

Our weekly live chat is a chat about Composr Deploying, Designing and Developing, open to any one who wants to attend. It's a great way to meet other Composr users, influence development, and get some free support from the busy developers. If you don't get a decent reply on something on the forum or IRC, the live chat is the best place to ask.

Agenda:
  • Main topic: Advanced techniques with the main_multi_content block (by request)
  • Community questions: the best way to corner me and get some free step-by-step support or even some coding (if we can cover it within the allotted time of course)
    • Write your questions in this topic
    • … or just ask them live
  • Random quick issues: from the tracker (I tagged one's I thought we could cover quickly)

As always, the link is https://meet.jit.si/Composr. We'll also post a copy of the stream soon after it's concluded for those cannot attend.

See you there :) .

Last edit: by Chris Graham

Post

Posted
Rating:
#3426
For those who couldn't join us, here is the recording of this weekend's chat, edited for easier viewing:



Timestamps:
- Creating a blurred Spoiler tag: 1:55
- Tempcode + regular expression syntax: 11:18
- Running shell commands through Commandr: 18:03
- Adding top and bottom forum panels: 26:00
- Rewording calendar edit strings: 28:38
- Discussing calendar double-post prevention: 39:46
- Discussing forum group URLs: 42:45
- Implementing contextual searching: 44:36
- Adding unit tests for third-party components: 59:40

Post

Posted
Rating:
#3437
So week 3 turned out pretty chaotic, because I was pretty tired and at the tail end of some IT disaster relating to my iMac, and also we had to do a last minute agenda change that made me stumble a bit for what to cover.
Apple had a really bad security bug recently where you could (basically) log into any machine without a password - and after installing their rushed security update, it corrupted my email accounts, and the stress of re-downloading and re-indexing all my many GB of email corrupted my SSD, forcing me to do a complete system reinstall. Then in the live chat MySQL was crashing on my clean Homebrew installation of it due to this MySQL bug

Code (php)

  1.  


At the end of the talk I was implementing a unit test and got stuck. That turned out due to an extra layer of internal caching in lang_filter_EN.php that I'd forgotten about. My final unit test is in this commit: https://github.com/ocproducts/composr/commit/41146975c078acd64737f3d3dc04fced5f77056c

Jacob has been kind enough to heavily edit down the video though and prepare a time index to make it flow better. Regardless of the issues, we did actually get quite a few things done. Maybe my struggling around with things will be a little inspiring that even I have to fight through a jungle of problems sometimes ;) .

Here's an index of github commits relating to the chat:

Here's a diff for the code for the contextual search:

Code (Diff)

Chriss-iMac:composr chrisgraham$ diff -u themes/default/templates/GLOBAL_HTML_WRAP.tpl themes/default/templates_custom/GLOBAL_HTML_WRAP.tpl
--- themes/default/templates/GLOBAL_HTML_WRAP.tpl       2017-12-02 20:18:50.000000000 +0000
+++ themes/default/templates_custom/GLOBAL_HTML_WRAP.tpl        2017-12-03 16:51:41.000000000 +0000
@@ -45,7 +45,20 @@
                                                {$,Search box for logged in users [could show to guests, except space is lacking]}
                                                {+START,IF,{$AND,{$ADDON_INSTALLED,search},{$NOT,{$MOBILE}},{$NOT,{$IS_GUEST}}}}{+START,IF,{$CONFIG_OPTION,block_top_search,1}}
                                                        <div class="top_form top_search">
-                                                               {$BLOCK,block=top_search,failsafe=1,limit_to={$?,{$MATCH_KEY_MATCH,forum:_WILD},cns_posts,all_defaults}}
+                                                               {+START,CASES,{$PAGE}}
+                                                                       calendar={$BLOCK~-,block=top_search,failsafe=1,limit_to=calendar}
+                                                                       catalogues={$BLOCK~-,block=top_search,failsafe=1,limit_to=catalogue_categories\,catalogue_entries}
+                                                                       members={$BLOCK~-,block=top_search,failsafe=1,limit_to=cns_members}
+                                                                       forumview={$BLOCK~-,block=top_search,failsafe=1,limit_to=cns_posts}
+                                                                       topicview={$BLOCK~-,block=top_search,failsafe=1,limit_to=cns_posts}
+                                                                       downloads={$BLOCK~-,block=top_search,failsafe=1,limit_to=download_categories\,downloads}
+                                                                       galleries={$BLOCK~-,block=top_search,failsafe=1,limit_to=galleries\,images\,videos}
+                                                                       news={$BLOCK~-,block=top_search,failsafe=1,limit_to=news}
+                                                                       polls={$BLOCK~-,block=top_search,failsafe=1,limit_to=polls}
+                                                                       quiz={$BLOCK~-,block=top_search,failsafe=1,limit_to=quiz}
+                                                                       wiki={$BLOCK~-,block=top_search,failsafe=1,limit_to=wiki_pages\,wiki_posts}
+                                                                       ={$?,{$AND,{$EQ,{$PAGE},search},{$IS_NON_EMPTY,{$_GET,id}}},{$BLOCK~-,block=top_search,failsafe=1,limit_to={$_GET,id}},{$BLOCK~-,block=top_search,failsafe=1}}
+                                                               {+END}
                                                        </div>
                                                {+END}{+END}
 

I'd tagged a lot of tracker issues to cover in chats, but really it would be better if we had a clearer view of what was useful to people. So please vote on the issues you care about most (click "Monitor"), and then we can look to see what is top-voted next Saturday :) !

Post

Posted
Rating:
#3452
Glad I added the US English unit test, as it had actually broken in v10.1 and the test picked it up :thumbs:
0 guests and 0 members have recently viewed this.