Skip to content

Conversation

@Rupurudu
Copy link
Contributor

@Rupurudu Rupurudu commented Jun 2, 2025

This adds a new configuration option for showing the SMF news on MediaWiki.

@Rupurudu
Copy link
Contributor Author

Rupurudu commented Jun 2, 2025

Btw, we could probably use ssi_news(); instead of $context['random_news_line'], but since we already load SMF globals, I thought the native approach is probably better.

@jdarwood007
Copy link
Member

I think this would be better as a customization. Not everyone is looking to match the news from their forums. If we include it, it should be done in the Custom override example

This adds a new configuration option for showing the SMF news on MediaWiki.

Signed-off-by: Mustafa Can Elmacı <[email protected]>
@Rupurudu
Copy link
Contributor Author

Rupurudu commented Jun 6, 2025

Rebased to master.

@jdarwood007 The forum news are not enabled by default. I made it customizable with $wgshowSMFnews. It defaults to false so the forum news won't show up on the wiki by default, only if user wants to include it.

I can move the logic to TemplateCustom if you want, but this looks cleaner, imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants