EXT PHPBB
- alon
- Normal Member
- Posts: 31
- Joined: Tue Feb 22, 2022 7:47 pm
- Reputation: 4
- Has thanked: 10 times
- Been thanked: 8 times
EXT PHPBB
Hello, apart from the problem that I posted to you from online users, looking at your forum I liked two exts, would you be so kind as to direct me so I can install them?
It won't let me attach the images for MP thank you very much
It won't let me attach the images for MP thank you very much
- Attachments
-
- Immagine 2022-12-01 225429.jpg (82.97 KiB) Viewed 2335 times
-
- Immagine 2022-11-29 210430.jpg (61.46 KiB) Viewed 2335 times
- J. H. Rasmussen
- Administrator
- Posts: 1353
- Joined: Thu Nov 07, 2019 9:13 pm
- Reputation: 619
- Location: Copenhagen, Denmark
- Has thanked: 46 times
- Been thanked: 52 times
- Contact:
Re: EXT PHPBB
The reputation extension is this: https://github.com/Pico/phpBB-Reputation-System
The forum viewing thing would be a bit difficult to extract as it is custom code added to the forum software together with a lot of other custom changes i have made to the forum software..
The forum viewing thing would be a bit difficult to extract as it is custom code added to the forum software together with a lot of other custom changes i have made to the forum software..
- alon
- Normal Member
- Posts: 31
- Joined: Tue Feb 22, 2022 7:47 pm
- Reputation: 4
- Has thanked: 10 times
- Been thanked: 8 times
Re: EXT PHPBB
Bye and thanks for the answers.
Uploaded to the forum root renamed to reputation but nothing appears in APC.
It's not the first ext I've installed, maybe it's not compatible.
Uploaded to the forum root renamed to reputation but nothing appears in APC.
It's not the first ext I've installed, maybe it's not compatible.
- J. H. Rasmussen
- Administrator
- Posts: 1353
- Joined: Thu Nov 07, 2019 9:13 pm
- Reputation: 619
- Location: Copenhagen, Denmark
- Has thanked: 46 times
- Been thanked: 52 times
- Contact:
Re: EXT PHPBB
It's most likely because of the directory names. They have to match the extension namespace, that you can see by for example open the ext.php file:
So the the location of ext.php and the other files and directories of the extension has to be in the directory location pico\reputation which again is relative to the ext directory of the your forum.
I have changed the directory names in the attached file, and have not made any other changes to the extension.
Unpack the files and upload the "pico" directory with its contents to your ext directory on your forum and it should work.
Code: Select all
namespace pico\reputation;
I have changed the directory names in the attached file, and have not made any other changes to the extension.
Unpack the files and upload the "pico" directory with its contents to your ext directory on your forum and it should work.
- Attachments
-
- pico.zip
- (98.49 KiB) Downloaded 94 times
- alon
- Normal Member
- Posts: 31
- Joined: Tue Feb 22, 2022 7:47 pm
- Reputation: 4
- Has thanked: 10 times
- Been thanked: 8 times
Re: EXT PHPBB
Hello,
I downloaded the version for phpbb 3.3. Just installed the forum crashed and I had to restore.
/public-html/forum/ext/pico\reputation.
Right path.
This one you attached should be 3.1 which I haven't tried yet.
I downloaded the version for phpbb 3.3. Just installed the forum crashed and I had to restore.
/public-html/forum/ext/pico\reputation.
Right path.
This one you attached should be 3.1 which I haven't tried yet.
- J. H. Rasmussen
- Administrator
- Posts: 1353
- Joined: Thu Nov 07, 2019 9:13 pm
- Reputation: 619
- Location: Copenhagen, Denmark
- Has thanked: 46 times
- Been thanked: 52 times
- Contact:
Re: EXT PHPBB
Sorry, i didn't check to see what phpBB version was supported.
If you found a version that is build for phpBB 3.3 then that is what you should use(if it works).
It's usually a good idea to setup a test forum, for example on your local computer to test out these extensions before using them on a live forum.
If you found a version that is build for phpBB 3.3 then that is what you should use(if it works).
It's usually a good idea to setup a test forum, for example on your local computer to test out these extensions before using them on a live forum.
- alon
- Normal Member
- Posts: 31
- Joined: Tue Feb 22, 2022 7:47 pm
- Reputation: 4
- Has thanked: 10 times
- Been thanked: 8 times
Re: EXT PHPBB
Can I do it too? Could you give me guides on which file to make the changes with any codes?J. H. Rasmussen wrote: Fri Dec 02, 2022 3:55 pm
The forum viewing thing would be a bit difficult to extract as it is custom code added to the forum software together with a lot of other custom changes i have made to the forum software..
- J. H. Rasmussen
- Administrator
- Posts: 1353
- Joined: Thu Nov 07, 2019 9:13 pm
- Reputation: 619
- Location: Copenhagen, Denmark
- Has thanked: 46 times
- Been thanked: 52 times
- Contact:
Re: EXT PHPBB
Since you ask so nicely i will look in to it. But i will most likely first post the code tomorrow...alon wrote: Sun Dec 11, 2022 9:19 am Can I do it too? Could you give me guides on which file to make the changes with any codes?
- J. H. Rasmussen
- Administrator
- Posts: 1353
- Joined: Thu Nov 07, 2019 9:13 pm
- Reputation: 619
- Location: Copenhagen, Denmark
- Has thanked: 46 times
- Been thanked: 52 times
- Contact:
phpBB modification to show forum viewers count
It was less difficult then i expected. I have tested it on the test forum i set up, so it should work with the phpBB version you use(phpBB 3.3.2).
In "/includes/functions_display.php" find:
And replace it with:
In "/styles/prosilver/template/forumlist_body.html" find:
And replace it with:
In the last find and replace i have showed how to modify the template of the prosilver style, you will need to do that change to all the styles your forum use, where you would like forum viewer count to be displayed.
In "/includes/functions_display.php" find:
Code: Select all
'FORUM_ID' => $row['forum_id'],
'FORUM_NAME' => $row['forum_name'],
'FORUM_DESC' => generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
'TOPICS' => $row['forum_topics'],
And replace it with:
Code: Select all
'FORUM_ID' => $row['forum_id'],
'FORUM_NAME' => $row['forum_name'],
'JHR_FORUM_USER_COUNT' => obtain_users_online($row['forum_id'])['total_online'],
'FORUM_DESC' => generate_text_for_display($row['forum_desc'], $row['forum_desc_uid'], $row['forum_desc_bitfield'], $row['forum_desc_options']),
'TOPICS' => $row['forum_topics'],
Code: Select all
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>
And replace it with:
Code: Select all
<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><!-- IF forumrow.JHR_FORUM_USER_COUNT --> <span class="users_viewing">({forumrow.JHR_FORUM_USER_COUNT} Viewing)</span><!-- ENDIF -->
- alon
- Normal Member
- Posts: 31
- Joined: Tue Feb 22, 2022 7:47 pm
- Reputation: 4
- Has thanked: 10 times
- Been thanked: 8 times
Re: EXT PHPBB
Works!!! I don't know how to thank you and I'm happy about it.
I need to figure out how to set the plural of the text
(1 Connected) (2 Connected) if more than one gives me (2 Connected)
I would also like to color the text thanks
I need to figure out how to set the plural of the text
(1 Connected) (2 Connected) if more than one gives me (2 Connected)
I would also like to color the text thanks
Who is online
Users browsing this forum: No registered users and 15 guests