Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

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

  • Options
    ToddTodd Chief Product Officer 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

  • Options
    ToddTodd Chief Product Officer 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.
  • Options
    Cheers that solved it :D
Sign In or Register to comment.