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

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

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