Hi,
I'm new to drupal and this module, so this is probably just a mistake I've made with the installation somewhere, but I have a problem with forum links in the blocks.
All of the block links reference /phpbbforum/viewtopic.php?f......
In the version previous dev release I changed the page url in the module file from phpbbforum to ?q=phpbbforum and this made the links work. I downloaded the new dev release (replacing the existing module) and the replace_url code has changed and my 'workaround' (hack) doesn't work anymore.
What should I do / have done for the links in the blocks to work naturally?
TIA for your help,
Matt
Comments
Comment #1
vb commented>What should I do / have done for the links in the blocks to work naturally?
New dev release links does not work without your changes?
.../phpbbforum/viewtopic.php?f
>naturally
What do you mean? Give me example.
What dou want to see instead of
.../phpbbforum/viewtopic.php?f
How this link looked like in previous dev with your change?
Have you enable Clean Urls or not?
Comment #2
Anonymous (not verified) commentedHi,
Thanks for the quick response.
I'm not running clean_urls (my system doesn't support them yet). Is that required for the module? I'm trying to run in embedded mode.
Since I first installed the module, the links (for instance in the New Forum Topics block) have http://domain.com/phpbbforum/(phpbb url) but the other links on the site were looked like domain.com/?q=modulename so I inserted a primary link (disabled navi link exisited but not the primary link) to domain.com/?q=phpbbforum and that worked fine.
If I click on a link domain.com/phpbbforum/... I get a page not found error.
I worked around the block links by changing the variable in the module file to '?q=phpbbforum' instead of 'phpbbforum'. That seemed to work.
Then I downloaded the new dev release this morning, had the same problem and tried to do the same change as before. That didn't work this time so I thought I should give up and ask what I'd done wrong orginally :(
As I said - I'm brand new to Drupal so apologies if I'm just doing something really stupid.
Thanks,
Matthew
Comment #3
vb commentedAdd URL aliases. Core module Path must be enabled.
Main page and link to phpBB in frame is
phpbbforum
To change this name you may add URL aliases
Add next URL aliases (System path -> URL Alias)
For the path 'forums'
phpbbforum -> forums
phpbbforum/viewtopic.php -> forums/viewtopic.php
phpbbforum/viewforum.php -> forums/viewforum.php
phpbbforum/viewonline.php -> forums/viewonline.php
phpbbforum/memberlist.php -> forums/memberlist.php
phpbbforum/posting.php -> forums/posting.php
phpbbforum/search.php -> forums/search.php
phpbbforum/ucp.php -> forums/ucp.php
phpbbforum/mcp.php -> forums/mcp.php
phpbbforum/faq.php -> forums/faq.php
phpbbforum/report.php -> forums/report.php
phpbbforum/adm/index.php -> forums/adm/index.php
Administer › Site building › URL aliases › Add alias
Existing system path: http://example.com/phpbbforum
Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.
http://example.com/forums
Specify an alternative path by which this data can be accessed.
For example, type "about" when writing an about page.
Use a relative path and don't add a trailing slash or the URL alias won't work.
All links from blocks will have that path 'forums' instead of system phpbbforum.
If you prefer name phpbbforum add these aliases
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
phpbbforum/viewforum.php -> phpbbforum/viewforum.php
phpbbforum/viewonline.php -> phpbbforum/viewonline.php
phpbbforum/memberlist.php -> phpbbforum/memberlist.php
phpbbforum/posting.php -> phpbbforum/posting.php
phpbbforum/search.php -> phpbbforum/search.php
phpbbforum/ucp.php -> phpbbforum/ucp.php
phpbbforum/mcp.php -> phpbbforum/mcp.php
phpbbforum/faq.php -> phpbbforum/faq.php
phpbbforum/report.php -> phpbbforum/report.php
phpbbforum/adm/index.php -> phpbbforum/adm/index.php
You cannot enter directly
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
the paths should be different when creating alias but they can be edited.
First create alias with different paths like
phpbbforum/viewtopic.php -> phpbbforums/viewtopic.php
Save, then edit to the same paths
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
It works with or without Clean URLs enabled.
Comment #4
Rynosauri commentedHello,
I believe I am having the same problem as the original poster with my block links. When I click on any of them they just redirect to the home page, not to any of the phpbb stuff.
I am also new to Drupal so there might be some initial assumed steps that I am not doing, or else I'm doing something wrong but I've tried 8 separate times so far and no luck :(.
If I create a link to the forum itself it works, with the path site/?q=phpbbforum, but all the blocks link to the same as what the original poster said (site/phpbbforum/viewtopic.php?f...) and do not work, if that helps at all.
Also, I am running this from localhost, if that might create any problems.
Thanks,
Ryno
Comment #5
vb commentedhello,
>8 separate times so far and no luck
Did you add URL aliases one time as recommended in
http://drupal.org/node/225339#comment-743036 ?
The block links like site/phpbbforum/viewtopic.php?f...) are right but do not work without adding URL aliases
with the name http://localhost/..... I did not test that but on production site it works.
Always ensure you have downloaded the last dev version.
Comment #6
Rynosauri commentedI thought I did, but I will re-download everything and give it another shot and tell you how it goes.
Comment #7
Rynosauri commentedHi again, I am still having the same problem and I followed all of the steps on the install text. I played around with the URL Aliases too, having phpbbforum -> phpBB3 (my phpBB install name) and that link worked, however it doesn't load it in drupal, it loads it in the window as a full page for the phpbb3 item.
I'm sure I'm doing something wrong but I can't figure out what.
Also, for reference, when I tried to create the alias phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php and such they did not add, so I did phpbbforum/viewtopic.php -> forums/viewtopic.php and the navigation and primary link to the forums worked, but the block links continue to not work. I am going to see if I can't get this up on a production site some time soon in case it is a problem with using localhost.
Comment #8
vb commentedDo not mix paths
For the path 'forums' only first set of paths including
phpbbforum -> forums
.......
For the path 'phpbbforum' only second set of paths starting from
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
.......
It is true you cannot enter directly
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
the paths should be different when creating alias but they can be edited.
First create alias with different paths like
phpbbforum/viewtopic.php -> phpbbforums/viewtopic.php
save, then edit to the same paths
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
Comment #9
Rynosauri commentedI figured that out and tried it, it didn't work either. I have tried both phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php and phpbbforum/viewtopic.php -> forums/viewtopic.php and neither of them worked.
I have however noticed that the for example, the link http://localhost/phpbbforum/viewforum.php?f=2 is on one of the blocks. This doesn't work, but if I add a ?q= to make the link http://localhost/?q=phpbbforum/viewforum.php?f=2 and then it works. So is there something I don't have enabled that would make it do that or something? Thanks for your help so far though.
Comment #10
Rynosauri commentedHey I fixed it, I enabled clean URLs and it took care of the problem. Thanks for your help.
Comment #11
Anonymous (not verified) commentedSame here - I couldn't get the URL aliases working but I've just enabled clean URLs via the .htaccess method and all the block links are now working straight away (without any aliases).
Cheers,
Matthew
Comment #12
escanereaf commentedHi folks. I am having the same problem and I really wish your help. The link works fine if I just set it to "In frame inside Drupal page" option. When I set the phpbbforum "In the window" I am getting the Page not found. I followed the install.txt as well but I can't get it to work to open phpbb in a new window.
My current setup are as follows:
http://localhost/drupal57 - main site
http://localhost/phpbb57 - phpbb site
Your response is very much appreciated.
Thanks a ton!
Comment #13
vb commentedChange localhost to real sitename, all will be work.
Comment #14
physiotek commentedwhat about the links from embeded forum?
if i enter phpbbforum/index.php i get to the drupaled phpbb
and if i enter forum/index.php i get to the original phpbb
which is ok but
1. when i am in the drupaled phpbb and i click a forum internal link the url doesnt change in the url top bar so if someone bookmark the link it will not be the right url. is there a way to fix this? if we could tweak phpbb to use phpbbforum instead it would be perfect but can we really tell phpbb to use a 'false' path??
and
2. if i click an external link, the webpage will open embeded in the drupal webpage, which is not really nice. is there a way to tweak again phpbb, but this time to tell him to open the page in _blank? i think it should rule out this issue.
thanks,
pht3k
Comment #15
MortenRostved commentedI have the same problem, but this is where my phpbb forum is placed:
http://forum.site/phpbb3
How do I link to this place?
Comment #16
fizk commented