Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Personal gallery link under avatar - PHPBB3  (Read 5844 times)

0 Members and 1 Guest are viewing this topic.

Dogbot

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
[Solved]: Personal gallery link under avatar - PHPBB3
« on: July 18, 2008, 11:55:05 am »

Has anyone managed to get a link under the avatar in posts, that go directly to that users album in Coppermine, from phpbb3?

Dogbot.
« Last Edit: July 20, 2008, 06:26:09 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Personal gallery link under avatar - PHPBB3
« Reply #1 on: July 18, 2008, 12:41:14 pm »

That would be a phpbb question, not a Coppermine one.
Logged

Dogbot

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Personal gallery link under avatar - PHPBB3
« Reply #2 on: July 18, 2008, 01:58:49 pm »

But a bridged phpbb and coppermine in a bridged integration area of coppermine, attempting to get to an coppermine album would be suitable here, would it not?

I have also asked the question over at phpbb, but as they dont have a bridging area, (like you do here) I would think I have little or no chance of an answer.

So I was hoping that someone with bridged phpbb3/coppemine using this forum might have an answer, hopefully thats the case.

Dogbot
Logged

Nibbler

  • Guest
Re: Personal gallery link under avatar - PHPBB3
« Reply #3 on: July 18, 2008, 02:37:53 pm »

It's a phpbb question because it involves editing phpbb files. You need to add a link to something like /gallery/index.php?cat=(10000 + user_id).
Logged

Nibbler

  • Guest
Re: Personal gallery link under avatar - PHPBB3
« Reply #4 on: July 18, 2008, 02:58:57 pm »

Should be able to do it like this, but it's not tested.

Edit viewtopic.php, find the $postrow array and add in a new entry for the link

Code: [Select]
'CPG_GAL_LINK' => $poster_id != ANONYMOUS ? ('/gallery/index.php?cat=' . (10000 + $poster_id)) : '',
Change the path as required.

Then in your theme's viewtopic_body.html add in the link where you want it to display. In 'prosilver', the avatar is here:

Code: [Select]
<dt>
<!-- IF postrow.POSTER_AVATAR -->
<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
<!-- ENDIF -->
<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
</dt>

so after that you can add in

Code: [Select]
<!-- IF postrow.CPG_GAL_LINK -->
<dd><a href="{postrow.CPG_GAL_LINK}">My gallery</a></dd>
<!-- ENDIF -->
Logged

Dogbot

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Personal gallery link under avatar - PHPBB3
« Reply #5 on: July 20, 2008, 06:22:52 pm »

Many thanks Nibbler for taking the time to show the way, much appreciated !

Dogbot
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.