phpbb integration Link To profile Bug phpbb integration Link To profile Bug
 

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

phpbb integration Link To profile Bug

Started by Pakistani1, May 30, 2007, 02:14:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pakistani1

i changed the following line in
includes/function.inc

$caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title"><a href ="profile.php?uid='.$row['owner_id'].'">'.$row['owner_name'].'</a></span>' : '';
to

$caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title">Posted by: <a href ="http://www.mastimagic.org/board/profile.php?mode=viewprofile&u='.$row['owner_id'].'">'.$row['owner_name'].'</a></span>' : '';


theres just one problem with the method above ...
when installing phpbb the first user that gets registered is Anonymous and
when installing coppermine the first user is the user name that we specify on installation

now when i cliked on my username in copper mine it took me to the profile of the first user thats Anonymous  Undecided not my id


Pakistani1
the id number for Pakistani1 on coppermine is 1 and on phpbb is 2 ..

the above changes take me to the following link
me to the following link

http://www.mastimagic.org/board/profile.php?mode=viewprofile&u=1
it should take me to the following link
http://www.mastimagic.org/board/profile.php?mode=viewprofile&u=2




phpbb version 2.0.22
mxBB-Portal 2.7.7
Site name www.mastimagic.org
clik on the Gallery link from the portal page to go to coppermine

Nibbler


Joachim Müller

Pakistani1 is refering to a customization request where I have come up with some code suggestion (see thread "PHPBB Integration Link to Profile"). Clearly not a bug, but a PEBCAK issue. Shouting "bug" is just ignorant/invalid and will make supporters reluctant to look into your issues...

Pakistani1

what should i do so that when i click on the link it should take me to the 2nd profile not first profile

Joachim Müller

Actual link to gallery: http://www.mastimagic.org/coppermine/index.php

Try arithmetics: $row['owner_id']+1 might solve your issue.

Pakistani1

thanx for that i did another thing to solve the issue .. i reinstalled coppermine with another id first ...
then registered Pakistani1 as another id .. and then did the integration and now it works fine ..

thanx for all the help