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: How to insert the name of pic and album in url ?  (Read 2924 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.018 seconds with 20 queries.