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

How do I get the content user info from class XenForo_BbCode_Formatter_Base?

Discussion in 'XenForo Development Discussions' started by mizter1nho, Feb 15, 2011.

  1. mizter1nho

    mizter1nho Well-Known Member

    How do I get the content user info from class XenForo_BbCode_Formatter_Base?

    Need learn user_id from content info.


    Thanks.
     
  2. Ajaxboy

    Ajaxboy Active Member

    what you are asking makes no sense because I figure XenForo_BbCode_Formatter_Base only helps you with the formatting, filtering, and rendering.. not sure "user_id"
     
  3. mizter1nho

    mizter1nho Well-Known Member

    in vbulletin it was possible, "global $ postinfo;" and XenForo .... ?
     
  4. Ajaxboy

    Ajaxboy Active Member

    are you talking about properties about a thread? if so..

    not sure about vbulletin.. but XenForo_Model_Thread::getThreadById($thread_id); should get you the properties of a thread.
     
  5. Shadab

    Shadab Well-Known Member

    Shouldn't the BbCode formatter be independent of the state of the message being parsed?
    ie, not depend on the user who posted the message, in any way.
     

Share This Page