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: Titles in SEF_URL  (Read 4529 times)

0 Members and 1 Guest are viewing this topic.

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Titles in SEF_URL
« 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
Logged

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: Titles in SEF_URL
« Reply #1 on: August 17, 2006, 03:31:26 pm »

nobody knows ?
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.