coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Cosmos on May 28, 2007, 02:23:18 AM

Title: PHPBB Integration Link to Profile
Post by: Cosmos on May 28, 2007, 02:23:18 AM
Hello,

I have installed the last Coppermine version with Stramm Modpack and PhpBB 2.0.18+ Bridge integration.

Now I want to redirect a user to PhpBB profile from a link on Coppermine pages. Any suggestions?

Thanks in advance

Cosmos
Title: Re: PHPBB Integration Link to Profile
Post by: Joachim Müller on May 28, 2007, 08:48:02 AM
Depends on where the link is suppossed to show up. Post more details. Not a matter of bridging, but related to modifying your theme. Moving accordingly.
Title: Re: PHPBB Integration Link to Profile
Post by: Cosmos on May 28, 2007, 05:50:36 PM
Hi,

Quote
Depends on where the link is suppossed to show up. Post more details. Not a matter of bridging, but related to modifying your theme. Moving accordingly.

I would like to show up the link to Phpbb Member profile under the image thumbnails on Coppermine pages. In other words, after each thumbnail (album pages, last added and random images) the link "Posted by: member" should redirect to Phpbb profile.

Thank you for your support

Cosmos
Title: Re: PHPBB Integration Link to Profile
Post by: Joachim Müller on May 28, 2007, 08:32:28 PM
It would have been even more helpful if you would have posted more details, e.g. a link to your gallery (and a non-admin test user account if needed to access your site) ::). Edit include/functions.inc.php, find$caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title"><a href ="profile.php?uid='.$row['owner_id'].'">'.$row['owner_name'].'</a></span>' : ''; and replace with$caption .= ($row['owner_id'] && $row['owner_name']) ? '<span class="thumb_title">Posted by: <a href ="STUFF_THAT_NEEDS_CHANGING_DEPENDING_ON_YOUR_SETUP='.$row['owner_id'].'">'.$row['owner_name'].'</a></span>' : '';
Replace STUFF_THAT_NEEDS_CHANGING_DEPENDING_ON_YOUR_SETUP in above example with the proper path to your forum's profile page and the URL parameter it expects. If you have no clue what you actually need to replace, do as I suggested above.
Title: Re: PHPBB Integration Link to Profile
Post by: Pakistani1 on May 29, 2007, 09:40:33 AM
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  :-\ not my id


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

here is the line that i eddited in functions.inc

$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>' : '';


so it took me to the following link

http://www.mastimagic.org/board/profile.php?mode=viewprofile&u=1
it should have taken 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
Post by: Joachim Müller on May 30, 2007, 08:33:34 AM
Your issue differs. Thread-hijacking is not nice.
Title: Re: PHPBB Integration Link to Profile
Post by: Pakistani1 on May 30, 2007, 02:10:03 PM
ok i put a separate thread for that ..