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: User's album by url  (Read 5211 times)

0 Members and 1 Guest are viewing this topic.

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
User's album by url
« on: June 19, 2008, 04:59:06 pm »

I really need this - 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,
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: User's album by url
« Reply #1 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?
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: User's album by url
« Reply #2 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
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: User's album by url
« Reply #3 on: June 22, 2008, 07:00:13 pm »

You need to code it if you need it.

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: User's album by url
« Reply #4 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.  ;)
Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: User's album by url
« Reply #5 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]
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

amiphoto

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: User's album by url
« Reply #6 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?
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.