forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Fabricio Ferrero on June 19, 2008, 04:59:06 pm

Title: User's album by url
Post by: Fabricio Ferrero on June 19, 2008, 04:59:06 pm
I really need this - http://forum.coppermine-gallery.net/index.php/topic,16622.0.html (http://forum.coppermine-gallery.net/index.php/topic,16622.0.html)  working on my site but I can't make it work. I run cpg1.4.8 modpack by Stramm. I try all that appears in that thread, my .htaccess file is working properly but still doesn’t work. I think it's because it’s not standalone or yab. What do I need to modify to make it work whit Stramm?


P.S: Did you add the language file I send you?

Regards,
Title: Re: User's album by url
Post by: just_some_guy on June 19, 2008, 09:07:46 pm
Make sure you are following the correct instructions as the first post will not work on standalone CPG. There are instructions a few posts later which is for standalone, there is a mistake in the code (as mentioned in reply 6). Is that cpg1.4.18 or cpg1.4.8 - upgrade.

Link to the gallery? Any errors?
Title: Re: User's album by url
Post by: Fabricio Ferrero on June 20, 2008, 05:28:34 am
Quote
I run cpg1.4.8 modpack by Stramm
I ment 1.4.18, sorry for that. ;)

I don't need instrutions to install this on standalone cpg. I need to install on modded cpg, by Stramm. That's why I ask for instruccion. It's not explaind how to apply the url frinendly on Stramm. Could someone explain to me? Please.

Thanks for your reply just_some_guy
Title: Re: User's album by url
Post by: Stramm on June 22, 2008, 07:00:13 pm
You need to code it if you need it.
Title: Re: User's album by url
Post by: Fabricio Ferrero on June 22, 2008, 10:51:21 pm
Ok, I'm not programmer but I will try to figure it out. In case I'll make it I will post it.

Thanks both for the answers.  ;)
Title: Re: User's album by url
Post by: just_some_guy on June 22, 2008, 11:13:31 pm
It should be possible to do this only using a .htaccess. Have a google for how to Mod Rewrite.

Perhaps try this (adapted from the manual at - http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html) -

Code: [Select]
RewriteRule /gallery/(.*) /useralb.php?user\%3d$1 [R,NE]
Title: Re: User's album by url
Post by: amiphoto on August 05, 2008, 01:51:58 pm
I am having problems sending users to just their albums. I tried the mod listed in the FAQ section, but this does not shown the album only the path. Belwo is the mod that I installed in the login.php file.

How can I send a user directly to his private album once he logs in?
edit
login.php
and search for
pageheader($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

and add before it
$referer = 'index.php?cat='.(FIRST_USER_CAT+$USER_DATA['user_id']);


Do I need to add something else?