tipsandtricks

  • More
Timeline
Discussions
Forum's Comments
  • One more way to invalidate all caches is to change revision number, you can try to do it as well in Studio > Developer > Revision number

    • You can try to set background for mobile splash when you are setting splash with this command:

      npx react-native set-splash --platform android --path ./img/background.png --resize contain --background ""


      • To allow other than images uploads in comments across the site (except discussions) run the following query:

        UPDATE `sys_objects_storage` SET `ext_allow` = 'jpg,jpeg,jpe,gif,png,pdf,zip' WHERE `object` = 'sys_cmts_images';

        In above example pdf and zip file types were added, but other extensions can be added there as well.

        Please note that preview is generated for image files only, video and audio files will not have preview.


        • To add custom API endpoint to UNA, please create an empty module first, I think it's better to rename modules/boonex/api module to your own and delete or replace existing endpoints with yours. 

          To add custom endpoint - add service function, for example to add endpoint which get time you can add something like this:

          public function serviceClock() 
          {
              return ['time' => date('H:i:s')];
          }

          Then declare if you want to use this endpoint with authentication or not, for public endpoint add name of the endpoint to serviceGetPublicServices method:

          public function serviceGetPublicServices()
          {
              $a = parent::serviceGetPublicServices();
              return array_merge($a, array ('Clock' => ''));
          }

          for protected endpoint add it the same way but to serviceGetSafeServices method.

          After above you will be able to call your custom endpoint with the following URL:

          http://example.com/m/oauth2/com/clock?client_id=1234abcd&module=your_modulename

          You will get response in JSON format

          • Hi ... by clicking     there are errors comming :-(

            Warning:  array_merge(): Expected parameter 2 to be an array, bool given in /home/unaio/public_html/modules/boonex/timeline/classes/BxTimelineTemplate.php on line 2566

            Notice: unserialize(): Error at offset 195 of 289 bytes in /home/unaio/public_html/modules/boonex/timeline/classes/BxTimelineTemplate.php on line 561

            Notice: unserialize(): Error at offset 195 of 289 bytes in /home/unaio/public_html/modules/boonex/timeline/classes/BxTimelineModule.php on line 4040

            Notice: unserialize(): Error at offset 195 of 289 bytes in /home/unaio/public_html/modules/boonex/timeline/classes/BxTimelineTemplate.php on line 2566

            Warning: array_merge(): Expected parameter 2 to be an array, bool given in /home/unaio/public_html/modules/boonex/timeline/classes/BxTimelineTemplate.php on line 2566

            • I am using Rocketchat 2.3.2 which sadly does not have una connect within it.  I could create a custom oauth but have no idea how to fill out most of the fields.....but one thing at a time....I need to be able to open chat.mysite.com and it open mysite.com:3000 or https purposes

              Yes, you can use latest Rocket.Chat and use Custom OAuth, steps are the following:

              1.

              image_transcoder.php?o=bx_froala_image&h=2707&dpx=2&t=1577683413

              2.

              image_transcoder.php?o=bx_froala_image&h=2708&dpx=2&t=1577683427

              3.

              image_transcoder.php?o=bx_froala_image&h=2709&dpx=2&t=1577683437

              image_transcoder.php?o=bx_froala_image&h=2710&dpx=2&t=1577683449

              4. Activate 'Merge Users' setting

              I have done all that and it is not working

              • Hello JPa !

                When it's better to post the content as "public" but use the hashtags there. Like we have here .

                • Hello KinkyC.com !

                  The channel is created automatically if you post something with the hashtag. Like here.

                  I have test it but under the Timline and channels is nothing


                  • Hello KinkyC.com !

                    The channel is created automatically if you post something with the hashtag. Like here.


                    • We're going to add pre-moderation in the future - https://github.com/unaio/una/issues/2321

                      However most probably it will not happen anytime soon.

                      One possible solution for now to enable pre-moderation in Market is to set status to non-active by default by executing the following query:

                      ALTER TABLE `bx_market_products` CHANGE `status_admin` `status_admin` ENUM('active','hidden') NOT NULL DEFAULT 'hidden';

                      So by default market products will have hidden status, this status can be changed by admin/moderator only, so this could be some sort of pre-moderation.

                      So you can add something like this to your mix custom styles field::root { --fa-primary-color: green; --fa-primary-opacity: 1.0; --fa-secondary-color: red; --fa-secondary-opacity: 1.0; } So it will look like this: 
                      • 251
                      One more way to invalidate all caches is to change revision number, you can try to do it as well in Studio > Developer > Revision number
                      • 413
                      You can try to update Rocket.Chat settings directly in DB1) login to your server via SSH2) run the following command, so mongodb shell will be opened:mongo3) select current DB in the opened shell, the default db name is "rocketchat":use rocketchat;4) run the following queries to update settings, make sure to replace FULL-URL-TO-UNA-SITE (starting with http:// or https://), YOUR-KEY & YOUR-SECRET with your actual valuesdb.rocketchat_settings.update({"_id": "Accounts_OAuth_UNA_URL"}, { $set: {"value": "FULL-URL-TO-UNA-SITE", "meteorSettingsValue": "FULL-URL-TO-UNA-SITE"}}); db.rocketchat_settings.update({"_id": "Accounts_OAuth_UNA_id"}, { $set: {"value": "YOUR-KEY", "meteorSettingsValue": "YOUR-KEY"}}); db.rocketchat_settings.update({"_id": "Accounts_OAuth_UNA_secret"}, { $set: {"value": "YOUR-SECRET", "meteorSettingsValue": "YOUR-SECRET"}});As the result you should see something like this: "WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })"It maybe Rocket.Chat restart will be required.
                      • 422
                      You can try to set background for mobile splash when you are setting splash with this command:npx react-native set-splash --platform android --path ./img/background.png --resize contain --background ""
                      • 420
                      To allow other than images uploads in comments across the site (except discussions) run the following query:UPDATE `sys_objects_storage` SET `ext_allow` = 'jpg,jpeg,jpe,gif,png,pdf,zip' WHERE `object` = 'sys_cmts_images';In above example pdf and zip file types were added, but other extensions can be added there as well.Please note that preview is generated for image files only, video and audio files will not have preview.
                      • 465
                      Add new...