PHPBB Integration Link to Profile PHPBB Integration Link to Profile
 

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

Started by Cosmos, May 28, 2007, 02:23:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cosmos

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

Joachim Müller

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.

Cosmos

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

Joachim Müller

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.

Pakistani1

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

Joachim Müller

Your issue differs. Thread-hijacking is not nice.

Pakistani1

ok i put a separate thread for that ..