Getting forum url?

edited November 2011 in Vanilla 2.0 - 2.8
Hey, whats the best way to get forums url in php?

Thanks Aidan

Best Answer

  • ToddTodd Vanilla Staff
    edited November 2011 Answer ✓
    I'd do this:
    $Url = Url('/', TRUE);
    The first parameter is the path you want and the second parameter tells the function to include the domain. There is another similar function:
    $Url = ExternalUrl('/');
    This function is used in emails and whatnot and is useful if you are embedding your forum.

Answers

  • ToddTodd Vanilla Staff
    edited November 2011 Answer ✓
    I'd do this:
    $Url = Url('/', TRUE);
    The first parameter is the path you want and the second parameter tells the function to include the domain. There is another similar function:
    $Url = ExternalUrl('/');
    This function is used in emails and whatnot and is useful if you are embedding your forum.
  • Cheers that solved it :D
Sign In or Register to comment.