Advanced search  

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

Pages: [1]   Go Down

Author Topic: My Gallery Link ?  (Read 5881 times)

0 Members and 1 Guest are viewing this topic.

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
My Gallery Link ?
« on: November 24, 2009, 09:11:18 am »

Is it possible to add a link to the front page of my site that users see when they are logged in.  So clicking on the link, they would be taken straight to their own gallery in Coppermine.

In other words, a "My Gallery" link like the one in their Coppermine menu.   If yes, does anyone know what the link code would be? Please.

Site info in my signature.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: My Gallery Link ?
« Reply #1 on: November 25, 2009, 09:03:50 pm »

Can anyone help me with this please. 

I don't need to know where or what files to edit, I just need to know what code to use.

Sorry for bumping.  ;)
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: My Gallery Link ?
« Reply #2 on: November 25, 2009, 11:41:08 pm »

Code doesn't exist. You need it -> you code it.
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: My Gallery Link ?
« Reply #3 on: November 26, 2009, 10:45:48 am »

Code doesn't exist. You need it -> you code it.

OK thanks.  At least you didn't say it can't be done. ;)   Just got to find someone to help me with the code then.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: My Gallery Link ?
« Reply #4 on: January 03, 2010, 03:57:48 pm »

Happy new year to all.

I managed to get someone to help me out with this code.  I now have the "My Gallery" link working in a tinyportal php block on my home page.

Could someone please mark this topic as Solved please.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: My Gallery Link ?
« Reply #5 on: January 03, 2010, 04:37:47 pm »

Could someone please mark this topic as Solved please.
You did that for yourself, so you apparently found the time to read up board rules. For the benefit of others you could post your modifications...
Logged

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: My Gallery Link ?
« Reply #6 on: January 03, 2010, 04:52:48 pm »

You did that for yourself, so you apparently found the time to read up board rules. For the benefit of others you could post your modifications...

Yes, sorry that wasn't intentional.  Tried to find the solved button but after reading the rules I noticed the solved button was in fact the Accept answer button.  Would be handy if the mouseover on that button said "Mark Solved" 

Here's the code I added to a tinyportal php block.

Code: [Select]
if ($context['user']['is_logged']){
$thecat = 10000 + $context['user']['id'];
echo ' 
<a href="http://cameracraniums.com/gallery/index.php?cat='. $thecat .'" alt="My Gallery">My Gallery</a>';
}

Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.