Link Modifications for phpBB2

15 years 1 month ago #26968 by Zann
Replied by Zann on topic Re:Link Modifications for phpBB
Hi geeffland ! First of all thanks a lot for this connector and those links modifications, it works well !

But I have a very small problem, and I don't know how to resolve it : my phpbb is in a wrapper, so when I click on the name of a member, I'm not redirected only towards his profile but towards a double site, if you see what I mean...

I can see my site, with its left menu, and so on, and, wrapped into it, my site again, with the profile of the member.

Is there a way that the link doesn't open into the wrapper, but not into a blank page ?

And if not, how could I make it open into a blank page ?

Thanks a lot, and pardon my horrid english...

Please Log in to join the conversation.

15 years 1 month ago #26988 by geeffland
Replied by geeffland on topic Re:Link Modifications for phpBB
In the link modifications I posted here I don't think there is an "easy" way to do this... Basically phpbb reads the template files in and replaces ther {variables} with the text in other files...

To fix the issue you would either need to add a target="_blank" to the href or do a javascript window.open command.

For v2.0.0 I could modifiy the link to point to the CBC wrapper and let it control what happens... (maybe... not sure it will work that way either)... may be able to create a Joomla mambot to redirect but not exactly sure how that would be done...

Sorry,
Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

15 years 1 month ago #27015 by Zann
Replied by Zann on topic Re:Link Modifications for phpBB
geeffland wrote:

To fix the issue you would either need to add a target="_blank" to the href


OK, I guessed I should do that... Could you tell me how exactly I can do it ? In wich file, etc ? Thanks a lot.

Please Log in to join the conversation.

15 years 1 month ago #27068 by geeffland
Replied by geeffland on topic Re:Link Modifications for phpBB
The files needing modified would depend on which links you wanted to fix.

For instance Profile Links appear in many files... Most of the files included in the link modifications ZIP file touch the profile link...

groupcp, index, memberlist, modcp, privmsg, search, viewforum, viewonline, viewtopic, page_header (all php files)

Do a seach for cbc_joomla_profile_link in those files and you will see where you need to change the href.

In some of those the link may look like
[code:1]<a href="' . $temp_url . '">[/code:1]

you need to change it to the following to open in a new page
[code:1]<a href="' . $temp_url . '" target="_blank">[/code:1]

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

14 years 10 months ago #31882 by chrismurray182
Replied by chrismurray182 on topic Re:Link Modifications for phpBB
I Had a few errors,

main one was solved by changing the table prefix in

inc_cbconnector.php from 'jos_?' to 'myprefix_?'

for some reason the profile links are

www.mysite.co.uk/www.mysite.co.uk//index.php?option=com_comprofiler&task=userProfile&user=62

Couldn't see anything on forums, i'll find out why it's happening and post here if anybody's having a similar error.

Chris.

Please Log in to join the conversation.

14 years 10 months ago #31885 by chrismurray182
Replied by chrismurray182 on topic Re:Link Modifications for phpBB
I needed to add the line;

else {
// Use the CB profile ID
$url = "";
$url = cbc_joomla_root_url."?option=com_comprofiler&task=userProfile&user=".$cbID;
}

For some reason the windows NT server I`m on had the variable pre-defined!

I had the same wrapper issue as above.

Using 'target = _main' instead of 'target = _blank' means that the link will open in the same window, and avoiding the inset repetition.

Awesome work on the mod geeffland, appreciate it!

Cheers, Chris.

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.182 seconds

Facebook Twitter LinkedIn