2019-02-25, 05:42 PM
Hi guys
I want to develop a new variable for the following template: forumdisplay_thread.
1. I want to get the "lastpost"-id from the table mybb_threads,
2. then I want to get the "subject" of this "lastpost"-ID from mybb_posts.
I want to save this subject in a variable and then output it in the template forumdisplay_thread (e.g. as {$myVar} ) For each "thread" the subject should be displayed for new answers. (please look attached)
Which hooks should I use? Does anyone have a " start help " for me?
In postbit_posturl I can use this:
JAY
does anyone have a hint for me? What exactly do I have to do so that {$post['subject_title']} can also be used for "forumdisplay"-template?
I want to develop a new variable for the following template: forumdisplay_thread.
1. I want to get the "lastpost"-id from the table mybb_threads,
2. then I want to get the "subject" of this "lastpost"-ID from mybb_posts.
I want to save this subject in a variable and then output it in the template forumdisplay_thread (e.g. as {$myVar} ) For each "thread" the subject should be displayed for new answers. (please look attached)
Which hooks should I use? Does anyone have a " start help " for me?
In postbit_posturl I can use this:
{$post['subject_title']}
but it is not possible for the template forumdisplay_thread. I want to display the current subject per thread. Maybe you can help me. :-) Anybody got a way for me?JAY
does anyone have a hint for me? What exactly do I have to do so that {$post['subject_title']} can also be used for "forumdisplay"-template?