Fork me on GitHub
Subscribe 2

Ticket #887 (fixed bug)

URLs with user/forum/topic/post ID are broken

  • Created: 2013-08-17 22:31:54
  • Reported by: Studio384
  • Assigned to: Franz
  • Milestone: 1.5.5
  • Component: parser
  • Priority: normal

If you take a look at the announcement for FluxBB 1.5.1 (http://fluxbb.org/forums/viewtopic.php?id=6721), you'll see that there is a problem with the links to users profiles. This bug appears after updating to 1.5.4 and also affects topic, forum and post urls, like those:

Test topic
Test post
Test forum
Test user

History

Studio384 2013-08-17 22:32:17

  • Description changed. (Diff)

Studio384 2013-08-17 22:36:12

  • Description changed. (Diff)
  • Summary changed from URLs with user ID are broken to URLs with user/forum/topic/post ID are broken.

Visman 2013-08-18 02:12:28

Please test

	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/viewtopic.php?id=\'.$matches[1])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/viewtopic.php?id=\'.$matches[1],$matches[2])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/viewtopic.php?pid=\'.$matches[1].\'#p\'.$matches[1])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/viewtopic.php?pid=\'.$matches[1].\'#p\'.$matches[1],$matches[2])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/viewforum.php?id=\'.$matches[1])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/viewforum.php?id=\'.$matches[1],$matches[2])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/profile.php?id=\'.$matches[1])';
	$replace_callback[] = 'handle_url_tag(\''.get_base_url(true).'/profile.php?id=\'.$matches[1],$matches[2])';

Franz 2013-09-05 22:34:02

  • Owner set to Franz.

Franz 2013-09-05 22:39:31

Commit 3f69be5 to fluxbb master

#887: Fix invalid callbacks for forum, topic, post, and user BBCodes.

Franz 2013-09-05 22:40:17

  • Status changed from open to fixed.

Problem solved, and fix deployed to FluxBB.org, we're finally running 1.5.5-dev now.