Search found 1239 matches

by JoshyPHP
Thu Feb 29, 2024 6:31 pm
Forum: Custom BBCode Development and Requests
Topic: The Extension I am developing stopped working after update to 3.3.11
Replies: 2
Views: 714

Re: The Extension I am developing stopped working after update to 3.3.11

I've only given a cursory look at your code but I think you need to declare your process_tag_hide() function as static.
by JoshyPHP
Fri Feb 03, 2023 6:26 pm
Forum: [3.3.x] Support Forum
Topic: BUG in handling of smilies/text replacement/bbcode
Replies: 10
Views: 718

Re: BUG in handling of smilies/text replacement/bbcode

The rules for where a smiley and an emoji can be used are different. Smilies have required to be preceded with whitespace or a dot for ~18 years , emoji and their ASCII aliases have no such rules, that's why only the first :ghost: uses the smiley asset whereas the others (which map to U+1F47B ) use ...
by JoshyPHP
Mon Jan 09, 2023 8:43 pm
Forum: [3.3.x] Support Forum
Topic: Emoji's are broken [Fix available, see Announcements]
Replies: 36
Views: 10523

Re: Emoji's are broken

If you can install this very old extension, you'll get Noto emoji instead: https://github.com/s9e/phpbb-ext-noto-e ... to-install
by JoshyPHP
Wed Oct 26, 2022 11:15 pm
Forum: [3.3.x] Support Forum
Topic: 500 - Allowed memory size exhausted
Replies: 5
Views: 695

Re: 500 - Allowed memory size exhausted

What's your version of PHP? Doesn't really matter here, but IIRC there was some internal change a while ago in the way the used memory is measured. That was around the time the default memory limit was bumped. Also, newer versions tend to use slightly less memory. Anyway, if I had to guess my money ...
by JoshyPHP
Sun Jul 10, 2022 12:27 am
Forum: Custom BBCode Development and Requests
Topic: Encode {TEXT} to be used as URL parameter
Replies: 1
Views: 1304

Re: Encode {TEXT} to be used as URL parameter

If you want the entirety of the value to be URL-encoded then your best option is to filter it through PHP's urlencode() . It's a good idea to give the attribute/value a proper name such as url too. You'll end up with something like this: [myTag url={TEXT1;useContent;postFilter=urlencode}]{TEXT}[/myT...
by JoshyPHP
Thu Jul 07, 2022 8:22 pm
Forum: Custom BBCode Development and Requests
Topic: Converting column BBCode from 3.0 to 3.3
Replies: 6
Views: 2104

Re: Converting column BBCode from 3.0 to 3.3

Glad to hear that it helped. You should still install some proper table BBCodes going forward, it may save you some troubles down the road.
by JoshyPHP
Thu Jun 30, 2022 8:13 pm
Forum: Custom BBCode Development and Requests
Topic: Converting column BBCode from 3.0 to 3.3
Replies: 6
Views: 2104

Re: Converting column BBCode from 3.0 to 3.3

It's not a safety feature, it's because it is excessively complicated to support custom grammars (the | in the middle of the BBCode) recursively. The proper solution is to use an extension that implements BBCodes to handle tables. This one might be the most popular: https://www.phpbb.com/community/v...
by JoshyPHP
Fri Mar 11, 2022 6:58 pm
Forum: [3.3.x] Support Forum
Topic: BB Code [img] Question
Replies: 9
Views: 2133

Re: BB Code [img] Question

Theoretically possible but it's as much work as fixing the cause of the issue and it only benefits you instead of fixing it for everybody now and in the future, so that's not something I'd recommend.
by JoshyPHP
Fri Mar 11, 2022 3:01 pm
Forum: [3.3.x] Support Forum
Topic: BB Code [img] Question
Replies: 9
Views: 2133

Re: BB Code [img] Question

It's impossible to tell what's going on based on the video. Someone would have to actually debug it. Record the content of the phpbb_posts row for a post that doesn't work after conversion, then reparse it in CLI, then record the content again, then fix it manually, then record the content again and...
by JoshyPHP
Mon Dec 13, 2021 8:50 pm
Forum: [3.3.x] Support Forum
Topic: slow loading queries from the host.
Replies: 20
Views: 5308

Re: slow loading queries from the host.

ask them to see if they would be able to optimize the database and reduce the slow MySQL queries. That part means nothing, you might as well ask them to optimize the server and reduce the lock time. The only relevant question is why and how are those tables getting locked. (again, is it MyISAM? thi...
by JoshyPHP
Mon Dec 13, 2021 2:16 pm
Forum: [3.3.x] Support Forum
Topic: slow loading queries from the host.
Replies: 20
Views: 5308

Re: slow loading queries from the host.

There are 2 seperate entries where the 'Rows_examined' is exceedingly more than the 'Rows_sent' number That's something you can report in the "thanks for posts" extension's forum/topic. AFAICT there's an index on (poster_id) that could be converted to (poster_id, forum_id) and it would he...
by JoshyPHP
Mon Nov 29, 2021 6:57 pm
Forum: [3.3.x] Support Forum
Topic: Problems with <r>-tags in some old discussions after converting from phpBB2
Replies: 11
Views: 3051

Re: Problems with <r>-tags in some old discussions after converting from phpBB2

To be clear, do you plan on doing any of that? I can't tell based on your last post. it's almost certainly because of an extension. Probably the glossary extension because it looks like it could corrupt the XML data. Disable it and it should fix it. If so, go to the extension's topic, report the iss...
by JoshyPHP
Mon Nov 29, 2021 5:11 pm
Forum: [3.3.x] Support Forum
Topic: Problems with <r>-tags in some old discussions after converting from phpBB2
Replies: 11
Views: 3051

Re: Problems with <r>-tags in some old discussions after converting from phpBB2

Sorry, I should have read your first post fully. If I did I could have told you immediately that it's almost certainly because of an extension. Probably the glossary extension because it looks like it could corrupt the XML data. Disable it and it should fix it. If so, go to the extension's topic, re...
by JoshyPHP
Sun Nov 28, 2021 10:08 pm
Forum: [3.3.x] Support Forum
Topic: Problems with <r>-tags in some old discussions after converting from phpBB2
Replies: 11
Views: 3051

Re: Problems with <r>-tags in some old discussions after converting from phpBB2

The reason you get a blank page is because your server is configured to do that if any error happens. Check out with your host about getting the actual error message.
by JoshyPHP
Fri Nov 05, 2021 12:39 am
Forum: Extension Writers Discussion
Topic: [img] base64
Replies: 8
Views: 2230

Re: [img] base64

I didn't notice this was the Extension Writers forum. In that case, instead of enabling the scheme globally it may be preferable to remove the #url filter from the image's src attribute (so it doesn't have to obey the list of allowed schemes) and replace it with a regexp. Not sure whether it makes a...

Go to advanced search