1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get integer ID from redirectTarget string

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 22, 2013.

  1. Marcus

    Marcus Well-Known Member

    I want to hook in after a redirect and want to fetch the ID used in responseRedirect->redirectTarget. How can I fetch this ID? Intval is not working as it is a string with just an integer value at the end. Thanks !
  2. Marcus

    Marcus Well-Known Member

    An integer valued trimmed explode got that working, although it's not pretty. Maybe there is a xenforo function for that?

Share This Page