Bridging to a community, not a board Bridging to a community, not a board
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bridging to a community, not a board

Started by amadeus, August 15, 2006, 01:10:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

amadeus

hello,

i need a little bit help to bridge the cpg 1.4x to my community, not to a board.
only registered members of the community shall give comments to the pictures in the cpg.

now i need only to verify the username and the md5 password from the community when the
user will give a comment to the pictures.
other functions to bridge as redirect to register, editusers, edituserprofile etc. i don't need from cpg.

i examine the simplest bridge file punbb115.inc.php, but in the file are many entries for the
punbb board. for example:

// local path to your punbb config file (i don't have this)

i understand other things like:

// Database connection settings
// Board table names
// Table field names

this are ok.

how can i modify the bridgefile?
what do you need for info to help me?

thanks amadeus

Joachim Müller


amadeus

hello GauGau,

ok, here the answers...

i need help to bridge the cpg 1.4.7 and the freeware-chat community from javafactory.

Coppermine install: http://www.hi-living.de/galerieint/index.php
Forum install: I don't have a forum to bridge to cpg.
Community install: http://www.hi-living.de
Coppermine version: cpg1.4.7
Forum version: Don't have a forum.
Test user account for cpg: name: testuser pw: testuser

BridgeManager settings:
Forum URL: Don't have a forum
Relative path to your BBS's config file: Don't have a relative path to the config file.
Use post-based groups?:  0  No, don't use post-based groups.

You can login as guest in the community to see the cpg in the community.
http://www.hi-living.de
-> left in the menue login
-> click login in the center
-> left in the menue 'Interne Galerie'

All members of the community stored in the db.
The db has a table called registry.
The table registry has 76 fields, two of the fields are the interest.
Called 'username' and 'password'. The password is MD5 coded.

Now i think the cpg get with the bridgemanager and the bridgefile access
to the users in the community.
Only the registered users from the community shall give comments to the pictures stored in the cpg.

First changes in the simpelst bridgefile punbb115.inc.php are:

// Table field names
$this->field = array(
   'username' => 'username', // name of 'username' field in users table
   //'user_id' => 'id', // name of 'id' field in users table
   'password' => 'password', // name of 'password' field in users table
   //'email' => 'email', // name of 'email' field in users table
   //'regdate' => 'registered', // name of 'registered' field in users table
   //'location' => 'location', // name of 'location' field in users table
   //'website' => 'url', // name of 'website' field in users table
   //'usertbl_group_id' => 'status', // name of 'group id' field in users table
);

But this enough, what ist with the rest?
Start with
// Switch that allows overriding the bridge manager with hard-coded values
and
// URL of your punbb (I don't have this)
// local path to your punbb config file (I don't have this)
Database connection settings is clear.
// Board table names ? This mean the table registry ?
// Pages to redirect to (I don't need this)
and the rest?

All edit about the users are from the community software.

With the friendly ask for answer

amadeus

Nibbler

You need to know PHP and be familiar with app you are bridging to to be able to create a bridge file. If you can't do it by yourself then you'll need to find someone who can.