OK I will where to download and install that one?
OK I will where to download and install that one?
Actually you need just to disable custom notification via
ext.php
on extension disable step and to enable it on enable step. You can get an example here https://github.com/phpbb-extensions/aut ... er/ext.php.Thanks for the hint. But that works only for custom notification types, not for custom notification methods.rxu wrote: ↑Fri Mar 17, 2023 9:44 am Actually you need just to disable custom notification viaext.php
on extension disable step and to enable it on enable step. You can get an example here https://github.com/phpbb-extensions/aut ... er/ext.php.
When the extension is disabled, the method class is not available at all. So it does not help to change any method of the class.
Wonderful! I will update and check in the coming days.
Yes, I'm going to do it right now.
Code: Select all
SQL ERROR [ mysqli ]
Table 'blahblah.phpbb_eb_telegram_chat' doesn't exist [1146]
SQL
SHOW COLUMNS FROM phpbb_eb_telegram_chat
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1023
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/tools/tools.php
LINE: 834
CALL: phpbb\db\driver\mysqli->sql_query()
FILE: [ROOT]/phpbb/db/tools/tools.php
LINE: 851
CALL: phpbb\db\tools\tools->sql_list_columns()
FILE: [ROOT]/ext/eb/telegram/migrations/telegram_table_v2.php
LINE: 17
CALL: phpbb\db\tools\tools->sql_column_exists()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 365
CALL: eb\telegram\migrations\telegram_table_v2->effectively_installed()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 288
CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php
LINE: 241
CALL: phpbb\db\migrator->update_do()
FILE: [ROOT]/phpbb/extension/base.php
LINE: 78
CALL: phpbb\db\migrator->update()
FILE: [ROOT]/phpbb/extension/manager.php
LINE: 231
CALL: phpbb\extension\base->enable_step()
FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 209
CALL: phpbb\extension\manager->enable_step()
FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: acp_extensions->main()
FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
:translation_ru
on GitHub.I didn't think, that sql_column_exists fails, if the table does not exist.
Doesn't really matter much. In both variants, the display will be the same. There is no need to convert regular messages from BBCode to Markdown. Converting to HTML is enough.mbld wrote: ↑Thu Mar 16, 2023 9:36 am
I have not yet checked your proposals regarding markdown. I am currently sending the telegram messages using HTML style rather than MarkdownV2 style.
The BBCodes are shown intentionally, while I try to display the enclosed text matching the BBCode's formatting. That means e.g. a bold text is shown in bold, and is in addition surrounded by the \[b\] tag. This allows to copy and paste the text, keeping BBCodes.
Code: Select all
Warning: Topic is too long and was cut. Telegram doesn 't allow more than 4096 characters !
...
1&filename=6999a8916a6ed34e2aab9e39cac73cd0.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=7386801&tknv=v2&size=XXXL&crop=0&modified=1679229564&preview=f6b9f9b1c2077607fb2ae81b1d3f6e003fbc010029fcfd2439cf32d7ecee03f9&inf=CzDnftTfj0wrq145XtpEeFyatMH2ogEW7_QCk46UJ3SZgJcSRbO1QC2L7xs0u7Au_3GiQHdLxSKzLEz0UotYJw%3D%3D[/img]
[img]/image_preview?uid=7386801&filename=b822b98971d489cc2a297fd59202e1f6.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=7386801&tknv=v2&size=XXXL&crop=0&modified=1679230111&preview=eb830f7a2bf656556ebbccd883c73a4e76d4a743f9108049e2c3ad7f00b009cb&inf=Au7WWytRR774Fxz6hx1u-1v22_OXeB4ZOz3UtxoPnhEtI4-zV195YEwoQ_EkUek37TaxonHE8l_tEgUn7JU5Fg%3D%3D[/img]
[img]/image_preview?uid=7386801&filename=b18801ceb98c7e0dae90c32bb8277d4e.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=7386801&tknv=v2&size=XXXL&crop=0&modified=1679230114&preview=3554c88e46ebe13ffabef45009d2815b428cae569512b0ed496eda7e588333ce&inf=rrDLfAcYjtFUYPsyI6ab4KMENYS7OOJi9bMC94AUoLhxlUBE76tfBEWWO6r5ih6VQXcQ0EVUVd8mGK7p77xS8Q%3D%3D[/img]
[img]/image_preview?uid=7386801&filename=753094386a3aaacfbd2d7e15794ca4df.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=7386801&tknv=v2&size=XXXL&crop=0&modified=1679232910&preview=744f7bf5a2cc1dc8a697d9fed8cde43ffe6b948d40f4be8e859192b5b406000a&inf=AXNT7Sqx2iDwV_hIBlFWdnmweBnygsl6FaF5XxvO04lUZGJoQGbw5uQ8CNY00IkvpGEr-L1QuMeHH4bXQ4bcew%3D%3D[/img]
[img]/image_preview?uid=7386801&filename=03c8d9040c8b92d8f7671d8230fe3565.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=7386801&tknv=v2&size=XXXL&crop=0&modified=1679234399&preview=af8176c20a13f26df736a42b4d168f821bbe7685d122ed8fb03e5bd3a05969c1&inf=UU3Xtc_lERlLhs5kwLjVPFbZuvRRUCFvQYzDnQDlpD9-emzdq7yvbRWCFGcnFgeJtphMf1bUMOF4Kf92pAHZfw%3D%3D[/img]
[/spoiler]
___________________________________
/
stops being highlighted as a bot command. Otherwise, when you click on such a text, we have:Warning: Topic is too long and was cut. Telegram doesn 't allow more than 4096 characters !
...
. But in this case, this is the full name (11 characters).That was a bug, which I already fixed with this commit. Fix is already included in 1.0.3-dev.
Also similar is seen on other buttons: Specified text = full text, but it is still appended to
...
[media]https://youtube.com/[/media]
in TG it is recognized as https://youtube.com/[/media]
It seems to me that this can be solved only by removing any BBCode from sending to telegram.
At the same time, you can think about the possibility of adding processing of other commands. For example, the output of "active topics", "recent topics" and the like, by analogy with the standard functionality of the conference when viewed via the web.
I was guided by this help. This is probably about internal processing, not about user input.mbld wrote: ↑Tue Mar 21, 2023 3:24 pm Regarding formatting:
As a first attempt, the bold/italic/underline formatting which can be either set using the format-buttons, or as markdown (except underline) is now converted into BBCode. (develop branch) For further improvements, I created an issue.
But please note: *italic* is no standard telegram MD, but it is rather __italic__.
In fact, the extension
alfredoramos/markdown
only enables this feature, and the functionality itself is located in the core of the conference (Text Formatter).Here you need to remember that links to images may not necessarily have a full path. In my case (and in the case of some other extensions), they lack the initial part of
protocol://hostname
. The same applies to other links. Personally, I think that everything inside [img][/img]
is more logical to simply replace with some text. Since images cannot be displayed inside telegram in the form in which they can be inside the post. Moreover, the preview of the image may work and everything will take on an even stranger appearance.[url]
and if it has a full path (there is at least a hostname), then it is quite possible to give it in telegram in the usual form. If there is no hostname in the link, then add it to the link (the path to the conference). And if it is [url=]link name[/url]
, then give it to telegram in the form of the text "link name" with a link attached to it.[img]
- replace the link text with some text IMG
, but attach a link to the image to it. Also taking into account the conversion of the link address into a full path, if necessary. However, I do not know whether the length of the attached links affects the total volume of the message.