I have a links problem. I can get the phpBB front page to show correctly within the Drupal block. But every single link adds the whole domain to the front of what it should be. So I get http://example.com/http://example.com/forums/viewforum.php?f=3

Could someone please assist?

Comments

WiZeR’s picture

anyone?

WiZeR’s picture

I would really appreciate some help here please. I've had so many problems and this looks like the last one. But I just can't work out what's going on. Everything else seems fine.

WiZeR’s picture

Hi, help please?

alexp999’s picture

What are your location settings in drupal for the phpbbforum module? Is the location server relative, or did you type the actual address in? And what do you have set in phpbb for the server settings? Are you using the module to provide a bridge or embed the forum? If you are embedding, have you setup the url aliases as per the install.txt file?

Your settings should look something like:

Drupal phpbbforum module:

phpbb root path:
/home/<server user>/public_html/forums/

api location:
/modules/phpbbforum/includes/ (or wherever the module is stored)

phpbbapi:
phpbb_api.php

phpbb server settings:

Force url:
Yes

Domain name:
www.example.com

Script path:
/forums

phpbb cookie settings

Cookie domain:
.example.com - Note the dot.

WiZeR’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (fixed)

Hi thanks very much for your help. It was the internal phpBB3 settings that needed changing. I either missed this from the install instructions or they weren't there.

My forum now works but the theme is broken. I will post a new issue for that.

Cheers.

Marcus 78’s picture

A bit of a noob at this. I´ve got the same problem.
How did you fix this problem?
Was it through editing Mysql settings or in a specific php file?

Marcus 78’s picture

FYI

Fixed but Im gonna test this solution a bit more. It seem to work good.

I changed this line at row 78
$site_forum_url_lang = $site_forum_url = $base_url .'/'. $site_phpbb_page_lang;
to
$site_forum_url_lang = $site_forum_url = $site_phpbb_page_lang;

You will get som errors if you try to use the admin panel och searching for anybody in the pm section but you can fix it manually in the code

Might now be the best solution but it works.