I am reading [part 3] Creating a add-on to insert tabs in profile page (using hooks):
http://xenforo.com/community/thread...nsert-tabs-in-profile-page-using-hooks.21289/
I got serveral questions,
1. Step 5 - Extending the Controller Public - Member
Question:
user_id is the field in table:xf_user, right? but here it did not connect to DB, how could it get the value of user_id?
2. Step 5 - Extending the Controller Public - Member
Question:
Is 'newProfileTab_ViewPublic_Member_UsersLike' a view class? where is the declaration of it?
3. Step 7 - Changing our template content
Question:
where can I check the usage of data-loadUrl?
4. Step 7 - Changing our template content
Question:
How to use foreach in XenForo?
5. Step 7 - Changing our template content
Question:
how to use xen:helper? Is any documentation about it?
http://xenforo.com/community/thread...nsert-tabs-in-profile-page-using-hooks.21289/
I got serveral questions,
1. Step 5 - Extending the Controller Public - Member
Code:
...
$userId = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
...
Question:
user_id is the field in table:xf_user, right? but here it did not connect to DB, how could it get the value of user_id?
2. Step 5 - Extending the Controller Public - Member
Code:
...
return $this->responseView(
'newProfileTab_ViewPublic_Member_UsersLike', 'newProfileTab_ourTab_content',
array('user' => $user, 'users_likes' => $users_likes)
...
Question:
Is 'newProfileTab_ViewPublic_Member_UsersLike' a view class? where is the declaration of it?
3. Step 7 - Changing our template content
Code:
...
data-loadUrl="{xen:link members/userslike, $user}
...
Question:
where can I check the usage of data-loadUrl?
4. Step 7 - Changing our template content
Code:
...
<xen:foreach loop="$users_likes" value="$like">
...
Question:
How to use foreach in XenForo?
5. Step 7 - Changing our template content
Code:
...
{xen:helper snippet, $like.message, 150}
...
Question:
how to use xen:helper? Is any documentation about it?