coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: Dogbot on July 18, 2008, 11:55:05 AM

Title: [Solved]: Personal gallery link under avatar - PHPBB3
Post by: Dogbot 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.
Title: Re: Personal gallery link under avatar - PHPBB3
Post by: Nibbler on July 18, 2008, 12:41:14 PM
That would be a phpbb question, not a Coppermine one.
Title: Re: Personal gallery link under avatar - PHPBB3
Post by: Dogbot 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
Title: Re: Personal gallery link under avatar - PHPBB3
Post by: Nibbler 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).
Title: Re: Personal gallery link under avatar - PHPBB3
Post by: Nibbler 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

'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 -->
Title: Re: Personal gallery link under avatar - PHPBB3
Post by: Dogbot on July 20, 2008, 06:22:52 PM
Many thanks Nibbler for taking the time to show the way, much appreciated !

Dogbot