My Gallery Link ? My 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

My Gallery Link ?

Started by lurkalot, November 24, 2009, 09:11:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurkalot

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.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

lurkalot

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.  ;)
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Joachim Müller

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

lurkalot

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.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

lurkalot

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.
Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

Joachim Müller

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

lurkalot

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


Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0