News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Recent Forum Topics on Board Index For 2.1.x

Started by Pipke, February 04, 2023, 01:07:56 PM

Previous topic - Next topic

Pipke

Link to the mod

Recent Forum Topics on Board Index

For SMF 2.1.x
Tested only with the SMF default theme!

This mod will add Recent Forum Topics on the Boardindex, it has some options:
  • Change on wich side you want it to display
  • Filtering the forum topics by selecting categories or boards
  • Display posters avatars (Note: this only works if you have the Avatars Display Integration mod installed)
  • More...

License
* This SMF modification is subject to the BSD 2-Clause License

User options
- Options are available through icons (some are only available when you are logged in!)

Languages
- English

Version 1.2 - Mar 15, 2023
- Fixed the constructpages

Version 1.1 - Feb 11, 2023
- Fixed undefined array key due php > 8.0
- Added language Spanish/Latin by Rock Lee

Version 1.0 - Jan 17, 2023
- Initial Release
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

TwitchisMental


-Rock Lee-

Good job and I'll leave you the translation by the way :D


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Matias-

Hello, thanks for the mod. One question, if I only want to use the recent topic, how can I do it?



It happens that I would like to use only that part, but when I urge it, it modifies my entire menu of categories and others... Thanks!

Pipke

@Matias- The mod is not intended to function that it only shows the recent topics on the boardindex, that's why its called recent topics on the boardindex ;), however it should be possible, ill take a look when i have time how it can be easy achieved.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Matias-

Quote from: Pipke on February 06, 2023, 11:48:00 AM@Matias- The mod is not intended to function that it only shows the recent topics on the boardindex, that's why its called recent topics on the boardindex ;), however it should be possible, ill take a look when i have time how it can be easy achieved.

It would be nice since there is no day of date a "recent topics" that can be put in the boardindex.

I add: It would also be very useful to have compatibility with the prefix mod: https://custom.simplemachines.org/index.php?mod=4038

Thank you!

Gryzor

#6
Looks nice! Any idea why I'm getting "file not found" in the two "extract tree" steps for ./Themes and ./Sources? Naturally, these paths are there, above the Packages dir.

Pipke

Quote from: Gryzor on February 07, 2023, 05:00:06 AMLooks nice! Any idea why I'm getting "file not found" in the two "extract tree" steps for ./Themes and ./Sources? Naturally, these paths are there, above the Packages dir.

I dont know what you mean, can you explain better?
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Pipke

@Matias- I'm not going to implement the option to hide the board structure/categories so that it shows only the recent topics in the mod, if I did... the way to use the filter options will lose its function and that is not the purpose for which I built the mod.

I'll just explain how you can achieve this with these edits, but it's not recommended to do so... it's entirely up to you. First you should set the user options like you want it, you'and other users can't change it later anymore trough the menu after the edits, because it gets removed!

in Sources/RecentTopicsBoardIndex.php
Code (find) Select
// Fire it up ;)
loadTemplate('RecentTopicsBoardIndex', 'RecentTopicsBoardIndex'); #template, css
Code ("add after") Select
$rtbi['options']['align'] = 'top';
$rtbi['quickbuttons'] = array(); 
unset($context['rtbi_buttons']['applyfilter']);

in {your_theme}/RecentTopicsBoardIndex.template.php
Code (find) Select
// Disable smf default mark read button
$context['mark_read_button'] = array();
Code ("add after") Select
$context['categories'] = array();

"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Gryzor

Quote from: Pipke on February 07, 2023, 10:09:43 AM
Quote from: Gryzor on February 07, 2023, 05:00:06 AMLooks nice! Any idea why I'm getting "file not found" in the two "extract tree" steps for ./Themes and ./Sources? Naturally, these paths are there, above the Packages dir.

I dont know what you mean, can you explain better?
Not much to explain unfortunately, these errors just come up and reported by smf when trying to install the mod. Installation stops with those 2 errors... 😐

Pipke

Quote from: Gryzor on February 07, 2023, 02:31:17 PM
Quote from: Pipke on February 07, 2023, 10:09:43 AM
Quote from: Gryzor on February 07, 2023, 05:00:06 AMLooks nice! Any idea why I'm getting "file not found" in the two "extract tree" steps for ./Themes and ./Sources? Naturally, these paths are there, above the Packages dir.

I dont know what you mean, can you explain better?
Not much to explain unfortunately, these errors just come up and reported by smf when trying to install the mod. Installation stops with those 2 errors... 😐

Can you install other mods without errors, if so it looks like the file you downloaded as the mod is fault, try to download a new one, and see how that goes.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Matias-

Quote from: Pipke on February 07, 2023, 02:27:57 PM@Matias- I'm not going to implement the option to hide the board structure/categories so that it shows only the recent topics in the mod, if I did... the way to use the filter options will lose its function and that is not the purpose for which I built the mod.

I'll just explain how you can achieve this with these edits, but it's not recommended to do so... it's entirely up to you. First you should set the user options like you want it, you'and other users can't change it later anymore trough the menu after the edits, because it gets removed!

in Sources/RecentTopicsBoardIndex.php
Code (find) Select
// Fire it up ;)
loadTemplate('RecentTopicsBoardIndex', 'RecentTopicsBoardIndex'); #template, css
Code ("add after") Select
$rtbi['options']['align'] = 'top';
$rtbi['quickbuttons'] = array(); 
unset($context['rtbi_buttons']['applyfilter']);

in {your_theme}/RecentTopicsBoardIndex.template.php
Code (find) Select
// Disable smf default mark read button
$context['mark_read_button'] = array();
Code ("add after") Select
$context['categories'] = array();



Thanks for your answer, I was able to do it but now my categories are not visible... What could it be?


Pipke

Quote from: Matias- on February 07, 2023, 09:50:29 PMThanks for your answer, I was able to do it but now my categories are not visible... What could it be?

Quote from: Matias- on February 06, 2023, 11:41:08 AMHello, thanks for the mod. One question, if I only want to use the recent topic, how can I do it?
that is why?
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Matias-

Quote from: Pipke on February 08, 2023, 04:44:43 AM
Quote from: Matias- on February 07, 2023, 09:50:29 PMThanks for your answer, I was able to do it but now my categories are not visible... What could it be?

Quote from: Matias- on February 06, 2023, 11:41:08 AMHello, thanks for the mod. One question, if I only want to use the recent topic, how can I do it?
that is why?

Maybe because of my bad English it was misunderstood.

What I want is to use the "recent topics" part and for everything else to be seen by default.

For example:

-Box Shoutbox
-Box Recent Topics
- Categories
- Etc...

All by default.

Pipke

@Matias- I'll put it in ideas for the next update to add that option.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Matias-

Quote from: Pipke on February 08, 2023, 12:26:10 PM@Matias- I'll put it in ideas for the next update to add that option.

Excellent, a mod to see recent topics would be nice.

I would add the option to view the prefixes of the mod that already exists.

https://custom.simplemachines.org/index.php?mod=4038

Example:

https://prnt.sc/LFYrSxnB3Opk

Pipke

Quote from: Pipke on February 08, 2023, 12:26:10 PM@Matias- I'll put it in ideas for the next update to add that option.

I thought about it for a while, you can keep the boards hidden by clicking on the arrow up/down behind the category name, this way the boards are also hidden ;) much easier.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Pipke

updated mod to v1.1

- Fixed undefined array key due php > 8.0
- Added language Spanish_Latin by Rock Lee
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

EthanR

Can you make it like the 2.0 version with the round poster avatars next to the topic?

Pipke

Quote from: EthanR on February 26, 2023, 10:50:04 PMCan you make it like the 2.0 version with the round poster avatars next to the topic?

What do you mean exaclty, as it is now the mod does that... or do i don't understand you correctly?
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Advertisement: