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  
 
   
CH & win1251 & Simple mod rewrite
Goto page Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Simple mod rewrite
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13994

CH & win1251 & Simple mod rewritePosted: Sun Feb 04, 2007 5:42 pm    Post subject: Re: CH & win1251 & Simple mod rewrite

You're welcome Very Happy

vitok wrote:

dcz wrote:
these two are most likely already knew at this stage in the regular code

It seems to me they are not.


Just keep the way it is now then, and you could then replace :

Code:
   if ($_GET['topicdays'] == 0  || $_POST['topicdays'] == 0 ) {
      $topicday_redir = TRUE;
   }


with :
Code:
   if (_read('topicdays', TYPE_INT) == 0 ) {
      $topicday_redir = TRUE;
   }


vitok wrote:

I've finally uploaded everything on www.osvic.ru
I'm not just looking happy, I am happy!! Very Happy


All right Very Happy

You did a pretty good job Wink

could you post or PM the final code for the zero dupe ? just for the ppage var, the one for the particular forum browsed, as I did not know which var to use for it 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
vitok



Joined: 25 Jan 2007
Posts: 10

CH & win1251 & Simple mod rewritePosted: Sun Feb 04, 2007 8:15 pm    Post subject: Re: CH & win1251 & Simple mod rewrite

dcz wrote:
could you post or PM the final code for the zero dupe ? just for the ppage var, the one for the particular forum browsed, as I did not know which var to use for it Wink

In fact I do not use different topics ppages for my forums, nor I allow users to change this parameter. So for me $board_config['topics_per_page'] is optimal, I guess. Still in class_topics.php we have
Code:
'ppage' => array($forums->data[$this->forum_id]['forum_topics_ppage'], isset($user->data['user_topics_ppage']) ? $user->data['user_topics_ppage'] : $config->data['topics_per_page'], $config->data['topics_per_page'], 50),

so probably it's better to define topics per page this way. The problem is now it's necessary to put
Code:
// read forums
$forums = new forums();
$forums->read();
//

before the seo block. And I'm not sure it's the right idea when we'll probably be redirected. What do you think?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13994

CH & win1251 & Simple mod rewritePosted: Mon Feb 05, 2007 12:07 am    Post subject: Re: CH & win1251 & Simple mod rewrite

Well, it depends.

On phpBB (without ch) we eventually do the redirection just after we know the forum title in viewforum.php, otherwise we could not check injected titles.

So according to how CH is built up, you could either move the query doing this before the redir (or the redir after) as long as you can manage to do it after only the viewed forum info are known (not all the output) without adding queries.

It's for sure a bit less interesting with the simple mod rewrite but is required for others and for the ppage param.

++

_________________
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  » phpBB mod Rewrite  » Simple mod rewrite
Page 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: