Search found 412 matches

by bennybernaer
Sat Feb 24, 2024 3:15 pm
Forum: [3.3.x] Support Forum
Topic: PDF as attachment?
Replies: 4
Views: 179

Re: PDF as attachment?

P_I wrote: Sat Feb 24, 2024 3:04 pm Are you want the post to display the attached PDF contents similar to how attached images contents are displayed?
https://phpbbstudio.com/viewforum.php?f=27
by bennybernaer
Thu Feb 01, 2024 8:26 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

Okay thanks! I got your extension working, but I used the php code from @thecoalman. Using thecoalman code the extension can be removed, it is no longer useful " the original function only handles numbers higher than 10K, so use this instead:" I replaced the php code in the extension itse...
by bennybernaer
Thu Feb 01, 2024 8:11 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

For topics with a lot of views or comments, it looks much better this way. :D
by bennybernaer
Thu Feb 01, 2024 8:04 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

But as far as I can see, this extension only converts the forum index and view forum. My extension allows you to use {{ short_number_ext(myvar.here) }} anywhere in any template file. That was just an example of how to use it. Okay thanks! I got your extension working, but I used the php code from @...
by bennybernaer
Thu Feb 01, 2024 6:09 pm
Forum: Extension Writers Discussion
Topic: Plea to get Release Candidate (RC) extensions validated and approved
Replies: 20
Views: 3024

Re: Plea to get Release Candidate (RC) extensions validated and approved

Half of the extensions I use aren't validated, and another half aren't even available here.

If I really want an extension, I don't care about the status as long as it works.

Some extensions I use have been in RC for over 5 years
by bennybernaer
Thu Feb 01, 2024 4:46 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

Thank you! This works great for the views. But if I also apply your first code in replies, the page numbers are hidden.

Code: Select all

	'REPLIES'			=> number_format_short($replies),
by bennybernaer
Thu Feb 01, 2024 3:00 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

When I go to look up Github at the original author of that PHP code, there is another code in the comments that does work. Only for topics that use the PHP code, the page numbers are no longer displayed. // Converts a number into a short version, eg: 1000 -> 1k // Based on: http://stackoverflow.com/...
by bennybernaer
Thu Feb 01, 2024 1:19 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

Yes sorry it was a typo. Indeed functions/includes.php. Here's the full edited file <?php /** * * This file is part of the phpBB Forum Software package. * * @copyright (c) phpBB Limited <https://www.phpbb.com> * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and lice...
by bennybernaer
Thu Feb 01, 2024 12:55 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

I also did that, but same result.... includes.php function number_format_short($n) { if ($n >= 0 && $n < 10000) { // 1 - 9999 $n_format = floor($n); $suffix = ''; } else if ($n >= 10000 && $n < 1000000) { // 10k-999k $n_format = floor($n / 1000); $suffix = 'K'; } else if ($n >= 10000...
by bennybernaer
Thu Feb 01, 2024 7:31 am
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

@thecoalman

I've tried it a number of times (also cleared browser history and cashe several times) but it doesn't actually do anything. All displayed in the old format. (no errors).
by bennybernaer
Wed Jan 31, 2024 6:12 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

You mean something like that? <dd class="simpleposts"><span>{{ short_number_ext(forumrow.POSTS) }}</span>{L_POSTS}</dd> But as far as I can see, this extension only converts the forum index and view forum. I want to convert everything on the entire forum number of views number of messages ...
by bennybernaer
Wed Jan 31, 2024 5:49 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

Don't abbreviate anything and everything is still standard. Have you edited your html templates to specify which numbers to use the function? What needs to be changed there? I thought the point of an extension was to not have to change anything in the core files. And all those functions must be ava...
by bennybernaer
Wed Jan 31, 2024 4:32 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

@warmweer This all looks good at first glance. But this extension does nothing. Don't abbreviate anything and everything is still standard. Still on version 3.3.11 and php 8.3.0

Code: Select all

        arguments:
            - '@language'
So I'm waiting for the javascript from @axe70
by bennybernaer
Wed Jan 31, 2024 3:45 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

I actually want something like that. But that extension doesn't work. I see nothing has been done about it in more than 4 years.
by bennybernaer
Wed Jan 31, 2024 2:36 pm
Forum: phpBB Custom Coding
Topic: Count round thousand to a K style
Replies: 29
Views: 1818

Re: Count round thousand to a K style

Thank you in advance for taking the time for this.

Go to advanced search