| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Gianbi
Joined: 10 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 12:14 pm Post subject: Poll results |
|
|
This mod create a problem with the option "View results" of the polls?
Can you help me to solve this problem?
Thanks |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Gianbi
Joined: 10 Mar 2008 Posts: 6
|
Posted: Tue Mar 11, 2008 6:24 pm Post subject: Re: Poll results |
|
|
If you try to create a new poll and you click on "View Results" before voting, I think you will have the same issue.
Singapore told that he had voted and than he could see the results.
Can you try, please?
THANKS. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Gianbi
Joined: 10 Mar 2008 Posts: 6
|
Posted: Wed Mar 12, 2008 9:20 pm Post subject: Re: Poll results |
|
|
I'm not a programmer, but probably I have solved the problem.
I have added 2 lines in viewtopic.php with "viewpoll"and it seems to work correctly:
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN -> Zero dupe
$phpbb_seo->seo_opt['zero_dupe']['start'] = $phpbb_seo->seo_chk_start( $start, $config['posts_per_page'] );
if ( $user->data['is_registered'] ) {
$phpbb_seo->seo_cond( !isset($_GET['explain']) );
if ($config['allow_bookmarks'] ) {
$phpbb_seo->seo_cond( !isset($_GET['bookmark']) );
}
$phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'watch=') === FALSE) );
$phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=print') === FALSE) );
$phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=viewpoll') === FALSE) );
}
if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
if ( !$user->data['is_registered'] ) {
$phpbb_seo->seo_cond( isset($_GET['explain']) || isset($_GET['bookmark']), false, 'do' );
$phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'watch=') !== FALSE), false, 'do');
$phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=print') !== FALSE), false, 'do');
$phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=viewpoll') !== FALSE), false, 'do');
}
}
if ( $post_id && !$phpbb_seo->set_do_redir_post() ) {
$phpbb_seo->page_url = $phpbb_seo->seo_path['phpbb_urlR'] . $phpbb_seo->seo_static['post'] . $post_id . $phpbb_seo->seo_ext['topic'];
} else {
$phpbb_seo->page_url = str_replace('&', '&', append_sid("viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=" . $phpbb_seo->seo_opt['zero_dupe']['start'] . "&st=$sort_days&sk=$sort_key&sd=$sort_dir" . (($highlight_match) ? "&hilit=$highlight" : '') . (!empty($_SID) ? '&sid=' . $_SID : ''))) . (($post_id) ? '#p' . $post_id : '');
}
$phpbb_seo->seo_chk_dupe($phpbb_seo->seo_path['uri'], $phpbb_seo->page_url);
// www.phpBB-SEO.com SEO TOOLKIT END -> Zero dupe |
Is it correct or may it cause any problem?
Thanks |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |