forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: antisa33 on August 11, 2006, 12:46:49 am

Title: Titles in SEF_URL
Post by: antisa33 on August 11, 2006, 12:46:49 am
Hello
I am trying to modify the SEF_URL plugin, and i will add all my modifications here.
I am not a developper but i understand PHP. I am sorry if my code is not good, but it will works.
I am french.

1-Album title in URL = OK, just the accent problem
It is ok, i have title of albums in the url but i have a problem :
in theme.php, line 1715 in function theme_display_album_list_cat this is my modification code :

Quote
if (is_array($alb_list)) {
        foreach($alb_list as $album) {
            $count ++;

$title1 = $album['album_title'];
$title = strtr($title1, "àâäîïôöùûüéèêëçù", "aaaiioouuueeeecu");
$tit = str_replace( array( ' ', '\t', '\r', '\n', '?', '!'), '_', $title );

            $params = array('{COL_WIDTH}' => $column_width,
                '{ALBUM_TITLE}' => $album['album_title'],
                '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
                '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}&title=$tit",
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
                '{ADMIN_MENU}' => $album['album_adm_menu'],
                '{ALB_DESC}' => $album['album_desc'],
                '{ALB_INFOS}' => $album['album_info'],
                );
The title is OK in my url, but i have some specials caracters like that:
f%C3%AAte_son
So i think this line at the begin is not interpretated.
Quote
$title = strtr($title1, "àâäîïôöùûüéèêëçù", "aaaiioouuueeeecu");

I think that when this will be solved, i will be able to do the rest.
What is the problem ?

2 - Add the title of the category in the url
Not yet

3 - Add the title of the picture in the url
Not yet

4 - Lang flag doesn't work when we are in a page, and when we clic on a flag, so modify this too.
Not yet

Thanks for help
Title: Re: Titles in SEF_URL
Post by: antisa33 on August 17, 2006, 03:31:26 pm
nobody knows ?