Warning: The author of this contribution does not provide support for it anymore.

Board3 Portal

Board3 Portal and phpBB SEO Ultimate SEO URLs - Board3 Portal

Board3 Portal and phpBB SEO Ultimate SEO URLs

by TraceNET » Fri Aug 02, 2013 7:43 pm

Hey!
I use both modifications (Board3 Portal, and phpBB SEO Ultimate SEO URLs 0.7.0 by phpbb-seo.com) and have a really stubborn bug.
If I go to my site I get a portal - that's OK, but if I click "Board index" from the menu I am redirected to the main URL of main domain (not to index.php, to for example domain.com).
If I go manually to domain.com/index.php I am still redirected to the portal page.
I've disabled a portal and I lost access to my homepage (ACP is still working). I thought that it may be sessions problem. Board3 Portal commands to replace one line in incudes/sessions.php, so I've backed it to the default phpBB3 line. And it works! I can access to my site, but after enabling portal problem back.

Could anyone help me? I really need both modifications.
Thanks for reading,
Trace

PS.
If you need a URL to my website, write, I get it for you by PM, if you accept.
If you see mistakes in my posts, please PM me. I want improve my English :).
User avatar
TraceNET
Registered User
Posts: 55
Joined: Tue Aug 14, 2012 10:03 am
Contact:

Re: Board3 Portal and phpBB SEO Ultimate SEO URLs

by TraceNET » Tue Aug 06, 2013 2:02 pm

Hmm... Problem is solved if I remove DirectoryIndex from my .htaccess (phpBB SEO needs also editing in this file).
But then the default page is my forum not a portal.
Someone solved or can solve this problem? :)
Thanks,
Trace
If you see mistakes in my posts, please PM me. I want improve my English :).
User avatar
TraceNET
Registered User
Posts: 55
Joined: Tue Aug 14, 2012 10:03 am
Contact:

Re: Board3 Portal and phpBB SEO Ultimate SEO URLs

by TraceNET » Tue Aug 06, 2013 2:36 pm

After some complications I've finally solved it. Partially... I don't like this "fix". I am not sure, but I can have some problems in the future.
How I have solved it?
In .htacces (after generating it with phpBB SEO) I found:

Code: Select all

# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]

and uncommented it:

Code: Select all

RewriteRule ^forum\.html$ /index.php [QSA,L,NC]

Now to go to the forum page I use forum.html link:
http://mywebsite.com/forum.html - is my forum page (index.php per default).
If you see mistakes in my posts, please PM me. I want improve my English :).
User avatar
TraceNET
Registered User
Posts: 55
Joined: Tue Aug 14, 2012 10:03 am
Contact:

Re: Board3 Portal and phpBB SEO Ultimate SEO URLs

by zombieslist.com » Thu Aug 15, 2013 10:10 pm

I'm using phpBB3 SEO Premod 3.0.11 and Board3 portal 2.0.1. To get them to work together I had to have "Activate the Zero Duplicate" set to no and edit the phpbb_seo_class.php file in phpbb_seo folder. Find line

Code: Select all

var   $seo_stop_files = array('posting' => 1, 'faq' => 1, 'ucp' => 1, 'swatch' => 1, 'mcp' => 1, 'style' => 1, 'cron' => 1);
after

Code: Select all

'cron' => 1
add

Code: Select all

, 'index' => 1, 'portal' => 1
zombieslist.com
Registered User
Posts: 2
Joined: Thu Aug 15, 2013 9:54 pm
Contact:

Re: Board3 Portal and phpBB SEO Ultimate SEO URLs

by zombieslist.com » Thu Sep 19, 2013 5:10 am

zombieslist.com wrote:I'm using phpBB3 SEO Premod 3.0.11 and Board3 portal 2.0.1. To get them to work together I had to have "Activate the Zero Duplicate" set to no and edit the phpbb_seo_class.php file in phpbb_seo folder. Find line

Code: Select all

var   $seo_stop_files = array('posting' => 1, 'faq' => 1, 'ucp' => 1, 'swatch' => 1, 'mcp' => 1, 'style' => 1, 'cron' => 1);
after

Code: Select all

'cron' => 1
add

Code: Select all

, 'index' => 1, 'portal' => 1
The above method leaves the session id in the portal.php and index.php urls. The better method I found was in phpbb_seo_class.php line

Code: Select all

var   $seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html',  'index' => ''
in line find

Code: Select all

'index' => ''
replace with

Code: Select all

'index' => '.php', 'portal' => '.php'
you can use instead

Code: Select all

'index' => '.html', 'portal' => '.html'
but you will need to add in your .htaccess file

Code: Select all

RewriteRule ^index\.html$ /index.php [QSA,L,NC]
RewriteRule ^portal\.html$ /portal.php [QSA,L,NC
Next find line

Code: Select all

var   $seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => ''
in line find

Code: Select all

'index' => ''
replace with

Code: Select all

'index' => 'index', 'portal' => 'portal'
then find

Code: Select all

      $this->rewrite_method[$phpbb_root_path] = array_merge(
         array(
            'viewtopic' => 'viewtopic',
            'viewforum' => 'viewforum',
            'index' => 'index',
after

Code: Select all

            'index' => 'index',
on new line add

Code: Select all

            'portal' => 'portal',
then find

Code: Select all

   /**
   * URL rewritting for index.php
   * @access private
   */
   function index() {
      $this->path = $this->seo_path['phpbb_urlR'];
      if ($this->filter_url($this->seo_stop_vars)) {
         $this->url = $this->seo_static['index'] . $this->seo_ext['index'];
         return;
      }
      $this->path = $this->seo_path['phpbb_url'];
      return;
   }
after on new line add

Code: Select all

   /**
   * URL rewritting for portal.php
   * @access private
   */
   function portal() {
      $this->path = $this->seo_path['phpbb_urlR'];
      if ($this->filter_url($this->seo_stop_vars)) {
         $this->url = $this->seo_static['portal'] . $this->seo_ext['portal'];
         return;
      }
      $this->path = $this->seo_path['phpbb_url'];
      return;
   }
zombieslist.com
Registered User
Posts: 2
Joined: Thu Aug 15, 2013 9:54 pm
Contact: