Roblox DevForum Viewer

I recently made on a module that can show a Roblox DevForum thread in Roblox. This is primarily designed for stuff like change logs and simple information.

Everything is in this uncopylocked place. I use rprxy.xyz because HttpService does not allow requests to devforum.roblox.com.

Docs

The module is located in StarterPlayer.StarterPlayerScripts. It exposes multiple methods and events.

RenderAsync(topicId: number)

This will display the topic using the specificed topic id.

Close()

Closes the currently open topic if any.

Event DevForumOpened(topicId: number)

Fired when the DevForum viewer is opened or when the user navigates to another thread using a link.

Event DevForumClosed()

Fired when Close() is called.

Event ButtonClicked(id: string)

Fired when an rbxbutton is used. More info below.

Custom Tags

I have added some extra tags to this for ease of use.

rbxbutton

Example: <rbxbutton id="open-shop">Open Shop</rbxbutton>
This will fire the ButtonClicked event with the id attribute. You can hook into this from your own code and open an in-game menu for example.

rbxassetid

Example: <rbxassetid>123456789</rbxassetid>
This is used to show an image in the thread. The value must be the id of a Roblox image asset.

rbxteleport

Example: <rbxteleport id="1818">Play Crossroads</rbxteleport>
This will cause the user to be teleported to a place using the id attribute.

Forum Links

Forum links will open the thread as normal.

Known Issues

  • Mobile Controls will not be hidden when in a view. Blocked by UserInputService.ModalEnabled = true no longer disables mobile controls.
  • Emojis must be unicode emojis. They can not use the forum format of :grinning:.
  • Lists do not render properly.
  • In line buttons do not work.
  • Code blocks lack highlighting.
  • Non-DevForum links can not be opened. This is a Roblox limitation.

Many of these issues I don’t plan to fix due to the small use cases for this module. If there is enough demand for a specific issue to be fixed I might consider it.

25 Likes

Wow, that was really cool.

I appriciated it. Just can’t open links :frowning:

2 Likes

This is a Roblox limitation. There is no developer-accessible way for a web browser to be opened within Roblox. Only links that can be opened are DevForum threads.

This is incredible!

I’ll check this out for sure when adding changelogs.

1 Like

This is a really neat project! I’d love to follow this and see where this goes.

Also, it appears that it tries to open the post link when clicking it but it can’t because of an error:

2 Likes

Looks like I missed a tonumber(). I solved this in the latest version.

1 Like

I found another small bug. I think its probably something that you haven’t finished making yet, maybe.

This is what the post looks like
image

But this is how it displays in the game:
image

You could probably use RichText to color the links and then create ImageButtons/TextButtons that you put over top of the text. You could find the position with the different text bounds features in Roblox, like this one: TextService:GetTextSize

You could find the text size of all of the raw text before, and then you can position the button that way. You could then get the size of the text underneath and then scale the button that way.

There are probably other ways to do that but that’s one way I came up with that you could use.

This is a known issue that I’ve already noted.

I might try fixing it sometime if I’m not busy. Not sure though.

1 Like

Question, does this allow non-Forum members to view Forum posts? It’s specifically against Forum rules to reveal non-public Forum posts to non-members so IDK if this is potentially in conflict with that rule.

2 Likes

I am assuming this is using public API so anything seen could alternatively be viewed by any player who knew how to use API, in the devforum or not. Private topics would require having to use authentication along with the api, which I see is not the case in the code

2 Likes

Looks neat but may I note this wouldn’t be allowed-the devforum isn’t filtered.

1 Like

I appreciate this resource, this can be handy in the future.

1 Like

Are the posts filtered or do we need to do that ourselves?

Posts are not filtered. The developer controls which post is shown, so this shouldn’t be an issue because the developer already knows what the topic is. Additionally, the post is already on the developer forum, which is moderated.

This is just my understanding, though. Please research the specifics yourself if you believe this is an issue.

1 Like

This is incorrect as swearing is allowed on the DevForum.

I believe this could be an issue.

2 Likes

Swearing isn’t allowed in public categories, which is all you can view here, however there’s no built-in filter. Meaning users can still see rule-breaking posts that haven’t been deleted.

So it’s probably still an issue @ColeSquared

2 Likes

Sorry, this is what I meant to say.

1 Like