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

Not a Bug Event hint description..

Discussion in 'Resolved Bug Reports' started by rellect, Aug 26, 2013.

  1. rellect

    rellect Well-Known Member

    Not exactly a bug, but still..

    The event hint description gives NONE info about the only thing that matters - the expected value for this field.
    I had to dig into the code to understand.
     
  2. Mike

    Mike XenForo Developer Staff Member

    I'm not sure what you're reporting exactly. As it says, the individual events will list the value of the hint. For example:

     
  3. rellect

    rellect Well-Known Member

    Yea I understood that after looking in the code..
    But by "events will list the value" I can't really understand that the value should be a class name..
    This is my experience at least.
     
  4. Marcus

    Marcus Well-Known Member

    Class name is: XenForo_Model_Post. There are hints for template, here you give the name of the template as hint. Such as: forum_view. Maybe the suggestion is to put an example hint like
    • "Event Hint: Name of the class that is being loaded. Example: XenForo_Model_Post"
    • "Event Hint: Name of the template that is being rendered. Example: forum_view"
     
  5. Mike

    Mike XenForo Developer Staff Member

    I'm going to call this "not a bug" as it's debatable as to what may be clear vs what's not. I have tweaked the hint description to try to make it a little clearer though:
     
    Marcus likes this.
  6. Marcus

    Marcus Well-Known Member

    Truth is, a simple example is all you need to understand xenForos addon system.

    A very basic "Hello World" example with all different ways to accomplish a "Hello World" message on xenForo (accomplished with either: extending ControllerPublic, Template Edit, Template Modification, Callbacks etc.) would be very useful.
     

Share This Page