coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Pakistani1 on May 30, 2007, 02:14:31 PM

Title: phpbb integration Link To profile Bug
Post by: Pakistani1 on May 30, 2007, 02:14:31 PM
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
Title: Re: phpbb integration Link To profile Bug
Post by: Nibbler on May 30, 2007, 04:02:58 PM
Please clarify what the bug is here.
Title: Re: phpbb integration Link To profile Bug
Post by: Joachim Müller on May 30, 2007, 07:21:25 PM
Pakistani1 is refering to a customization request where I have come up with some code suggestion (see thread "PHPBB Integration Link to Profile (http://forum.coppermine-gallery.net/index.php?topic=44088.0)"). Clearly not a bug, but a PEBCAK issue. Shouting "bug" is just ignorant/invalid and will make supporters reluctant to look into your issues...
Title: Re: phpbb integration Link To profile Bug
Post by: Pakistani1 on May 30, 2007, 09:41:22 PM
what should i do so that when i click on the link it should take me to the 2nd profile not first profile
Title: Re: phpbb integration Link To profile Bug
Post by: Joachim Müller on May 31, 2007, 08:10:10 AM
Actual link to gallery: http://www.mastimagic.org/coppermine/index.php

Try arithmetics: $row['owner_id']+1 might solve your issue.
Title: Re: phpbb integration Link To profile Bug
Post by: Pakistani1 on May 31, 2007, 10:02:12 AM
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