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: phpbb "view gallery" link..?  (Read 3683 times)

0 Members and 1 Guest are viewing this topic.

cynikalsam

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
phpbb "view gallery" link..?
« on: November 13, 2004, 03:26:08 am »

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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: phpbb "view gallery" link..?
« Reply #1 on: November 13, 2004, 10:21:55 am »

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

cynikalsam

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: phpbb "view gallery" link..?
« Reply #2 on: November 13, 2004, 12:22:38 pm »

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
Code: [Select]
<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.
Logged

Nibbler

  • Guest
Re: phpbb "view gallery" link..?
« Reply #3 on: November 13, 2004, 04:00:40 pm »

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

feppa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: phpbb "view gallery" link..?
« Reply #4 on: November 23, 2004, 10:27:18 pm »

Anyone who has managed this "thing" yet?

i'm struggeling to get this to work.

Code: [Select]
<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.

« Last Edit: November 23, 2004, 10:41:09 pm by feppa »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb "view gallery" link..?
« Reply #5 on: December 03, 2004, 02:23:59 pm »

in the line
Code: [Select]
<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
Code: [Select]
<?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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 15 queries.