coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: slamp on May 09, 2005, 11:34:43 PM

Title: Need advices to build a new bridge for b2evolution
Post by: slamp on May 09, 2005, 11:34:43 PM
I will try to create a new bridge to integrate Coppermine and b2evolution (http://b2evolution.net) (a blog system).
I checked files in bridge folder but I have some questions:
- Is the any documentation describing how to create a new bridge

- The user table in b2evo contains the following columns: ID, user_login, user_pass, user_firstname, user_lastname, user_nickname, user_icq, user_email, user_url, user_ip, user_domain, user_browser, dateYMDhour, user_level, user_aim, user_msn, user_yim, user_locale, user_idmode, user_notify, user_grp_IDDo I need to add others colomns in this table ?

- For authentication, b2evo uses 2 cookies: one for the username, one for the password. Do I need to write a new  function to make the authentication, or can I use an existing function ?
Cookie's example: cookieb2evouser user
cookieb2evopass 21232fff7a57a5a743894a0e4a801fc3


- If I use an existing bridge file, which one is most "adapted" ?

- Do have any advices to help me ?
Title: Re: Need advices to build a new bridge for b2evolution
Post by: Nibbler on May 10, 2005, 07:51:06 PM
I'd wait for version 1.4 of coppermine. It will be a lot easier to create bridge files, plus any bridge you create for 1.3 will need rewriting for 1.4 anyway. If you want to make one now, then basing it on the phpbb bridge file would probably be best.
Title: Re: Need advices to build a new bridge for b2evolution
Post by: slamp on May 11, 2005, 06:38:30 PM
As I already begun, I will continue. It will be easier for me to rewrite a new bridge for 1.4 if I understand now how it should run ;-)

I have a question about groups when bridging cpg.
Bellow the default groups set in CPG and b2evolution:
CPG.group_ID, CPG.group_name
Admin
2 Members
3 Guests
4 Banned

b2evo.grp_ID, b2evo.group_name
Administrators
2 Priviledged Bloggers
3 Bloggers
4 Basic Users


- Do I have to manually create cpg_groups in b2evolution table ? I mean guests and banned that do not exist by default in b2evolution ?

- When a new user will subscribe (in b2evolution), it will not be putted in any group as there is no default group in b2evolution; should I have it automatically in cpg Guests group ?

Slamp
PS: When 1.4 will be release ?