Jump to the post that solved this thread.
Solved: 4 Years, 6 Months ago how to get user id
#1
Solved: 4 Years, 6 Months ago
I am using simple likes plugin and it says to insert
Number of likes received: <a href="{$mybb->settings['burl']}/misc.php?action=post_likes_received_by_user&user_id={$post['id']}">{$post['likes_received']}</a> 

into postbit and postbit_classic
However when i do this and click on the number i get the in mybb error of

Quote:No post ID provided. Are you sure you're accessing this function correctly?
with the url of
http://python-forum.io/misc.php?action=p...er&user_id=

There is no number at the end of the select user id
I tried adding {mybb->user['uid']} but then i get my own like list and not the user i selected from the post bit.
Reply
#2
Solved: 4 Years, 6 Months ago
Use this:
Number of likes received: <a href="{$mybb->settings['burl']}/misc.php?action=post_likes_received_by_user&user_id={$post['uid']}">{$post['likes_received']}</a>
Reply
#3
Solved: 4 Years, 6 Months ago
thanks. That worked. I cant believe i didnt try that one.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)