Not Solved Get uid from private message
#1
Not Solved
Hello,
How do i get uid , pmid and such from a private message?


echoing

$mybb->privatemessages['pmid']
or
$mybb->input['pmid']
returns blank in my template.


Thanks.
Reply
#2
Not Solved
Variables in templates need to have curly braces around them. It also depends on if you want it for when you are reading a PM or just when you are viewing the list of PMs.

For viewing an individual PM you will want to use {$pmid} for the PM id. The others you can use {$pm['field_name_here']}.

If you are viewing the list of PMs, you'll want to use {$message['field_name_here']}.
Reply
#3
Not Solved
Thank you, that solved my problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)