2015-09-06, 09:33 PM
(2015-09-06, 09:00 PM)Dark Neo Wrote: The function is:
thankyoulike_postbit
and the var of button is:
$post['button_tyl']
You have to tell if all of first post only to set where the button have to show.
all show on every post the thanks or like button and first post only shows in the first post for every thread only and his list of thanked/liked.
I found this code on thankyoulike.php, I know what it does because of the desc in the comment though I have no idea how the other ifs above this line are interconnected and what to change if I want it for other buttons. Anyways, thanks! One thing though, I looked at my thankyoulike_postbit it's only a 1 liner so not sure if mine is different or something.
// Same as above but show add button, to first post only, both have to been on that way or won't work...
eval("\$post['button_tyl'] = \"".$templates->get("thankyoulike_button_add")."\";");
}
}