Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REPLACE THIS
- »»»»»»»»»»»»
- function get_thanks_topic_reput($topic_id)
- {
- global $max_topic_thanks, $config, $phpbb_root_path, $template, $topic_thanks;
- $template->assign_block_vars('topicrow.reput', array(
- 'TOPIC_REPUT' => $topic_thanks[$topic_id],
- 'S_THANKS_TOPIC_REPUT_VIEW' => $config['thanks_topic_reput_view'],
- 'S_THANKS_REPUT_GRAPHIC' => $config['thanks_reput_graphic'],
- 'THANKS_REPUT_HEIGHT' => sprintf('%dpx', $config['thanks_reput_height']),
- 'THANKS_REPUT_GRAPHIC_WIDTH'=> sprintf('%dpx', $config['thanks_reput_level']*$config['thanks_reput_height']),
- 'THANKS_REPUT_IMAGE' => ($config['thanks_reput_image']) ? $phpbb_root_path . $config['thanks_reput_image'] : '',
- 'THANKS_REPUT_IMAGE_BACK' => ($config['thanks_reput_image_back']) ? $phpbb_root_path . $config['thanks_reput_image_back'] : '',
- ));
- }
- WITH THIS
- »»»»»»»»»
- function get_thanks_topic_reput($topic_id)
- if (isset($topic_thanks[$topic_id]))
- {
- global $max_topic_thanks, $config, $phpbb_root_path, $template, $topic_thanks;
- $template->assign_block_vars('topicrow.reput', array(
- 'TOPIC_REPUT' => $topic_thanks[$topic_id],
- 'S_THANKS_TOPIC_REPUT_VIEW' => $config['thanks_topic_reput_view'],
- 'S_THANKS_REPUT_GRAPHIC' => $config['thanks_reput_graphic'],
- 'THANKS_REPUT_HEIGHT' => sprintf('%dpx', $config['thanks_reput_height']),
- 'THANKS_REPUT_GRAPHIC_WIDTH'=> sprintf('%dpx', $config['thanks_reput_level']*$config['thanks_reput_height']),
- 'THANKS_REPUT_IMAGE' => ($config['thanks_reput_image']) ? $phpbb_root_path . $config['thanks_reput_image'] : '',
- 'THANKS_REPUT_IMAGE_BACK' => ($config['thanks_reput_image_back']) ? $phpbb_root_path . $config['thanks_reput_image_back'] : '',
- ));
- }
- else
- {
- global $max_topic_thanks, $config, $phpbb_root_path, $template, $topic_thanks;
- $template->assign_block_vars('topicrow.reput', array(
- 'TOPIC_REPUT' => 0,
- 'S_THANKS_TOPIC_REPUT_VIEW' => $config['thanks_topic_reput_view'],
- 'S_THANKS_REPUT_GRAPHIC' => $config['thanks_reput_graphic'],
- 'THANKS_REPUT_HEIGHT' => sprintf('%dpx', $config['thanks_reput_height']),
- 'THANKS_REPUT_GRAPHIC_WIDTH'=> sprintf('%dpx', $config['thanks_reput_level']*$config['thanks_reput_height']),
- 'THANKS_REPUT_IMAGE' => ($config['thanks_reput_image']) ? $phpbb_root_path . $config['thanks_reput_image'] : '',
- 'THANKS_REPUT_IMAGE_BACK' => ($config['thanks_reput_image_back']) ? $phpbb_root_path . $config['thanks_reput_image_back'] : '',
- ));
- }
Add Comment
Please, Sign In to add comment