[Solved]: Personal gallery link under avatar - PHPBB3 [Solved]: Personal gallery link under avatar - PHPBB3
 

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

[Solved]: Personal gallery link under avatar - PHPBB3

Started by Dogbot, July 18, 2008, 11:55:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dogbot

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

Dogbot.

Nibbler

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

Dogbot

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

Nibbler

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).

Nibbler

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

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


<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


<!-- IF postrow.CPG_GAL_LINK -->
<dd><a href="{postrow.CPG_GAL_LINK}">My gallery</a></dd>
<!-- ENDIF -->

Dogbot

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

Dogbot