HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Turn discussion name to discussion id
-
Re: Turn discussion name to discussion id
Depending on where you want to change it, the solution might be to simply create a file /conf/bootstrap.before.php with the following content: <?php if (!function_exists('discussionUrl')) { /** * Return a URL for a discussion. This function is in here and not functions.general so that plugins can override. * * @param… -
Re: Turn discussion name to discussion id
-
Re: Turn discussion name to discussion id
Blind copy and paste without understanding oftentimes do not yield the expected results... As the above linked discussion explains, that route makes a "/discussion/123" available as "/d/123". Why did you expect it also makes a discussion available as "/thread/123"? You should have put some brainwork in that. But hey, this… -
Re: Turn discussion name to discussion id
-
Re: Turn discussion name to discussion id
-
Re: Turn discussion name to discussion id
Thank again.😅 The example I show to you was a brand new forum that I just created. I replaced both "d" to "thread" on my live forum but still no luck. I saw you taught me change to ^thread/([\d]*) and then I try it seems successful. But when I clicked the topic the url bar changed to /discussion/ instead of / thread/ like… -
Re: Turn discussion name to discussion id
The route is a regular expression where "\d" is for decimal numbers (which is the discussion id in this case) Depending on where you want to change it, the solution might be ... The route simply is a redirection from the (technically) false "thread" or "d" or whatever to the (in Vanilla terms) correct "discussion".… -
Re: Turn discussion name to discussion id
9 results