Advanced search  

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]

Pages: [1]   Go Down

Author Topic: showing user group in coppermine profile.php when bridged to phpbb3  (Read 4487 times)

0 Members and 1 Guest are viewing this topic.

edenffs

  • Coppermine newbie
  • Offline Offline
  • Posts: 7

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

Code: [Select]
$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";
}

 

Logged

edenffs

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: showing user group in coppermine profile.php when bridged to phpbb3
« Reply #1 on: November 12, 2009, 11:49:09 am »

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?
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.