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  
 
   
/announces/ no permission?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
herculepoirot



Joined: 31 Jul 2008
Posts: 5

/announces/ no permission?Posted: Mon Sep 15, 2008 6:56 am    Post subject: /announces/ no permission?

i've successfully installed the mod (adv url, zero dupe, no dupe, and gyms).

at first i thought it was 100% success, and with my administrator account i can access everywhere perfectly!.

but then after i uploaded in the real web,

my members start complaining that they cant read the global announce.

it gave them this error msg "You are not authorised to read this forum."

and the address will be schoolclub/announces/some-topic-match-2008-2009-sports-school-t4070.html

pls help me.

thanks
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

/announces/ no permission?Posted: Sat Sep 20, 2008 7:21 am    Post subject: Re: /announces/ no permission?

Yes, this is an edge case.
We've talked about that here : http://www.phpbb-seo.com/boards/phpbb-seo-premod/discussions-vt2950.html

Basically, you need your lowest postable forum id to be public for the announces to work.
This is because the global announcements do not have a forum id (0), in the regular process, phpBB3 will just assign them the forum_id where they are viewed, which you must have the right to read, and when there is none, the lowest postable forum id is assigned and auth are later based on that.

If you are using virtual folder, there is a fast workaround, you can add :

Code:
      if (empty($forum_id) && strpos($this->seo_path['uri'], $this->seo_static['global_announce'] . '/' ) !== false) {
         $forum_id = XX;
      }

after :
Code:
      if ($id = @array_search($forum_uri, $this->cache_config['forum']) ) {
         $forum_id = (int) $id;
      }


in phpbb_seo/phpbb_seo_class.php.

And set XX to a public forum id, should work 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 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: