Titles in SEF_URL Titles in SEF_URL
 

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]

Main Menu

Titles in SEF_URL

Started by antisa33, August 11, 2006, 12:46:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antisa33

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

antisa33