asprin
Active member
As part of my addon, I'm creating a thread with the following code:
This is not creating a link, rather just textual "here".
The expected link to be generated in this format:
I've set up a route for this from ACP and it works fine when used with the
So, is there a way I could get the generated href value from the
PHP:
$forum = \XF::app()->find( 'XF:Forum', $forum_id );
$user = \XF::app()->find('XF:User', $user_id);
$title = 'Some title';
$message .= "\n\nYou can click [URL='".$this->buildLink('fc/view', $event)."']here[/URL] to view the event.";
This is not creating a link, rather just textual "here".
The expected link to be generated in this format:
index.php?fc/view/some-title-goes-here.16/
I've set up a route for this from ACP and it works fine when used with the
link('fc/view/', $event)
function inside the templates.So, is there a way I could get the generated href value from the
buildLink()
function to be used inside the bbcode?