Advanced search  

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

Pages: [1]   Go Down

Author Topic: PHPBB Integration Link to Profile  (Read 4093 times)

0 Members and 1 Guest are viewing this topic.

Cosmos

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
PHPBB Integration Link to Profile
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHPBB Integration Link to Profile
« Reply #1 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.
Logged

Cosmos

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: PHPBB Integration Link to Profile
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHPBB Integration Link to Profile
« Reply #3 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
Code: [Select]
$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
Code: [Select]
$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.
Logged

Pakistani1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: PHPBB Integration Link to Profile
« Reply #4 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
Code: [Select]
$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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: PHPBB Integration Link to Profile
« Reply #5 on: May 30, 2007, 08:33:34 am »

Your issue differs. Thread-hijacking is not nice.
Logged

Pakistani1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: PHPBB Integration Link to Profile
« Reply #6 on: May 30, 2007, 02:10:03 pm »

ok i put a separate thread for that ..
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.