phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Poll results

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 Zero duplicate
::  
Author Message
Gianbi



Joined: 10 Mar 2008
Posts: 6

Poll resultsPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Poll resultsPosted: Tue Mar 11, 2008 1:21 pm    Post subject: Re: Poll results

The "poll issue" already is discussed in several threads, as you can see in the related links below, but since I'm still unable to reproduce the bug, it's pretty hard to tell.

SingaporeForum had the problem and it suddenly disappeared which could mean the bug only is related to some caching issue (template and theme or even browser's cache).

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Gianbi



Joined: 10 Mar 2008
Posts: 6

Poll resultsPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Poll resultsPosted: Wed Mar 12, 2008 5:58 pm    Post subject: Re: Poll results

Will investigate further on this, but again, I do not have any bug when testing so far, at least this only occurs for few.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Gianbi



Joined: 10 Mar 2008
Posts: 6

Poll resultsPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Poll resultsPosted: Wed Mar 12, 2008 9:40 pm    Post subject: Re: Poll results

nope, that's the way extra var can be allowed in the zero duplicate.

Looks like you fixed it great Very Happy

Anyway, the zero dupe need to be updated, I'm thinking of rewriting it barely from scratch once more Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 Zero duplicate
Page 1 of 1

Navigation Similar Topics

Jump to: