Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Shorter title - no recapitulation of the gallery name and category name - how?  (Read 7184 times)

0 Members and 1 Guest are viewing this topic.

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

Hello,

I won't display the gallery name on every title. On the thumbnail page there should be only the category name (e.g. My gallery - category 1 ==ONLY==> category 1) and on the display image page only the page name - not with gallery name and category name (e.g. My gallery - category 1/picture 7 ==ONLY==> Picture 7)  ???

Thank you very much 
« Last Edit: July 29, 2008, 12:34:24 pm by Nibbler »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl

website address ?
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

http://icmesa.org (not ready jet)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

Are you refering to the individual page's <title>-tag in HTML that determines the name of the browser window/tab?
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

No, but every coppermine has the same title structure? How can I change this?

E.g.: http://coppermine-gallery.net/demo/cpg14x/displayimage.php?album=2&pos=0
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

What title are you refering to? I have no idea what you're talking about. Post some real live examples like
Quote
On page XXX I want to see the text YYY replaced by ZZZ
« Last Edit: July 28, 2008, 09:57:29 pm by Joachim Müller »
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

No  ;D, I think you misunderstood me . I had made some screenshots.

Red (in Firefox page title) = That should not display in page title
Green (in Firefox page title) = Only that should display page title

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

That is the HTML <title>-tag
Logged

Nibbler

  • Guest

Copy this into your custom theme's theme.php

Code: [Select]
// Function for writing a pageheader
function pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;

    $custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);

        $charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];

    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
        header("Content-Type: text/html; charset=$charset");
    user_save_profile();

    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => strip_tags(bb_decode($section)), // removed gallery name from title
        '{CHARSET}' => $charset,
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        '{SYS_MENU}' => theme_main_menu('sys_menu'),
        '{SUB_MENU}' => theme_main_menu('sub_menu'),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),
        '{CUSTOM_HEADER}' => $custom_header,
        );

    echo template_eval($template_header, $template_vars);
}

If it's already there then I commented the line to change.
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

Thank you very much  ;D :D. There is only one problem: In the picture view (displayimage-....html) is "album name/picture page name" but it should be only picture page name.
Logged

Nibbler

  • Guest

Edit displayimage and change

Code: [Select]
pageheader($album_name . '/' . $picture_title, $meta_keywords, false);
to

Code: [Select]
pageheader($picture_title, $meta_keywords, false);
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

Thank you very much  :o. I just like the shorter title better. What about SEO, Baidu, Google, and Yahoo?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

What about the nephews of Donald Duck (I don't remember their names)? In other words: what is your question for. Are you asking on the impact that your changes will have on SEO?
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

Yes,  I hope that isn't a big drawback for my page?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

Frankly: I have no idea, but I don't guess so.
Logged

Icmesa3000

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

I see that my mainpage is now named "Home", how can I change "home" into my gallery name (only for my mainpage)?
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.