H HJW Active member Oct 28, 2020 #1 Hello, For members profiles I can't find the template for recent content. It appears to be coming from this: <xf:foreach loop="$results" value="$result"> {{ $result.render()|raw }} </xf:foreach> Is there a template I can edit what is output? Thanks
Hello, For members profiles I can't find the template for recent content. It appears to be coming from this: <xf:foreach loop="$results" value="$result"> {{ $result.render()|raw }} </xf:foreach> Is there a template I can edit what is output? Thanks
P Paul B XenForo moderator Staff member Oct 28, 2020 #2 The content/output is in the $result param. What are you trying to do exactly. Upvote 0 Downvote
H HJW Active member Oct 28, 2020 #3 Hi, I'm trying to edit the is-deleted class bit from the user postings when viewing a profile, but can't find the template its coming from? <div class="contentRow is-deleted"> Upvote 0 Downvote
Hi, I'm trying to edit the is-deleted class bit from the user postings when viewing a profile, but can't find the template its coming from? <div class="contentRow is-deleted">
P Paul B XenForo moderator Staff member Oct 28, 2020 #4 Are you trying to edit the actual content, or just apply styling to it? Upvote 0 Downvote
H HJW Active member Oct 28, 2020 #5 Edit the content; adding if statements for if if they are mods or not etc Upvote 0 Downvote
P Paul B XenForo moderator Staff member Oct 28, 2020 #6 Edit the member_latest_activity template and dump $item like so: That will then give you an idea of whether what you're trying to do is possible, based on the available vars. If the vars you need are in that array, you can use a conditional statement inside the loop to affect the output. It will likely be easier to open the tab in a new browser tab - members/test.1/latest-activity Upvote 0 Downvote
Edit the member_latest_activity template and dump $item like so: That will then give you an idea of whether what you're trying to do is possible, based on the available vars. If the vars you need are in that array, you can use a conditional statement inside the loop to affect the output. It will likely be easier to open the tab in a new browser tab - members/test.1/latest-activity