coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: lurkalot on November 24, 2009, 09:11:18 AM

Title: My Gallery Link ?
Post by: lurkalot 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.
Title: Re: My Gallery Link ?
Post by: lurkalot 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.  ;)
Title: Re: My Gallery Link ?
Post by: Joachim Müller on November 25, 2009, 11:41:08 PM
Code doesn't exist. You need it -> you code it.
Title: Re: My Gallery Link ?
Post by: lurkalot on November 26, 2009, 10:45:48 AM
Quote from: Joachim Müller on November 25, 2009, 11:41:08 PM
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.
Title: Re: My Gallery Link ?
Post by: lurkalot 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.
Title: Re: My Gallery Link ?
Post by: Joachim Müller on January 03, 2010, 04:37:47 PM
Quote from: lurkalot on January 03, 2010, 03:57:48 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...
Title: Re: My Gallery Link ?
Post by: lurkalot on January 03, 2010, 04:52:48 PM
Quote from: Joachim Müller on January 03, 2010, 04:37:47 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.


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>';
}