Link Modifications for phpBB2

17 years 1 month ago #32059 by chrismurray182
Replied by chrismurray182 on topic Re:Link Modifications for phpBB
Hey guys,
I scripted a bit of code to put a link to the phpbb PM link;

[code:1]//Get the joomla ID
$joomlaid = trim(mosGetParam($_REQUEST, 'user', ""«»));

//Get equivalent PHPBB id from database
mysql_connect('HOST','DBNAME','DBPASSWORD');
$sql = 'SELECT cb_phpbbid FROM nitja_comprofiler WHERE user_id = '.$joomlaid;

$result = mysql_query($sql);
$row = mysql_fetch_row($result);
$phpbbid = $row[0];

//Create link to PHPBB PM page, posting PHPBB user id.
$phpbbmessagelink =
"
<a href = 'forum/privmsg.php?mode=post&u=".$phpbbid."'>Private Message</a>
";

//Put this where you want your link.
echo ($phpbbmessagelink);[/code:1]

Bit of a problem though, I have no idea how i can get the link to open in the main body?

Any body have any ideas?

Thanks, Chris.

Please Log in to join the conversation.

17 years 3 weeks ago #35107 by Monclee
Replied by Monclee on topic Re:Link Modifications for phpBB
Where is the Zip File.

I want to redirect de PhpBB profile to my CB profile :), thanks a lot, :laugh:

Please Log in to join the conversation.

17 years 3 weeks ago #35108 by Monclee
Replied by Monclee on topic Re:Link Modifications for phpBB
where is the zip file :(

Please Log in to join the conversation.

17 years 2 weeks ago #35158 by geeffland
Replied by geeffland on topic Re:Link Modifications for phpBB
The zip file is in this thread, page 1 the 6th post

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

17 years 2 weeks ago #35299 by Monclee
Replied by Monclee on topic Re:Link Modifications for phpBB

Hey guys,
I scripted a bit of code to put a link to the phpbb PM link;

Code:


Just Wanna Know if that code works fine, i want to redirect pm on phpBB to the one im using (JIM). I think this code is on the right track, but wanna know if some one has tested it before.

Thanks, and if you know how to do that please answer to.

:).

Apollogize myself for keeping posting, but i think would be great to include this update on the nex phpbbConnector. :whistle: jiji.

Please Log in to join the conversation.

17 years 2 weeks ago #35338 by geeffland
Replied by geeffland on topic Re:Link Modifications for phpBB
Chris,

Sorry I think I missed seeing your question at the bottom... I think you will have to have the page open in a component to show in the main body or module to show in other parts... The main Joomla screen is not based on iframes so the target='yyy' option on the href won't help for this case...

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.709 seconds

Facebook Twitter LinkedIn