showing user group in coppermine profile.php when bridged to phpbb3 showing user group in coppermine profile.php when bridged to phpbb3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

showing user group in coppermine profile.php when bridged to phpbb3

Started by edenffs, November 12, 2009, 12:08:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

edenffs

Is it possible to show the user group on profile.php when bridged to phpbb3?

an example of my profile.php   http://www.lambretta-images.com/profile.php?uid=2

I have a link to the phpbb3 profile page from the page above but I would like to be able to show the group that the users are in on the cpm profile page.

running cpm 1.4.25 and phpbb3 3.0.4

I have been trying to do this for a few days :(

this works but it gets the user group from the cpm db not the phpbb3 db

$query1 = "SELECT user_name, user_group
FROM cpg14x_users
WHERE user_name='{$CURRENT_PIC_DATA['owner_name']}'

LIMIT 200";
$result1 = mysql_query($query1) or die("Could not complete database  query");
$num1 = mysql_num_rows($result1);
if ($num1 != 0) {

while ($row = mysql_fetch_array($result1)) {
if ($row["user_name"]) {

$test = $row["user_group"];
echo $test;

}}} else {
echo "No Records found";
}





edenffs

or could someone point me in the right direction as to how the usermng.php file gets the users groups from the phpbb3 data base?