Quote:
Originally Posted by chadi
Yes, exactly what I want.
Nomainated x times in x posts
Topic of the Week Awards: x
|
Then, open the product file "product-nominate_topic.xml" and search for:
Code:
eval('$template_hook[postbit_userinfo_right_after_posts] .= " ' . fetch_template('nominate_topic_postbit_info') . '";');
There are two occurrences. Before them, add the following:
Code:
if ($post['nominate_topic_nominated_times'] == 1){
$my_moninate_time_post = $vbphrase['nominate_topic_time_post'];
}
else {
if ($post['nominate_topic_nominated_posts'] == 1){
$my_moninate_time_post = construct_phrase($vbphrase['nominate_topic_times_post'], $post['nominate_topic_nominated_times_formatted']);
}
else {
$my_moninate_time_post = construct_phrase($vbphrase['nominate_topic_times_post'], $post['nominate_topic_nominated_times_formatted'],$post['nominate_topic_nominated_posts_formatted']);
}
}
if ($post['nominate_topic_nominated_awards'] == 0){
$my_moninate_award_number = $vbphrase['nominate_topic_has_not_won_TOTWFM_yet'];
else {
$my_moninate_award_number = construct_phrase($vbphrase['nominate_topic_nominated_awards_TOTWFM'], $post['nominate_topic_nominated_awards_formatted']);
}
You can use the variables $my_moninate_time_post and $my_moninate_award_number in your postbit display subsequently.