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: Adding a "My Garage" link in SMF  (Read 5783 times)

0 Members and 1 Guest are viewing this topic.

sonic393

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Adding a "My Garage" link in SMF
« on: April 05, 2007, 03:37:33 pm »

Hi, i've searched trough the forums, but after an hour of doing this, i gave up.

I've installed the forum (in a test environment, with a couple test users). My coppermine gallery is allready brigded to SMF 1.1 and the template is changed. the only thing I still want to add is al direct link to the users gallery from within SMF. Since it's a car-base website, I want to use the "My Garage" link,but i don't know how to get the user ID's out of coppermine to my SMF template.

I tried the line :

Code: [Select]
<a href="/gallery/index.php?cat='.(10000 + $row['ID_MEMBER']).'"><b>My Garage</b></a>
Since the coppermine gally starts counting at 10000, and i just want to literally add the user ID from SMF to that number. This isn't happening. Anyone got an idea?

Thanx !
« Last Edit: April 05, 2007, 05:10:14 pm by GauGau »
Logged

sonic393

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Adding a "My Garage" link in SMF
« Reply #1 on: April 05, 2007, 03:50:30 pm »

Sorry for the disturbance... I actually found it..

For anyone interested :

Code: [Select]
<a href="/gallery/index.php?cat='.(10000 + [b]$message['member']['id'][/b]).'"><b>My Garage</b></a>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a "My Garage" link in SMF
« Reply #2 on: April 05, 2007, 05:09:57 pm »

Not related. Shouldn't have been posted here in the first place. You're talking about modifications of the code of a third-party-app (SMF) that goes unsupported here.
Logged

sonic393

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Adding a "My Garage" link in SMF
« Reply #3 on: April 05, 2007, 05:33:40 pm »

My apologies... i thought because the coppermine forum actually used the SMF forum, th
Logged

sonic393

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Adding a "My Garage" link in SMF
« Reply #4 on: April 05, 2007, 05:34:26 pm »

that it would be a question i could ask..
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.