|
|
Re:Link Modifications for phpBB
|
|
Date: 2006/12/14 10:38
|
By: Zann
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 4 |   | |
|
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...
|
|
The administrator has disabled public write access. |
|
|
|
Re:Link Modifications for phpBB
|
|
Date: 2006/12/14 17:01
|
By: geeffland
|
Status:
|
|
|
Karma: 226  
|
|
Moderator  | Posts: 811 |   | |
|
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
|
|
The administrator has disabled public write access. |
|
|
|
Re:Link Modifications for phpBB
|
|
Date: 2006/12/14 21:15
|
By: Zann
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 4 |   | |
|
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.
|
|
The administrator has disabled public write access. |
|
|
|
Re:Link Modifications for phpBB
|
|
Date: 2006/12/15 19:35
|
By: geeffland
|
Status:
|
|
|
Karma: 226  
|
|
Moderator  | Posts: 811 |   | |
|
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: | <a href="' . $temp_url . '">
|
you need to change it to the following to open in a new page
| Code: | <a href="' . $temp_url . '" target="_blank">
|
Greg CB3PD Developer - CB Connector (formerly phpBB Connector) plugin
|
|
The administrator has disabled public write access. |
|
|
|
Re:Link Modifications for phpBB
|
|
Date: 2007/02/23 18:41
|
By: chrismurray182
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 22 |   | |
|
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
http://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.
|
|
The administrator has disabled public write access. |
|
|
|
Re:Link Modifications for phpBB
|
|
Date: 2007/02/23 19:09
|
By: chrismurray182
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 22 |   | |
|
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.
|
|
The administrator has disabled public write access. |
|
|