Thank you Jaben.
Maybe I explained wrong, I'd like to use it in the YAF's default.aspx (not in the default.aspx of my site)
I add to YAF's default.aspx my own site's header, and I'd like to put the Pagelinks there, in the header, but inside the YAF's default.aspx.
Not sure if it's possible. I try isolating the forum.ascx code in another control to put in the default.aspx, but it says that for example Page.Context does not exist there.