Everything posted by teraßyte
-
Unused "mt_is_draft" & "mt_hasattach" columns in "core_message_topics"
The table also contains 2 columns for the same start date: mt_date mt_start_time Since the value is the same for all rows, one should be dropped to cut down on (useless) duplicate data.
-
Unused "mt_is_draft" & "mt_hasattach" columns in "core_message_topics"
As per the title, the core_message_topics table contains two unused columns: mt_is_draft and mt_hasattach. They aren't used anywhere as far as I can tell. It must be a legacy column back from 2.x where we could save PM drafts before sending them.
-
IC 5 upgrade fail
It's a server configuration issue: MySQL server has gone away Increase the MySQL timeout for your XAMPP installation.
-
The "Invision HTML Template" syntax hihglithing for code boxes doesn't work out side of editors
As per title. When you post content that includes a code box set to use the Invision HTML Template language, the syntax highlighting works in the editor but shows nothing after it's posted. I noticed the issue after editing a post with this code box in the content: {{if \IPS\Dispatcher::checkLocation( 'front', 'cms', 'pages', 'page' ) AND \IPS\Request::i()->pagename == 'PAGE_NAME' }} <!-- YOUR CODE HERE --> {{endif}}
-
Icon disappeaered
Simply remove your translated string for menutab__community_icon. That will restore the correct icon name/string.
-
[Messenger] Selecting all rows (checkboxes) takes a long time the more messages are listed
@Matt Finger Unfortunately, while there was a slight improvement, the lag is still huge most of the time. Typing long messages in the editor gets rather frustrating. Still, I noticed something else that might help: the lag varies depending on the page. For example, the editor is rather fast when posting a new comment in this bug report, however, when I try to post a reply on a topic with lots of replies, or a personal message with 20+ replies, the editor lags a lot more. I think the content on the page directly impacts the amount of lag. The more content there is, the more it lags. In this bug report, with only 6 comments, and no sidebar (except for a small text block), the lag is basically non-existent if I type normally. It still lags behind a bit if I type random characters fast, though.
-
How can I disable the search function for guests?
Disable the permission for guests to use the Search module in ACP of the System application: EDIT: Looks like I had the tab open for a few minutes, but I never got the usual notification that there were new replies and the link to load them. It might be a v5 bug. 🤔
-
PHP Fatal error: Uncaught Error: Class "IPS\\Dispatcher" not found. - Invision: 4.7.19, php: 8.3.16
I usually upload a ZIP/TAR file and then decompress it through SSH or a control panel. It's the fastest option instead of uploading all files 1-by-1 through FTP. 😋
-
Default search context on pages
You can use this modification to remove the Pages entry from the search menu: https://www.sosinvision.com.br/index.php?/file/302-remove-pages-from-search/
-
Namespace conflict with mb_ucfirst and WordPress plugins using symfony/polyfill-mbstring
It looks like your WordPress plugin adds a function with the same name. As a temporary workaround, instead of renaming init.php, comment/remove this code at the bottom of the file: /* Custom mb_ucfirst() function - eval'd so we can put into global namespace */ eval( ' function mb_ucfirst() { $text = \func_get_arg( 0 ); return mb_strtoupper( mb_substr( $text, 0, 1 ) ) . mb_substr( $text, 1 ); } '); Otherwise, editing the code to this should work, too: /* Custom mb_ucfirst() function - eval'd so we can put into global namespace */ if ( !\function_exists('mb_ucfirst') ) { eval( ' function mb_ucfirst() { $text = \func_get_arg( 0 ); return mb_strtoupper( mb_substr( $text, 0, 1 ) ) . mb_substr( $text, 1 ); } '); } IPS can implement a fix to check if the function exists before running the eval() code. This function is included with PHP 8.4.0+, so it can be removed then. However, since v4 doesn't support PHP 8.2.+, we'll eventually get there with v5.0.0.
-
Icon disappeaered
Some of those icons are a language string. You most likely translated them, and the code cannot find a FontAwesome icon with a Croatian name. 😅
-
Bug: API Cannot Create Topics via /forums/topics in IPC v5 Beta 13
Your payload is wrong. The API does not accept JSON payloads for POST requests:
-
Database overloading server CPU?
Okay, so the version shouldn’t be a problem. A few versions ago IPS removed a search (index?) optimization for old MySQL 5.x versions, but you’re already using version 8.x, so it can’t be that. 🤔
-
upgrade stuck during the beginning of process
Did you restore a backup, add the missing table, and start the upgrade from scratch? Or did you add the table and try to restart from where you were blocked? If you tried #2, trying #1 might solve the issue. If you already did that, I can’t really think of anything else right now. 🙄
-
Database overloading server CPU?
Not the PHP version, but the MySQL (database) version: MySQL 5.7 MySQL 8.0 MariaDB 10.x MariaDB 11.x etc. If you’re not sure, the value is available in one of the boxes of the ACP > Support page.
-
Database overloading server CPU?
What MySQL version are you using?
-
Make user see thread in private sub-forum
I have a modification (for v4) that allows adding single members to specific private topics, but nothing that allows all users to see a specific topic. (It cannot be upgraded for v5, though.) Maybe you could use a block/widget at the top of the page that links to the content you want your members to read, or put the content directly in it?
-
Can't do reactions: I get a warning I don't have permission
From what you posted, it sounds like you have some kind of caching enabled for logged-in members too, not just guests. Is that correct? 🤔
-
Emails Not Sending
Try sending a test email to this site and check your spam score: https://www.mail-tester.com/ Maybe the emails are being discarded somewhere along the way because something is not setup correctly (SPF, DKIM, etc,). Checks have become more strict lately. (I imagine to combat spam better?)
-
Getting NO_TOPIC error when trying to post trough API
Nevermind. I see the problem in your code now: https://invisioncommunity.com/developers/rest-api Parameters For all GET requests, provide parameters in the query string. For PUT and POST requests, all parameters should be sent Form URL Encoded in the body. You’re sending your request as JSON, which won’t work.
-
Getting NO_TOPIC error when trying to post trough API
Nevermind, I read your post wrong.
-
Issue with Text Encoding After Update « é€levée »
There were no code changes related to the editor between version 4.7.18 and 4.7.19. I assume something changed on ChatGPT’s side instead. 🙄 A browser and/or extension update could also be the cause. Does it still happen if you use other browsers?
-
Bug email configuration changes from SMTP to PHP reverted after refresh [4.7.20]
- question on quote
I have modifications that remove the quote button from the first post or all posts, but nothing for the last post. 🤔- Issue with Text Encoding After Update « é€levée »
Did you export/import the database at some point? Or is that from a direct upgrade without moving the database somewhere else? 🤔 - question on quote