Dan Hawkins
Active member
Hi Guys,
Trying to link usernames to the profiles - opening them in the overlay....
As you can see I've added in some custom code to try and link the username, but this creates the following error:
Looking into it deeper, I can see this:
<xen:foreach loop="$threads" value="$thread">
on the New Posts Sidebar - but the "Members Online Now" box uses this:
<xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
How can I get the loop to ALSO include the onlineusers.records and value ?
I've tried this *lol* (as you can tell, PHP isn't my strong point at this point in time (training coming soon), CSS anyday)
Alternatively, how can I make the link work? Am I missing something stupidly easy here?
Any help would be appreciated!
Cheers,
Dan
Trying to link usernames to the profiles - opening them in the overlay....
Code:
<div class="additionalRow muted">
{xen:phrase latest}: <a href="members/{$thread.lastPostInfo.username}"
class="username">{$thread.lastPostInfo.username}</a>, <xen:datetime time="$thread.lastPostInfo.post_date" />
</div>
As you can see I've added in some custom code to try and link the username, but this creates the following error:
Looking into it deeper, I can see this:
<xen:foreach loop="$threads" value="$thread">
on the New Posts Sidebar - but the "Members Online Now" box uses this:
<xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
How can I get the loop to ALSO include the onlineusers.records and value ?
I've tried this *lol* (as you can tell, PHP isn't my strong point at this point in time (training coming soon), CSS anyday)
Code:
<xen:foreach loop="$onlineUsers.records" value="$user" i="$i">
<div class="additionalRow muted">
{xen:phrase latest}: <a href="members/{$thread.lastPostInfo.username}"
class="username">{$thread.lastPostInfo.username}</a>, <xen:datetime time="$thread.lastPostInfo.post_date" />
</div>
</xen:if>
Alternatively, how can I make the link work? Am I missing something stupidly easy here?
Any help would be appreciated!
Cheers,
Dan
Last edited: