/announces/ no permission?

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

/announces/ no permission?

Postby herculepoirot » Mon Sep 15, 2008 6:56 am

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
herculepoirot
 
Posts: 5
Joined: Thu Jul 31, 2008 10:56 am

Advertisement

Postby dcz » Sat Sep 20, 2008 7:21 am

Yes, this is an edge case.
We've talked about that here : http://www.phpbb-seo.com/boards/phpbb-s ... t2950.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: Select all
      if (empty($forum_id) && strpos($this->seo_path['uri'], $this->seo_static['global_announce'] . '/' ) !== false) {
         $forum_id = XX;
      }

after :
Code: Select all
      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 ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21291
Joined: Fri Apr 28, 2006 9:03 pm

Re: /announces/ no permission?

Postby Asira » Mon Sep 07, 2009 8:23 pm

Can't find this code and i have the same problem :oops:
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: /announces/ no permission?

Postby SeO » Tue Sep 08, 2009 10:25 am

It's been a while since we circumvented this issue, eg allow everybody to view global annoucements.
What problem are you facing precisely ?
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Re: /announces/ no permission?

Postby Asira » Tue Sep 08, 2009 11:32 am

My announcement gets placed in forum which is for admins only. I read a lot about this issue and found this edit above but can't find the specific code:
Code: Select all
          if ($id = @array_search($forum_uri, $this->cache_config['forum']) ) {
             $forum_id = (int) $id;
          }
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: /announces/ no permission?

Postby Asira » Thu Sep 10, 2009 5:11 pm

Anyone? How can i fix this issue?
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: /announces/ no permission?

Postby dcz » Sat Sep 12, 2009 12:27 pm

Note that this trick will only work if you are using the virtual folder option.

Then, with the current version, you could add :
Code: Select all
      if (empty($forum_id) && strpos($this->seo_path['uri'], $this->seo_static['global_announce'] . '/' ) !== false) {
         $forum_id = XX;
      }

After :
Code: Select all
      if ($id = @array_search($forum_uri, $this->cache_config['forum']) ) {
         $forum_id = max(0, (int) $id);
      } elseif ( $id = $this->get_url_info('forum', $forum_uri, 'id')) {
         $forum_id = max(0, (int) $id);
      }


If you are not using the virtual folder option, there so far no fix for that, but it's only the breadcrumb, so, it's not a critical one.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21291
Joined: Fri Apr 28, 2006 9:03 pm

Re: /announces/ no permission?

Postby Asira » Sat Sep 12, 2009 2:17 pm

It's not working. I tried this many times with virtual folders enabled with no luck at all. Allways puts the announcements in forum with lowest id.

Is there a way to change the forum id in the database. I tried but then it wont show the forum.
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: /announces/ no permission?

Postby HAMMER663 » Fri May 13, 2011 4:32 pm

Made all as offered here, but nothing has helped
The version of a forum 3.0.8 and mod V 0.6.6

I have this problem. Mode simple
help me!
HAMMER663
 
Posts: 9
Joined: Fri Oct 22, 2010 4:45 pm


Return to Advanced SEO URL

Who is online

Users browsing this forum: psbot [Picsearch] and 9 guests


 
cron