Link To Users Albums Link To Users Albums
 

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

Link To Users Albums

Started by ps2wayne, November 17, 2004, 03:34:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ps2wayne

I was wondering if there was a way to make it so when a user logs in  that it will display their album URL for them to copy and paste. I have used the short URL hack so example...  www.mysite.com/?username            and it would go to that users albums they have      but right now my users don't know about that unless i can somehow get it to possibly print maybe above their list of albums...  any ideas on how to do that?

Tranz

And they can't figure how to right-click to copy the URL?

ps2wayne

Unforntely no....  but they also dont know about the   www.sitename.com/?username      thing and that is what i wanted to get displayed but where it says username it be theirs etc

ps2wayne

#3
Is there some type of code I can put in somewhere that   will   be like 

<a href="http://www.mysite.com/?{getusername}

or album author or something? cuz it pulls the username above the things in the   home > user galleries > username   etc



All I would like it to do is when you go to a user's page that displays all their albums above it say    "http://www.mysite.com/?username"   (username being the who's username you are viwing with seeing all their albums)

Joachim Müller

try using the var $USER_DATA['user_name'] (needs to be made global, depending on the function you're trying to call this var from) or (even better) the constant USER_NAME.

Joachim

actionmedia

I think it's a great idea to have a message on their album that says "Your direct link is: ... "

You have to keep in mind not everyone is extremely computer literate. If this photo gallery was geared only towards the people who wrote it, it wouldn't be successful. Make it as user friendly as possible, and you'll be successful...

Tranz

#6
And at the same time we have people who are trying everything to hide the direct link to prevent people abusing their bandwidth, copyright, files, etc. Just because you want something doesn't mean it's good for everybody.

If people don't know how to do something, why don't you post a note on how to do it. They can't stay ignorant forever. If they want to maintain their ignorance maybe they shouldn't be going on the internet. A lot of the internet's problems (spam, viruses) are caused by stupid people who don't know better and they perpetuate problems.

ps2wayne

Okay... well those opinions are great, but its what I am trying to do.   Does anybody know the code that will work. I'm not to keen on my PHP coding so I really could use some help figuring it out.

ps2wayne

Anybody have the code to make this possible???

Joachim Müller


ps2wayne

Thanks for the tip there...   ::)

ps2wayne

Well its been a while... but wondering if anybody has found a solution.