Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add hub shortcode #3084

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wescopeland
Copy link
Member

Related to #3065 and should likely deploy simultaneously.

This PR adds a [hub=N] shortcode for both the forums and messages, as well as an Artisan command to migrate legacy hub game shortcodes to the new [hub] shortcode.

How to test this PR:

sail artisan ra:community:migrate-game-shortcodes

This will convert all existing legacy hub game shortcodes to the new hub shortcode.
You can also roll it back with:

sail artisan ra:community:migrate-game-shortcodes --undo

This command is largely based on the one we used for user IDs.

Now, you should be able to check any forum topic that uses a hub shortcode, ie: http://localhost:64000/viewtopic.php?t=1287.

You can also try using and previewing the hub shortcode directly with something like [hub=1].

Currently, the new hub shortcodes look and feel exactly like the existing legacy game shortcodes.

Screenshot 2025-01-19 at 6 29 42 PM

Screenshot 2025-01-19 at 6 29 54 PM

@wescopeland wescopeland requested a review from a team January 19, 2025 23:30
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.

1 participant