phpbb "view gallery" link..? phpbb "view gallery" link..?
 

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]

Main Menu

phpbb "view gallery" link..?

Started by cynikalsam, November 13, 2004, 03:26:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cynikalsam

This may be a long shot, but here goes;

I think it would be cool to have a link next to the "view profile" link on my forum, at the bottom of the users post, to view their gallery. I already have phpbb and coppermine working together.

Anybody have any idea how to do that?

Tranz

If you want to edit a page on your phpbb forum, you should ask the phpbb forum members since they are likelier to know where to edit. You could try your luck here since we have people who use both but it might take longer.

cynikalsam

True, but maybe both forums can help. If you could tell me what the link would have to reference, and how, i could ask them where to place it. Since the user databases are integrated, would the link be something like <a href="http://www.cynikalsam.com/gallery/{USER_GALLERY_ID}">View my gallery</a>
Where "{USER_GALLERY_ID}" would be an automatic reference to the posters gallery?

This is way over my head, so any help from either side would be great.

Nibbler

The link to the user gallery is to index.php?cat=xxx where xxx is 10000 + user_id

feppa

#4
Anyone who has managed this "thing" yet?

i'm struggeling to get this to work.

<a href="/gallery/index.php?cat1000 + 'user_id'">My galleryi</a>

i would like to have a link to the users own personal gallery, like the profile link.

the other thing i would like to do is to insert a link the the users personal gallery then other members looks at his/hers profile.


Joachim Müller

in the line<a href="/gallery/index.php?cat1000 + 'user_id'">My galleryi</a>everything is wrong - it's not even correctly copy'n pasted. There's no telling the correct syntax unless you specify where exactly you want to insert this bit of code, but you'll at least have to make sure that the numbers are actually added - what you have got is plain html that won't do you any good. You need at least a bit php know-how to come up with a solution, but basically, the syntax would be<?php
print '<a href="/gallery/index.php?cat=' 10000 USER_ID .'">My galleryi</a>';
?>

This will of course only work if the constant USER_ID is defined correctly - you might want to use a variable instead of a constant.

Joachim