phpbb Gallery - addon or feature
Posted: 25 Nov 2011, 00:38
Hello!
I would have phpBB Gallery, along with Goals Forum.
I did the following: (Of course it is a copy of your code.)
Open: style/template/prosilver/forum_goal_body.html
Find:
Add before:
Open: includes/acp/acp_board.php
Find:
Add after:
Open: language/en/acp/board.php
Find:
Add after:
Open: language/en/common.php
Find:
Add after:
Open: index.php
Find:
Add after:
Also changed the install to run all together.
Open: install_forum_goal.php
Find:
Add after:
But the result was this.
It would be possible to help this?
Thank you!
I would have phpBB Gallery, along with Goals Forum.
I did the following: (Of course it is a copy of your code.)
Open: style/template/prosilver/forum_goal_body.html
Find:
Code: Select all
</tbody>
Code: Select all
<!-- IF FIG_ENABLE -->
<tr>
<td style="width: 180px; font-size:12px;">{L_TOTAL_FORUM_IMAGES_GOAL} <strong>{FORUM_IMAGES_GOAL}</strong></td>
<td style="width: 180px; font-size:12px;">{TOTAL_IMAGES}</td>
<td style="width: 150px; font-size:12px;"><!-- IF FORUM_IMAGES_PERCENT < 100 -->{L_GOAL_REMAINING} <strong>{FORUM_IMAGES_REST}</strong><!-- ELSE --><em>{L_GOAL_REMAINING_ZERO}</em><!-- ENDIF --></td>
<td><div style="background:url('{ROOT_PATH}images/forum_goal_grey.png') repeat-x; background-color: #cccccc; border: 1px solid black; width:100%;"><div style="background:url('{ROOT_PATH}images/forum_goal_green.png') repeat-x;background-color: #008040; color: white; font-weight:bold; max-width:100%; width:{FORUM_TOPIC_PERCENT}%; height:12px;"><span style="padding-left:25px; font-size:10px; line-height:12px;">{FORUM_IMAGES_PERCENT}%</span></div></div></td>
</tr>
<!-- ENDIF -->
Find:
Code: Select all
'forum_goals_users' => array('lang' => 'FUG_NUMBER', 'validate' => 'int', 'type' => 'text:15:8', 'explain' => false),
Code: Select all
'forum_goals_images_enable' => array('lang' => 'FIG_ENABLE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'forum_goals_images' => array('lang' => 'FIG_NUMBER', 'validate' => 'int', 'type' => 'text:15:8', 'explain' => false),
Find:
Code: Select all
'FUG_NUMBER' => 'Informe a quantidade de registros de usuários para cumprir a meta',
Code: Select all
'FIG_ENABLE' => 'Ativar ou desativar metas de imagens na Galeria do Fórum',
'FIG_NUMBER' => 'Informe a quantidade de imagens na Galeria para cumprir a meta',
Find:
Code: Select all
'TOTAL_FORUM_USER_GOAL' => 'Meta de Usuários',
Code: Select all
'TOTAL_FORUM_IMAGES_GOAL' => 'Meta de Imagens',
Find:
Code: Select all
'FORUM_USER_REST' => $forum_goals_users_rest,
));
}
Code: Select all
if (!empty($config['forum_goals_images_enable']) && $config['forum_goals_images'] > 0)
{
$forum_goals_images_percent = ($total_images * 100) / $config['forum_goals_images'];
$forum_goals_images_rest = $config['forum_goals_images'] - $total_images;
$template->assign_vars(array(
'FIG_ENABLE' => $config['forum_goals_images_enable'],
'FORUM_IMAGES_GOAL' => $config['forum_goals_images'],
'FORUM_IMAGES_PERCENT' => number_format($forum_goals_images_percent),
'FORUM_IMAGES_REST' => $forum_goals_images_rest,
));
}
Open: install_forum_goal.php
Find:
Code: Select all
array('forum_goals_users', 0),
Code: Select all
array('forum_goals_images_enable', 0),
array('forum_goals_images', 0),
Thank you!