Link Modifications for phpBB2

15 years 2 months ago #19834 by geeffland
Link Modifications for phpBB2 was created by geeffland
Many of you have asked how can I change the profile links in phpBB to point to CB's user profile and also about removing register links and login links...

Well here is an answer... Finally just sat down and plugged away. In this zip file is a README.txt file which briefly explains how to get these to work. Basically you just modify 1 file to indicate the root of your Joomla site, then ftp a few files up to your site... then done.

Note: The template changes in this zip are for the subSilver template... If you need I can post what changed to remove the links and login box... they were pretty easy... that way you can apply those to other templates.

Anyway here is the ZIP file... (AND these apply to phpbb 2.0.21 not tested with anything else)

Enjoy!
Greg

File removed... code was for next version of CB Connector and not phpBB Connector v1.0.2

Post edited by: geeffland, at: 2006/08/30 00:01

Post edited by: geeffland, at: 2006/08/30 22:00

Post edited by: geeffland, at: 2008/04/15 20:13

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin
Attachments:
The following user(s) said Thank You: Venci

Please Log in to join the conversation.

15 years 2 months ago #19872 by duronl
Replied by duronl on topic Re:Link Modifications for phpBB
well this really messed up my db :D
but i fixed it again.
it went totally wrong.
gave me some errors and couldnt even see my forum any more only the suroundings of template...

in the readme file it says update the 'cbc_joomla_root_url' variable in 'inc_cbconnector.php' ********* VERY IMPORTANT

but maybe i editet it wrong can you tell me exactly what to put in as url? is it just my website or the forum page ?
this is how i edited it:
define('cbc_joomla_root_url', ' www.globalxboxcommunity.com/index.php ');

is this good ?? need help :P
i want the registration to fuck off :P

here is the error code.
Could not obtain CB User id for phpBB id=2

DEBUG MODE

SQL Error : 1146 Table 'gxcdb.jos_comprofiler' doesn't exist

SELECT user_id FROM jos_comprofiler WHERE cb_forumid='2'

Line : 13
File : inc_cbconnector.php

Post edited by: duronl, at: 2006/08/30 13:27

so thougd i figured it out couse im not using jos_ but gxc_
so i edited the inc_ again but now i get
Could not obtain CB User id for phpBB id=2

DEBUG MODE

SQL Error : 1054 Unknown column 'cb_forumid' in 'where clause'

SELECT user_id FROM gxc_comprofiler WHERE cb_forumid='2'

Line : 13
File : inc_cbconnector.php

Post edited by: duronl, at: 2006/08/30 13:31

Founder of Stampgasten.nl & globalxboxcommunity.com
Check: www.stampgasten.nl | www.globalxboxcommunity.com

Please Log in to join the conversation.

15 years 2 months ago #19874 by duronl
Replied by duronl on topic Re:Link Modifications for phpBB
Ok i fixed it :D

I had to add a new field called cb_forumid
also in the database once i made it the forum started to work :D
well so for all of you who gets the same problem try it.

all it takes is some reading ;)

only thing i need to know now is what you changed couse i really want to use my own template :D

Post edited by: duronl, at: 2006/08/30 13:45

Founder of Stampgasten.nl & globalxboxcommunity.com
Check: www.stampgasten.nl | www.globalxboxcommunity.com

Please Log in to join the conversation.

15 years 2 months ago #19912 by geeffland
Replied by geeffland on topic Re:Link Modifications for phpBB
Thanks for posting these messages... in my excitment for getting this done... I posted some modifications that need some additional error trapping... (and the cb_forumid... that is the field name in CB Connector... used to be cb_phpbbid... let me take the ZIP file off for a while.. and post a version that works with v1.0.2 and has some extra error trapping.

A side note: the profile links as setup in this ZIP file show the CB profiles... so for phpBB users that are not syncd up using the phpbb connector... no profile will be available. So you will only want to do this if your users are syncd.

let me post up a new ZIP later tonight... and I will try to remove the 1 I posted earlier if I can.

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

15 years 2 months ago #20019 by duronl
Replied by duronl on topic Re:Link Modifications for phpBB
Ok i get it.
Cool cant wait.
Could you also pm me the things i need to change in my own template so i can use it :D
would be nice thanks in advance

Founder of Stampgasten.nl & globalxboxcommunity.com
Check: www.stampgasten.nl | www.globalxboxcommunity.com

Please Log in to join the conversation.

15 years 2 months ago #20047 by geeffland
Replied by geeffland on topic Re:Link Modifications for phpBB
Here is the updated file. In the includes file the inc_cbconnector.php has some variables that can turn off the profile links if desired. This will re-route the register link for sure.

In the templates directory... near line 73 in the
<!-- BEGIN switch_user_logged_out -->
area is where the login box at the bottom was removed and replaced with text and a link to your main site (as defined in inc_cbconnector.php)


If overall_header.php after the same line is where it shows the register link... in the NO REGISTER LINK version of that file you will notice that I simply deleted that line of code. And on line 242 I removed the login/logout link at the end of the line.

Enjoy! As said earlier this may be a little early since no publicly released version of CB Connector has the ability to modify the phpbb Profile (only in V2.0.0 alpha)... but here is the code for those that might use it...

Greg

Attachment phpbb_2-466c0e9bef4bfcfa38eb3db74f52f550.zip not found


CB3PD Developer - CB Connector (formerly phpBB Connector) plugin
Attachments:

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.199 seconds

Facebook Twitter LinkedIn