forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: gandolfi on October 24, 2007, 08:58:02 am

Title: How to insert the name of pic and album in url ?
Post by: gandolfi 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
Title: Re: How to insert the name of pic and album in url ?
Post by: Abbas Ali 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.
Title: Re: How to insert the name of pic and album in url ?
Post by: gandolfi on October 24, 2007, 10:27:29 am
do you know how to insert name in url ?
Title: Re: How to insert the name of pic and album in url ?
Post by: Abbas Ali 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.
Title: Re: How to insert the name of pic and album in url ?
Post by: gandolfi 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 ?
Title: Re: How to insert the name of pic and album in url ?
Post by: Abbas Ali on October 24, 2007, 01:32:45 pm
Yes - the devs might give it a consideration but cannot say anything for sure.