Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to insert the name of pic and album in url ?  (Read 2970 times)

0 Members and 1 Guest are viewing this topic.

gandolfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
How to insert the name of pic and album in url ?
« on: October 24, 2007, 08:58:02 am »

How to insert the name of pic and album in url ?

Before -->  www.mysite\thumbnails.php?album=1&pid=2

After --> www.mysite\thumbnails.php?album=family_photo&pid=dad

i have the idea to modify index.php and theme.php by replacing $alb_thumb['aid'] by $alb_thumb['title']
the idea is to replace the "aid" by "titlte"

thank you
« Last Edit: October 25, 2007, 12:37:03 pm by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: How to insert the name of pic and album in url ?
« Reply #1 on: October 24, 2007, 09:49:52 am »

It isn't that easy as you are thinking. Just replacing aid with title in url links won't work.
Logged
Chief Geek at Ranium Systems

gandolfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: How to insert the name of pic and album in url ?
« Reply #2 on: October 24, 2007, 10:27:29 am »

do you know how to insert name in url ?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: How to insert the name of pic and album in url ?
« Reply #3 on: October 24, 2007, 10:47:32 am »

Picture name in url needs major re-write of code. It cannot be explained in a post. If you need it that badly then you will have to hire someone to do the job.
Logged
Chief Geek at Ranium Systems

gandolfi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: How to insert the name of pic and album in url ?
« Reply #4 on: October 24, 2007, 01:26:26 pm »

i use rewrite mod in order to have *.html.
i think this modification, by inserting the name of pic and album in url, is important for google. maybe in the future revision of cPG ?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: How to insert the name of pic and album in url ?
« Reply #5 on: October 24, 2007, 01:32:45 pm »

Yes - the devs might give it a consideration but cannot say anything for sure.
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.