EXT PHPBB

The section where we discuss phpBB extensions.
User avatar
alon
Normal Member
Posts: 31
Joined: Tue Feb 22, 2022 7:47 pm
Answers: 0
Reputation: 4
Has thanked: 10 times
Been thanked: 8 times

EXT PHPBB

Post by alon »

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
Attachments
Immagine 2022-12-01 225429.jpg
Immagine 2022-12-01 225429.jpg (82.97 KiB) Viewed 1738 times
Immagine 2022-11-29 210430.jpg
Immagine 2022-11-29 210430.jpg (61.46 KiB) Viewed 1738 times

User avatar
J. H. Rasmussen
Administrator
Posts: 1340
Joined: Thu Nov 07, 2019 9:13 pm
Latest blog post: Play » « on Web Browser Games
Answers: 0
Reputation: 619
Location: Copenhagen, Denmark
Has thanked: 45 times
Been thanked: 52 times
Contact:

Re: EXT PHPBB

Post by J. H. Rasmussen »

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..

User avatar
alon
Normal Member
Posts: 31
Joined: Tue Feb 22, 2022 7:47 pm
Answers: 0
Reputation: 4
Has thanked: 10 times
Been thanked: 8 times

Re: EXT PHPBB

Post by alon »

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.

User avatar
J. H. Rasmussen
Administrator
Posts: 1340
Joined: Thu Nov 07, 2019 9:13 pm
Latest blog post: Play » « on Web Browser Games
Answers: 0
Reputation: 619
Location: Copenhagen, Denmark
Has thanked: 45 times
Been thanked: 52 times
Contact:

Re: EXT PHPBB

Post by J. H. Rasmussen »

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:

Code: Select all

namespace pico\reputation;
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.
Attachments
pico.zip
(98.49 KiB) Downloaded 59 times

User avatar
alon
Normal Member
Posts: 31
Joined: Tue Feb 22, 2022 7:47 pm
Answers: 0
Reputation: 4
Has thanked: 10 times
Been thanked: 8 times

Re: EXT PHPBB

Post by alon »

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.

User avatar
J. H. Rasmussen
Administrator
Posts: 1340
Joined: Thu Nov 07, 2019 9:13 pm
Latest blog post: Play » « on Web Browser Games
Answers: 0
Reputation: 619
Location: Copenhagen, Denmark
Has thanked: 45 times
Been thanked: 52 times
Contact:

Re: EXT PHPBB

Post by J. H. Rasmussen »

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.

User avatar
alon
Normal Member
Posts: 31
Joined: Tue Feb 22, 2022 7:47 pm
Answers: 0
Reputation: 4
Has thanked: 10 times
Been thanked: 8 times

Re: EXT PHPBB

Post by alon »

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..
Can I do it too? Could you give me guides on which file to make the changes with any codes? ;)

User avatar
J. H. Rasmussen
Administrator
Posts: 1340
Joined: Thu Nov 07, 2019 9:13 pm
Latest blog post: Play » « on Web Browser Games
Answers: 0
Reputation: 619
Location: Copenhagen, Denmark
Has thanked: 45 times
Been thanked: 52 times
Contact:

Re: EXT PHPBB

Post by J. H. Rasmussen »

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? ;)
Since you ask so nicely i will look in to it. But i will most likely first post the code tomorrow...

User avatar
J. H. Rasmussen
Administrator
Posts: 1340
Joined: Thu Nov 07, 2019 9:13 pm
Latest blog post: Play » « on Web Browser Games
Answers: 0
Reputation: 619
Location: Copenhagen, Denmark
Has thanked: 45 times
Been thanked: 52 times
Contact:

phpBB modification to show forum viewers count

Post by J. H. Rasmussen »

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:

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'],
In "/styles/prosilver/template/forumlist_body.html" find:

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 -->
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.

User avatar
alon
Normal Member
Posts: 31
Joined: Tue Feb 22, 2022 7:47 pm
Answers: 0
Reputation: 4
Has thanked: 10 times
Been thanked: 8 times

Re: EXT PHPBB

Post by alon »

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 :)

Post Reply

Return to “PhpBB Extensions”

Who is online

Users browsing this forum: No members and 17 guests